Commit Graph

68 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
fbd1fadf77 php: Update from 7.2.5 to 7.2.6 2018-05-25 12:39:28 +02:00
Fredrik Fornwall
d3b302a4eb php: Update from 7.2.4 to 7.2.5 2018-04-28 22:24:37 +02:00
Fredrik Fornwall
f4bec0e35f php: Update from 7.2.3 to 7.2.4 2018-04-08 23:38:39 +02:00
Fredrik Fornwall
d4a8d19d4c php: Fix opcache by using MAP_ANON support
The ext/opcache/config.m4 disabled MAP_ANON when cross compiling.

Fixes #2234.
2018-03-11 00:51:41 +01:00
Fredrik Fornwall
accf4c2e48 php: Link opcache.so against libpcre (fixes #2232) 2018-03-11 00:28:24 +01:00
Fredrik Fornwall
9cf61a82c5 php: Update from 7.2.2 to 7.2.3 2018-03-06 16:45:29 +01:00
Fredrik Fornwall
66d8038f23 php: Update from 7.2.1 to 7.2.2 2018-02-05 00:19:43 +01:00
Fredrik Fornwall
6c2bf01c2b php: Update from 7.1.12 to 7.2.1 2018-01-09 09:43:59 +01:00
vishalbiswas
bcd1e1d34a php: use mysqlnd and integrate php-mysql into main package 2017-12-08 09:43:25 +01:00
Fredrik Fornwall
01d81a911d php: Update from 7.1.11 to 7.1.12 2017-11-30 01:53:38 +01:00
Fredrik Fornwall
c51cf27604 php: Bump revision after adding php-mysql subpkg 2017-11-13 00:08:30 +01:00
vishalbiswas
c840704fb0 php-mysql: add package 2017-11-12 23:37:30 +01:00
Fredrik Fornwall
2c2a38d2b5 php: Update from 7.1.10 to 7.1.11 2017-11-02 23:59:35 +01:00
Fredrik Fornwall
d6a5fb2272 php: Update from 7.1.8 to 7.1.10 2017-10-06 22:52:37 +02:00
Fredrik Fornwall
fe9cc82e47 php: Update from 7.1.7 to 7.1.8 2017-08-08 11:13:48 +02:00
Fredrik Fornwall
4e3c2f3746 Bump packages after apr and apr-util update 2017-07-17 20:26:00 +02:00
Fredrik Fornwall
1db64a03d7 libandroid-support: Update to v19
This version has been cleaned up considerably. Also bump php since
it uses strfmon() which has been removed from libandroid-support.
2017-07-15 03:57:18 +02:00
Fredrik Fornwall
7f7d9a1648 php: Update from 7.1.6 to 7.1.7, fix aarch64 issue
Backport 8c8679207a
which fixes https://github.com/termux/termux-packages/issues/890 (and
possibly other issues).
2017-07-10 01:49:27 +02:00
Fredrik Fornwall
a2bea6da61 php: New attempt at avoid-linking-apr-everywhere 2017-06-15 00:32:26 +02:00
Vishal Biswas
78eca501f4 php: handle php-apache properly (#1084)
* php: handle php-apache properly

* fix other modules linking against apr
* fix php including httpd.conf

* php: update revision for php-apache
2017-06-14 13:30:48 +02:00
Vishal Biswas
28accb7481 php-apache: add package (#1075) 2017-06-12 14:27:49 +02:00
Fredrik Fornwall
d3a732be72 php: Update from 7.1.5 to 7.1.6 2017-06-11 23:44:48 +02:00
Fredrik Fornwall
7c231896e2 php: Add comment why we're not building with clang 2017-05-13 23:44:24 +02:00
Fredrik Fornwall
b0dfdb4211 php: Update from 7.1.4 to 7.1.5 2017-05-13 23:43:37 +02:00
its-pointless
bfb118b28a fix aarch64 build giving double instead of integer (#1012) 2017-05-13 23:35:14 +02:00
Fredrik Fornwall
ce92cc4c5d Stand in srcdir for termux_step_pre_configure 2017-05-11 01:01:20 +02:00
Fredrik Fornwall
bee04953eb php: Specify --with-png-dir
This should fix building when a builder png.h is not available.
2017-04-20 08:15:02 +02:00
Fredrik Fornwall
a20f3aedd3 php: Fix /bin/sed path in phpize (fixes #937) 2017-04-18 13:14:17 +02:00
Fredrik Fornwall
5ff8d32f3c php: Update from 7.1.3 to 7.1.4 2017-04-17 21:41:35 +02:00
Fredrik Fornwall
1a6cff7349 php: Link pgsql extension against libpcre
The pgsql extension uses pcre functions but does not link against
libpcre by default, as the php executable which dlopen():s the
extension already links against libpcre.

However, on Android this doesn't work, see
	https://github.com/android-ndk/ndk/issues/201
so we need to link against libpcre explicitly.
2017-03-30 23:54:20 +02:00
Fredrik Fornwall
53530ad847 php: Fix building pg extensions 2017-03-26 00:52:38 +01:00
Vishal Biswas
cc7bcfa238 add php-pgsql and php-fpm (#875)
* php: update from 7.1.2 to 7.1.3

* add TERMUX_SUBPKG_CONFFILES

* php: add subpkgs php-pgsql and php-fpm
2017-03-26 00:22:48 +01:00
Fredrik Fornwall
6788ea2c5d php: Update from 7.1.1 to 7.1.2 and enable pcntl 2017-02-20 02:57:27 +01:00
Fredrik Fornwall
ef5ec078b0 php: Update from 7.1.0 to 7.1.1 2017-01-19 19:08:24 +01:00
Fredrik Fornwall
42a606a246 libmcrypt: Remove package
https://paragonie.com/blog/2015/05/if-you-re-typing-word-mcrypt-into-your-code-you-re-doing-it-wrong
2017-01-19 15:04:15 +01:00
Fredrik Fornwall
ecd1ff092b php: Update from 7.1rc6 to 7.1.0 2016-12-09 21:16:20 -05:00
Fredrik Fornwall
ecaaa5d4a4 php: Update from 7.1 RC5 to RC6 2016-11-10 19:41:11 -05:00
Fredrik Fornwall
bc456a6a9d php: Update from 7.1 RC4 to RC5 2016-10-28 20:26:34 -04:00
Fredrik Fornwall
0149a69d6c php: Update from 7.1 RC3 to RC4 2016-10-19 17:20:46 -04:00
Fredrik Fornwall
da1533a42c php: Update from 5.6.26 to 7.1rc3 2016-10-03 10:05:51 -04:00
Fredrik Fornwall
83d11d6e04 Update readline to v7 and bash to v4.4
As a consequence of updating readline to version 7 we bump the
build revision of all packaging linking to it as the soname has
changed.
2016-09-17 18:29:14 -04:00
Fredrik Fornwall
eaf3340315 Prepare more packages for clang 2016-09-03 18:15:47 -04:00
Fredrik Fornwall
f3fe19bc20 php: Update from 5.6.24 to 5.6.25 2016-08-21 08:56:03 -04:00
David Martínez
77c265a461 Added more extensions to PHP build (#391) 2016-08-21 13:36:08 +02:00
Fredrik Fornwall
018a99322d php: Update from 5.6.23 to 5.6.24 2016-08-12 22:25:40 -04:00
Fredrik Fornwall
6f9d7d3dc0 php: Update from 5.6.22 to 5.6.23 2016-07-04 17:23:21 -04:00
Fredrik Fornwall
a5efde46ed php: Add --enable-mbstring
Fixes #316.
2016-06-19 19:31:32 -04:00
Fredrik Fornwall
1309b4000f php: Update from 5.6.21 to 5.6.22 2016-05-30 18:58:05 -04:00
Fredrik Fornwall
12c873161d php: Build native php without xml support
This avoids depending on libxml2-dev (or similar packages) on the
build machine.
2016-05-23 17:05:55 -04:00