Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 0 additions & 64 deletions srcpkgs/coreutils/patches/cksum.patch

This file was deleted.

130 changes: 0 additions & 130 deletions srcpkgs/coreutils/patches/copy.patch

This file was deleted.

30 changes: 16 additions & 14 deletions srcpkgs/coreutils/template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Template file for 'coreutils'
pkgname=coreutils
version=9.2
version=9.3
revision=1
bootstrap=yes
makedepends="gmp-devel acl-devel libcap-devel"
Expand All @@ -10,8 +10,10 @@ license="GPL-3.0-or-later"
homepage="https://www.gnu.org/software/coreutils"
changelog="https://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=blob_plain;f=NEWS;hb=HEAD"
distfiles="${GNU_SITE}/coreutils/coreutils-${version}.tar.xz"
checksum=6885ff47b9cdb211de47d368c17853f406daaf98b148aaecdf10de29cc04b0b3

checksum=adbcfcfe899235b71e8768dcf07cd532520b7f54f9a8064843f8d199a904bbaa
alternatives="
hostname:hostname:/usr/bin/hostname-coreutils
hostname:hostname.1:/usr/share/man/man1/hostname-coreutils.1"
replaces="chroot-coreutils>=0 coreutils-doc>=0 b2sum>=0"

if [ "$CHROOT_READY" ]; then
Expand All @@ -27,10 +29,6 @@ if [ "$XBPS_TARGET_LIBC" = musl ]; then
export ac_cv_header_sys_cdefs_h=no
fi

alternatives="
hostname:hostname:/usr/bin/hostname-coreutils
hostname:hostname.1:/usr/share/man/man1/hostname-coreutils.1"

pre_configure() {
# Build natively all utils for the host, we need this to generate
# the manpages via help2man.
Expand All @@ -57,6 +55,12 @@ do_configure() {
# XXX syncfs() in src/sync.c expects a return value.
*-musl) configure_args+=" ac_cv_func_syncfs=no";;
esac
case "$XBPS_TARGET_MACHINE" in
arm*-musl)
# musl 1.1
configure_args+=" ac_year2038_required=no"
# this does not work: --disable-year2038
esac
#
# Do not install kill: provided by util-linux.
# Do not install uptime: provided by procps-ng.
Expand Down Expand Up @@ -101,17 +105,15 @@ do_check() {
# Tests that fail due to being inside a chroot
exeext_tests="chown lchown fchownat"

# Tests that depend on the tests removed
exeext_tests+=" fchmodat fchdir"

# temporarily disable two tests (coreutils9.1)
vsed -i "s/test-getcwd.sh //" gnulib-tests/Makefile
exeext_tests+=" getlogin"

for test in $exeext_tests ; do
vsed -i "s/test-$test\$(EXEEXT) //" gnulib-tests/Makefile
done

if [ "$XBPS_BUILD_ENVIRONMENT" = "void-packages-ci" ]; then
vsed -i '/tests\/tail-2\/inotify-dir-recreate/d' Makefile
vsed -i '/tests\/du\/long-from-unreadable/d' Makefile
fi

make check
}

Expand Down