PATCH_LIST="coreutils-disable-gets-test.diff 0001-chroot-perform-chdir-again-unless-new-skip-chdir-is-.patch 0002-cp-issue-correct-warning-and-ignore-duplicate-source.patch 0003-cp-fix-handling-of-H-with-multiply-specified-source-.patch 0007-dd-use-more-robust-SIGUSR1-handling.patch 0008-wc-don-t-miscount-sys-and-similar-file-systems.patch 0009-chroot-call-chroot-unconditionally-to-handle-bind-mo.patch 0010-paste-fix-possible-truncated-output-with-large-files.patch 0011-rm-fix-prompted-number-of-arguments-to-remove-on-som.patch 0012-build-fix-missing-casts-from-recent-change.patch 0013-du-handle-sub-bind-mount-cycles-gracefully.patch 0014-tail-return-inotify-resources-where-possible.patch 0015-tail-fix-f-to-follow-changes-after-a-rename.patch 0016-df-fix-use-of-uninitialized-variable-reported-by-val.patch 0017-df-fix-local-hanging-with-inaccessible-remote-mounts.patch 0018-tail-consistently-output-all-data-for-truncated-file.patch " FILE_LIST= SRC_FETCH_METHOD=http SRC_FETCH_PATH="http://ftp.gnu.org/gnu/coreutils/coreutils-${PKGVER}.tar.xz" MAKEDEPENDS= function do_config { # the ACL patch needs to regenerate the following file which does not always # work. It's enough to touch the destination to avoid a complete re-make. touch doc/coreutils.info # If the system does not have a valid /usr/include/path.h with such PATHs, it # is preferable to redefine them. Otherwise, "su" will have random useless # things. CC="$CC" CXX="$CXX" LD="$LD" \ RANLIB="$RANLIB" AR="$AR" AS="$AS" NM="$NM" OBJDUMP="$OBJDUMP" \ ac_cv_func_lutimes=no \ ac_cv_func_lchmod=no \ am_cv_func_iconv=no \ ac_fsusage_space=yes \ fu_cv_sys_stat_statvfs=yes \ CFLAGS="-DLEAP_SECONDS_POSSIBLE=0 -D_PATH_DEFPATH_ROOT='\"/sbin:/usr/sbin:/bin:/usr/bin\"'" \ # added echo false kill true readlink sha1sum sleep true tty yes ./configure --prefix=/usr --bindir=/bin --sbindir=/sbin --sysconfdir=/etc --host=$FLXTARG --build=$FLXHOST \ --disable-assert --disable-acl --disable-xattr --enable-largefile --includedir=$FLXROOTDIR/usr/include/ \ --enable-single-binary=symlinks \ --enable-single-binary-exceptions=base64,chcon,cksum,comm,csplit,dir,dircolors,expand,factor,fmt,fold,ginstall,groups,hostid,join,link,logname,mkfifo,nl,nproc,numfmt,paste,pathchk,pinky,pr,printenv,printf,ptx,realpath,runcon,sha224sum,sha256sum,sha384sum,sha512sum,shred,shuf,split,stat,stdbuf,tac,timeout,truncate,tsort,unexpand,unlink,uptime,users,vdir,whoami } function do_compile_only { $FLXPMAKE man1_MANS= EXTRA_MANS= } function do_prepack { $FLXMAKE install DESTDIR=$ROOTDIR man1_MANS= EXTRA_MANS= rmdir $ROOTDIR/usr/lib >/dev/null 2>&1 mkdir -p $ROOTDIR/usr/bin && ln -s ../../bin/env $ROOTDIR/usr/bin/env set_default_perm $ROOTDIR chmod 711 $ROOTDIR/bin/coreutils } function do_clean { make distclean rm -f src/version.[ch]t ( do_delpack ) return 0 }