drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/[
+-rwxr-xr-x root/root usr/bin/b2sum
+-rwxr-xr-x root/root usr/bin/base32
-rwxr-xr-x root/root usr/bin/base64
-rwxr-xr-x root/root usr/bin/basename
-rwxr-xr-x root/root usr/bin/chroot
# Depends on: libgmp acl libcap
name=coreutils
-version=8.24
-release=2
+version=8.26
+release=1
source=(http://ftp.gnu.org/pub/gnu/$name/$name-$version.tar.xz \
- $name-uname.patch)
+ $name-uname.patch $name-$version-Fix-cross.patch)
build() {
cd $name-$version
patch -p1 -i $SRC/$name-uname.patch
+ patch -p1 -i $SRC/$name-$version-Fix-cross.patch
cat > config.cache <<EOF
ac_cv_search_clock_gettime=no
export FORCE_UNSAFE_CONFIGURE=1
+ # fix to avoid build manpages
+ sed "s|UBDIRS = po . gnulib-tests|UBDIRS = . gnulib-tests|g" -i Makefile.am
+ sed 's|include $(top_srcdir)/man/local.mk||g' -i Makefile.am
+
./configure --build=$CHOST \
--host=$CTARGET \
--prefix=/usr \
--enable-no-install-program=uptime,kill,chcon,runcon,groups \
--cache-file=config.cache
- # fix to avoid crosscompile make-prime-list
- sed '/src_make_prime_list/d' -i Makefile
- depbase=`echo src/make-prime-list.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`
- gcc -std=gnu99 -I. -I./lib -Ilib -I./lib -Isrc -I./src \
- -fdiagnostics-show-option -funit-at-a-time \
- -g -O2 -MT src/make-prime-list.o -MD -MP -MF $depbase.Tpo \
- -c -o src/make-prime-list.o src/make-prime-list.c
- mv -f $depbase.Tpo $depbase.Po
- gcc -std=gnu99 -fdiagnostics-show-option -funit-at-a-time \
- -g -O2 -Wl,--as-needed -o src/make-prime-list src/make-prime-list.o
-
- # fix to avoid rebuild manpages
- sed 's|SUFFIXES: .1|SUFFIXES: |' -i Makefile
- sed 's|man1_MANS =.*|man1_MANS =|g' -i Makefile
-
make
make DESTDIR=$PKG install
--- /dev/null
+--- coreutils-8.26.orig/src/local.mk 2017-02-14 15:50:02.555173014 +0000
++++ coreutils-8.26/src/local.mk 2017-02-14 15:50:54.405173651 +0000
+@@ -645,7 +645,7 @@ check-duplicate-no-install: src/tr
+
+ # Use the just-built 'ginstall', when not cross-compiling.
+ if CROSS_COMPILING
+-cu_install_program = @INSTALL_PROGRAM@
++cu_install_program = @INSTALL@
+ else
+ cu_install_program = src/ginstall
+ endif