Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830830 - sys-apps/coreutils-9.0-r1: pkg_pretend fails with ZFS in chroot
Summary: sys-apps/coreutils-9.0-r1: pkg_pretend fails with ZFS in chroot
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-09 07:36 UTC by Patrick Lauer
Modified: 2022-01-15 22:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2022-01-09 07:36:40 UTC
* ERROR: sys-apps/coreutils-9.0-r1::gentoo failed (pretend phase):
 *   __eapi7_ver_compare: invalid version:
 *
 * Call stack:
 *                 ebuild.sh, line 127:  Called pkg_pretend
 *   coreutils-9.0-r1.ebuild, line  85:  Called ver_test '' '-lt' '2.0.7'
 *        eapi7-ver-funcs.sh, line 189:  Called __eapi7_ver_compare '' '2.0.7'
 *        eapi7-ver-funcs.sh, line  99:  Called die
 * The specific snippet of code:
 *      [[ ${va} =~ ${re} ]] || die "${FUNCNAME}: invalid version: ${va}"
 *

This is due to:

                local kmodv minver
                kmodv="$(grep kmod <(zfs -V 2>/dev/null))"
                # Convert zfs-kmod-2.1.1-r3-gentoo -> 2.1.1-r3
                kmodv="${kmodv//zfs-kmod-}"
in the ebuild, and:

 # zfs -V
zfs-2.1.1-r5-gentoo
zfs_version_kernel() failed: No such file or directory

because (strace):

write(1, "zfs-2.1.1-r5-gentoo\n", 20zfs-2.1.1-r5-gentoo
)   = 20
openat(AT_FDCWD, "/sys/module/zfs/version", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

(this works in the native environment, just can't access all of sysfs randomly from a bubblewrap environment)
Comment 1 Larry the Git Cow gentoo-dev 2022-01-15 22:22:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b02ae2fc1b05e3ed4f336cf758de3d9c8e9576e

commit 5b02ae2fc1b05e3ed4f336cf758de3d9c8e9576e
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2022-01-15 22:20:19 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2022-01-15 22:21:43 +0000

    sys-apps/coreutils: remove zfs check
    
    it has served it's purpose and no longer needed
    coreutils-9 will go stable soon too
    
    Closes: https://bugs.gentoo.org/830830
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 sys-apps/coreutils/coreutils-9.0-r1.ebuild | 42 +-----------------------------
 sys-apps/coreutils/coreutils-9.0.ebuild    | 42 +-----------------------------
 2 files changed, 2 insertions(+), 82 deletions(-)