Commit Graph

33 Commits

Author SHA1 Message Date
Henrik Grimler
c1b82abd09 Add fixes for debug builds (#2296)
* build-package.sh: add possibility for debug patches and TERMUX_PKG_HAS_DEBUG

Setting TERMUX_PKG_HAS_DEBUG=no disables attempt to build debug build of
package.
Useful for example if a debug build doesn't make sense, as for python-packages
and texlive.

* aapt: skip D_FORTIFY_SOURCE=2 for libandroid-cutils when doing debug build

* lftp: skip D_FORTIFY_SOURCE=2 for debug build

* libflac: don't use -g3 for debug build

Configure script removes it otherwise.

* nano: skip -D_FORTIFY_SOURCE=2 for debug build

* vifm: skip -D_FORTIFY_SOURCE=2 for debug build

* mc: skip -D_FORTIFY_SOURCE=2 for debug build

* dropbear: add __attribute__((overloadable)) to XMEMSET and XMEMCPY if debug

* gdb: add __attribute__((overloadable)) to strchr if debug

* gnuit: add __attribute__((overloadable)) to strchr and strcpy if debug

* gperf: add __attribute__((overloadable)) to strlen if debug

* inetutils: add __attribute__((overloadable)) to strrchr and strchr if debug

* readline: add __attribute__((overloadable)) to strchr if debug

* tsocks: add __attribute__((overloadable)) to poll if debug

* units: add __attribute__((overloadable)) to strchr if debug

* liblua: fix bug in loslib.c that emerged in debug build

Use strncpy instead of strcpy.
Original error message:
loslib.c:169:3: error: 'strcpy' called with string bigger than buffer
  lua_tmpnam(buff, err);
  ^
loslib.c:122:37: note: expanded from macro 'lua_tmpnam'
       strcpy(b, LUA_TMPNAMTEMPLATE); \
                                   ^

* alpine: include our getpass.h in imap's mtest.c to declare getpass

Debug build complained about the previous implicit declaration.

* nginx: use --with-debug instead of --debug

* cboard: skip -D_FORTIFY_SOURCE=2 for debug build

* gettext: add __attribute__((overloadable)) to getcwd if debug

* oathtool: skip -D_FORTIFY_SOURCE=2 for debug build

* php: add __attribute__((overloadable)) to strlcpy and strlcat if debug

* expect: add __attribute__((overloadable)) to strchr if debug

* texlive: set TERMUX_PKG_HAS_DEBUG=no

* asciinema: set TERMUX_PKG_HAS_DEBUG=no

* libllvm: set TERMUX_PKG_HAS_DEBUG=no

Debug build fails with:
home/builder/.termux-build/libllvm/src/lib/Support/Unix/Path.inc:740:19: error: no matching function for call to 'RetryAfterSignal'                                                                                                      if ((ResultFD = sys::RetryAfterSignal(-1, open, P.begin(), OpenFlags)) < 0)

* build-package.sh: set TERMUX_PKG_REPLACES=package if debug build

Hopefully allows us to install debug packages without breaking dependecies.

Should be looked over and be made more similar to how debian does this in any case

* Update build.sh
2018-06-13 02:12:36 +02:00
Fredrik Fornwall
90468c8bdb nano: Update from 2.9.7 to 2.9.8 2018-06-04 00:48:20 +02:00
Fredrik Fornwall
287b3f97a7 nano: Update from 2.9.6 to 2.9.7 2018-05-17 19:22:11 +02:00
Fredrik Fornwall
6ca1532a74 nano: Update from 2.9.5 to 2.9.6 2018-04-28 22:26:54 +02:00
Fredrik Fornwall
450bb1bdcb nano: Update from 2.9.4 to 2.9.5 2018-03-30 22:49:04 +02:00
Fredrik Fornwall
46be8df7af nano: Update from 2.9.3 to 2.9.4 2018-03-09 10:52:55 +01:00
Fredrik Fornwall
ec070aa3d5 nano: Update from 2.9.2 to 2.9.3 2018-01-29 13:37:07 +01:00
Fredrik Fornwall
839fe0005a nano: Update from 2.9.1 to 2.9.2 2018-01-05 22:57:31 +01:00
Auxilus
44d67208a0 nano: Update from 2.9.0 to 2.9.1 2017-11-29 23:01:40 +01:00
Auxilus
e0a705db74 nano: Update from 2.8.7 to 2.9.0 2017-11-18 22:05:54 +01:00
Fredrik Fornwall
310e694995 nano: Update from 2.8.6 to 2.8.7 2017-08-28 12:06:12 +02:00
Fredrik Fornwall
f189654614 nano: Update from 2.8.5 to 2.8.6 2017-07-22 16:24:47 +02:00
Fredrik Fornwall
197ab7f44c nano: Update from 2.8.4 to 2.8.5 2017-06-25 22:10:10 +02:00
Fredrik Fornwall
aed1de33b5 nano: Update from 2.8.2 to 2.8.4 2017-05-23 01:14:59 +02:00
Fredrik Fornwall
90c458b47e nano: Update from 2.8.1 to 2.8.2 2017-05-05 23:56:59 +02:00
Fredrik Fornwall
54d0bbc396 nano: Update from 2.8.0 to 2.8.1 2017-04-14 23:27:56 +02:00
Fredrik Fornwall
b09d026816 nano: Update from 2.7.5 to 2.8.0 2017-04-02 12:38:29 +02:00
Fredrik Fornwall
ae394a2341 nano: Update from 2.7.4 to 2.7.5 2017-02-25 02:15:59 +01:00
Fredrik Fornwall
b7d8db100c nano: Update from 2.7.3 to 2.7.4 2017-01-18 11:44:51 +01:00
Fredrik Fornwall
36d8dc9633 nano: Update from 2.7.2 to 2.7.3 2016-12-31 08:59:01 -05:00
Fredrik Fornwall
c53e88278b nano: Update from 2.7.1 to 2.7.2 2016-12-20 22:22:28 -05:00
Fredrik Fornwall
73dfe59cda nano: Update from 2.7.0 to 2.7.1 2016-11-10 19:39:54 -05:00
Fredrik Fornwall
31c7ebba2d nano: Update from 2.6.3 to 2.7.0 2016-09-22 22:37:42 -04:00
Fredrik Fornwall
385c8aef84 Some more clang preparations 2016-09-03 17:48:41 -04:00
Fredrik Fornwall
9d9cb8e57f nano: Update from 2.6.1 to 2.6.3 2016-08-14 06:43:19 -04:00
Fredrik Fornwall
b80cfabbdc nano: Update from 2.5.3 to 2.6.1 2016-07-14 17:58:35 -04:00
Fredrik Fornwall
f612790cba htop&nano: Rebuild for updated aarch64 toolchain 2016-03-22 17:36:55 -04:00
Fredrik Fornwall
76ce8d6527 nano: Update from 2.5.2 to 2.5.3 2016-03-07 18:28:03 -05:00
Fredrik Fornwall
70c2af9206 nano: Update from 2.5.1 to 2.5.2 2016-02-18 02:49:42 -05:00
Fredrik Fornwall
f3d9c5cf67 nano: Update from 2.5.0 to 2.5.1 2016-01-15 05:35:26 -05:00
Fredrik Fornwall
8b6fdb4cc9 nano: Update from 2.4.2 to 2.5.0 2015-12-08 02:45:07 -05:00
Fredrik Fornwall
2b58161273 Update nano from 2.4.1 to 2.4.2 2015-07-10 19:39:12 -04:00
Fredrik Fornwall
59f0d218a6 Initial push 2015-06-13 01:03:31 +02:00