From d2dfadf1f2c04276eb726a7c49f7c8a2b32349ed Mon Sep 17 00:00:00 2001 From: Iain Nicol Date: Sun, 6 Dec 2015 18:00:19 +0000 Subject: [PATCH 1/2] Disable gnulib's rpl_getcwd() across all packages This works around a bug in said function which was affecting zile. Fixes #76. --- build-package.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build-package.sh b/build-package.sh index 3118d8ab8..9176b4f32 100755 --- a/build-package.sh +++ b/build-package.sh @@ -351,6 +351,9 @@ termux_step_configure () { # about this problem which may cause linker errors in test scripts not undef:ing malloc and # also cause problems with e.g. malloc interceptors such as libgc: local AVOID_AUTOCONF_WRAPPERS="ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes" + # Similarly, disable gnulib's rpl_getcwd(). It returns the wrong value, affecting zile. See + # . + local AVOID_AUTOCONF_WRAPPERS="gl_cv_func_getcwd_null=yes gl_cv_func_getcwd_posix_signature=yes gl_cv_func_getcwd_path_max=yes gl_cv_func_getcwd_abort_bug=no $AVOID_AUTOCONF_WRAPPERS" env $AVOID_AUTOCONF_WRAPPERS $TERMUX_PKG_SRCDIR/configure \ --disable-dependency-tracking \ From ee844100b8fcd1f092111f541725f0b4340ccc96 Mon Sep 17 00:00:00 2001 From: Iain Nicol Date: Sun, 6 Dec 2015 18:04:21 +0000 Subject: [PATCH 2/2] zile: Bump packaging version Zile needs to be rebuilt to take advantage of a recently-committed workaround regarding gnulib's rpl_getcwd(). --- packages/zile/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/zile/build.sh b/packages/zile/build.sh index 63d6fc390..d8adb2aa1 100755 --- a/packages/zile/build.sh +++ b/packages/zile/build.sh @@ -1,7 +1,7 @@ TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/zile/ TERMUX_PKG_DESCRIPTION="Lightweight clone of the Emacs text editor" TERMUX_PKG_VERSION=2.4.11 -TERMUX_PKG_BUILD_REVISION=1 +TERMUX_PKG_BUILD_REVISION=2 TERMUX_PKG_MAINTAINER=$(echo "Iain Nicol " | sed 's/\sat\s/@/' | sed 's/\sdot\s/./') TERMUX_PKG_SRCURL=https://ftp.gnu.org/gnu/zile/zile-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_DEPENDS="libgc, ncurses"