commit:     91caf8a690ae6df19f7287f2ee7c0790ca3a8150
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 17 22:43:28 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jun 17 22:46:45 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91caf8a6

sys-apps/coreutils: append-lfs-flags for alpha & friends

Thanks to matoro for investigating & reporting upstream.

The gnulib autoconf machinery doesn't seem to realise right now that we need
_F_O_B=64 on alpha at least for 64-bit ino_t.

Bug: https://debbugs.gnu.org/64123
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../{coreutils-9999.ebuild => coreutils-9.3-r3.ebuild}        | 11 ++++++++++-
 sys-apps/coreutils/coreutils-9999.ebuild                      |  6 +++++-
 2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/sys-apps/coreutils/coreutils-9999.ebuild 
b/sys-apps/coreutils/coreutils-9.3-r3.ebuild
similarity index 94%
copy from sys-apps/coreutils/coreutils-9999.ebuild
copy to sys-apps/coreutils/coreutils-9.3-r3.ebuild
index 6e3d435cba1d..ab1c0e9a1cbd 100644
--- a/sys-apps/coreutils/coreutils-9999.ebuild
+++ b/sys-apps/coreutils/coreutils-9.3-r3.ebuild
@@ -23,7 +23,7 @@ if [[ ${PV} == 9999 ]] ; then
 elif [[ ${PV} == *_p* ]] ; then
        # Note: could put this in devspace, but if it's gone, we don't want
        # it in tree anyway. It's just for testing.
-       MY_SNAPSHOT="$(ver_cut 1-2).198-e68b1"
+       MY_SNAPSHOT="$(ver_cut 1-2).18-ffd62"
        SRC_URI="https://www.pixelbeat.org/cu/coreutils-${MY_SNAPSHOT}.tar.xz 
-> ${P}.tar.xz"
        SRC_URI+=" verify-sig? ( 
https://www.pixelbeat.org/cu/coreutils-${MY_SNAPSHOT}.tar.xz.sig -> 
${P}.tar.xz.sig )"
        S="${WORKDIR}"/${PN}-${MY_SNAPSHOT}
@@ -110,6 +110,8 @@ src_unpack() {
 src_prepare() {
        local PATCHES=(
                # Upstream patches
+               "${FILESDIR}"/${P}-cp-parents-preserve-permissions.patch
+               "${FILESDIR}"/${P}-old-kernel-copy_file_range.patch
        )
 
        if ! use vanilla && [[ -d "${WORKDIR}"/patch ]] ; then
@@ -118,6 +120,9 @@ src_prepare() {
 
        default
 
+       # Just for ${P}-old-kernel-copy_file_range.patch
+       touch aclocal.m4 configure.ac Makefile.in gnulib-tests/Makefile.in 
configure || die
+
        # Since we've patched many .c files, the make process will try to
        # re-build the manpages by running `./bin --help`.  When doing a
        # cross-compile, we can't do that since 'bin' isn't a native bin.
@@ -135,6 +140,10 @@ src_prepare() {
 }
 
 src_configure() {
+       # On alpha at least, gnulib (as of 9.3) can't seem to figure out we need
+       # _F_O_B=64: https://debbugs.gnu.org/64123
+       append-lfs-flags
+
        local myconf=(
                --with-packager="Gentoo"
                --with-packager-version="${PVR} (p${PATCH_VER:-0})"

diff --git a/sys-apps/coreutils/coreutils-9999.ebuild 
b/sys-apps/coreutils/coreutils-9999.ebuild
index 6e3d435cba1d..3e4dc9a20eb0 100644
--- a/sys-apps/coreutils/coreutils-9999.ebuild
+++ b/sys-apps/coreutils/coreutils-9999.ebuild
@@ -23,7 +23,7 @@ if [[ ${PV} == 9999 ]] ; then
 elif [[ ${PV} == *_p* ]] ; then
        # Note: could put this in devspace, but if it's gone, we don't want
        # it in tree anyway. It's just for testing.
-       MY_SNAPSHOT="$(ver_cut 1-2).198-e68b1"
+       MY_SNAPSHOT="$(ver_cut 1-2).18-ffd62"
        SRC_URI="https://www.pixelbeat.org/cu/coreutils-${MY_SNAPSHOT}.tar.xz 
-> ${P}.tar.xz"
        SRC_URI+=" verify-sig? ( 
https://www.pixelbeat.org/cu/coreutils-${MY_SNAPSHOT}.tar.xz.sig -> 
${P}.tar.xz.sig )"
        S="${WORKDIR}"/${PN}-${MY_SNAPSHOT}
@@ -135,6 +135,10 @@ src_prepare() {
 }
 
 src_configure() {
+       # On alpha at least, gnulib (as of 9.3) can't seem to figure out we need
+       # _F_O_B=64: https://debbugs.gnu.org/64123
+       append-lfs-flags
+
        local myconf=(
                --with-packager="Gentoo"
                --with-packager-version="${PVR} (p${PATCH_VER:-0})"

Reply via email to