Commit Graph

14 Commits

Author SHA1 Message Date
Leonid Pliushch 30a22c75d0 liblua: pass LDFLAGS to makefile so DT_RUNPATH will be set 2019-03-20 02:26:40 +02:00
Fredrik Fornwall 0effcf0361 lua: Rebuild against readline 8 2019-02-27 23:01:33 +01:00
Wetitpig 5f8864c10d Improve formatting of parantheses for functions 2019-02-09 21:06:31 +02:00
Leonid Pliushch 46d333adba add licenses for more packages 2019-01-21 17:17:53 +02:00
Fredrik Fornwall 0442b7d854 lua: Update from 5.3.4 to 5.3.5 2018-07-11 11:19:18 +02:00
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 1e8036756a liblua: Build with -DLUA_COMPAT_UNPACK
This makes 'table.unpack' exposed as 'unpack' which is used by
e.g. man.lua in neovim.
2018-02-05 01:58:30 +01:00
Stephen ceadb14fb2 need to specify 2017-09-14 23:33:37 +02:00
Stephen da4f35b17d add readline build dependency to lua
#1169

deals with subpackage dependency
2017-09-14 23:33:37 +02:00
Leonid Pliushch e70b9bf777 liblua: fix path in LUA_TMPNAMETEMPLATE 2017-09-14 22:02:07 +02:00
Fredrik Fornwall 5fef7d299b lua: Build with -DLUA_COMPAT_5_2 2017-03-01 17:18:15 +01:00
Fredrik Fornwall b32d84878c lua: Update from 5.3.3 to 5.3.4 2017-02-02 01:35:35 +01:00
Fredrik Fornwall bcc145db7e lua: Add missing trailing slash 2017-01-18 01:45:32 +01:00
Fredrik Fornwall 154bc46225 lua: Add and replace luajit
luajit is rather complex and lacking upstream maintenance.
2017-01-18 01:02:18 +01:00