From 0a1e7aebec9f09f33d42e0c394f39030ed74e91c Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Sun, 28 Apr 2019 12:18:53 +0200 Subject: [PATCH] chroot: update patches for 8.31 --- root-packages/chroot/build.sh | 3 +++ root-packages/chroot/configure.patch | 30 ++++++--------------- root-packages/chroot/lib-stdio-impl.h.patch | 12 --------- 3 files changed, 11 insertions(+), 34 deletions(-) delete mode 100644 root-packages/chroot/lib-stdio-impl.h.patch diff --git a/root-packages/chroot/build.sh b/root-packages/chroot/build.sh index 7025e3ffd..9757712ee 100644 --- a/root-packages/chroot/build.sh +++ b/root-packages/chroot/build.sh @@ -7,12 +7,14 @@ TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/coreutils/coreutils-${TERMUX_PK TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" gl_cv_host_operating_system=Android +ac_cv_func_getpass=yes --disable-xattr --without-gmp " termux_step_pre_configure() { CPPFLAGS+=" -DDEFAULT_TMPDIR=\\\"$TERMUX_PREFIX/tmp\\\"" + CPPFLAGS+=" -D__USE_FORTIFY_LEVEL=0" } termux_step_make() { @@ -38,6 +40,7 @@ termux_step_make() { } termux_step_make_install() { + mkdir -p $TERMUX_PREFIX/share/man/man1 install -Dm700 $TERMUX_PKG_BUILDDIR/src/chroot \ $TERMUX_PREFIX/bin/ install -Dm600 $TERMUX_PKG_SRCDIR/man/chroot.1 \ diff --git a/root-packages/chroot/configure.patch b/root-packages/chroot/configure.patch index 545cf57f3..779c6b227 100644 --- a/root-packages/chroot/configure.patch +++ b/root-packages/chroot/configure.patch @@ -1,25 +1,11 @@ -diff -r -u ../coreutils-8.22/configure ./configure ---- ../coreutils-8.22/configure 2013-12-13 16:05:30.000000000 +0100 -+++ ./configure 2014-02-12 18:21:28.000000000 +0100 -@@ -39537,7 +39537,7 @@ +--- ../configure.orig 2019-04-04 22:05:58.910698449 +0200 ++++ ./configure 2019-04-04 22:08:58.330693037 +0200 +@@ -43326,7 +43326,7 @@ - # Determine how to get the list of mounted file systems. --ac_list_mounted_fs= -+ac_list_mounted_fs=found + # Determine how to get the list of mounted file systems. +- ac_list_mounted_fs= ++ ac_list_mounted_fs=found - # If the getmntent function is available but not in the standard library, - # make sure LIBS contains the appropriate -l option. -@@ -40077,12 +40077,6 @@ - esac - fi - --if test -z "$ac_list_mounted_fs"; then -- as_fn_error $? "could not determine how to read list of mounted file systems" "$LINENO" 5 -- # FIXME -- no need to abort building the whole package -- # Can't build mountlist.c or anything that needs its functions --fi -- - if test $ac_list_mounted_fs = found; then : - gl_cv_list_mounted_fs=yes - else + # If the getmntent function is available but not in the standard library, + # make sure LIBS contains the appropriate -l option. diff --git a/root-packages/chroot/lib-stdio-impl.h.patch b/root-packages/chroot/lib-stdio-impl.h.patch deleted file mode 100644 index d3bfbd53a..000000000 --- a/root-packages/chroot/lib-stdio-impl.h.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -u -r ../coreutils-8.30/lib/stdio-impl.h ./lib/stdio-impl.h ---- ../coreutils-8.30/lib/stdio-impl.h 2018-06-24 06:52:06.000000000 +0200 -+++ ./lib/stdio-impl.h 2018-07-03 11:05:27.353619181 +0200 -@@ -60,7 +60,7 @@ - # define _flags pub._flags - # define _r pub._r - # define _w pub._w --# elif defined __ANDROID__ /* Android */ -+# elif defined __ANDROID_BUT_THIS_IS_BROKEN__ /* Android */ - /* Up to this commit from 2015-10-12 - - the innards of FILE were public, and fp_ub could be defined like for OpenBSD,