chiark / gitweb /
Disable gnulib's rpl_getcwd() across all packages
authorIain Nicol <git@iainnicol.com>
Sun, 6 Dec 2015 18:00:19 +0000 (18:00 +0000)
committerIain Nicol <git@iainnicol.com>
Sun, 6 Dec 2015 18:00:19 +0000 (18:00 +0000)
This works around a bug in said function which was affecting zile.
Fixes #76.

build-package.sh

index 3118d8ab8091592607140621d37d0b50a6dc0ba1..9176b4f320fc55d04b30612b23779f817ce792c2 100755 (executable)
@@ -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
+       # <https://github.com/termux/termux-packages/issues/76>.
+       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 \