Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909650 - sys-kernel/genkernel-4.3.3 fails on libxcrypt with Perl 5.38
Summary: sys-kernel/genkernel-4.3.3 fails on libxcrypt with Perl 5.38
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on: 910520
Blocks: perl-5.38
  Show dependency tree
 
Reported: 2023-07-04 20:51 UTC by Søren Dalby Larsen
Modified: 2023-07-18 21:51 UTC (History)
1 user (show)

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


Attachments
genkernel.log (genkernel.log,58.82 KB, text/x-log)
2023-07-04 20:52 UTC, Søren Dalby Larsen
Details
emerge info (emerge.inf,6.11 KB, text/plain)
2023-07-05 11:20 UTC, Geoff Madden
Details
truncated genkernel log for the initramfs (genkernel.log.tar.xz,7.32 KB, application/x-xz)
2023-07-05 11:25 UTC, Geoff Madden
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Søren Dalby Larsen 2023-07-04 20:51:32 UTC
Generating my initramfs with genkernel --luks --lvm --install initramfs fails on appending busybox data. The problem is with libxcrypt-4.4.26

Reproducible: Always

Steps to Reproduce:
1.genkernel --lvm --luks --install initramfs


Actual Results:  
Errors out on busybox (libxcrypt)

Expected Results:  
It usually just works (tm)

Portage 3.0.49 (python 3.12.0-beta-3, default/linux/amd64/17.1/desktop, gcc-13, glibc-2.37-r3, 6.4.0-gentoo x86_64)
=================================================================
System uname: Linux-6.4.0-gentoo-x86_64-AMD_Ryzen_7_4800H_with_Radeon_Graphics-with-glibc2.37
KiB Mem:    65248624 total,  46669820 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 04 Jul 2023 07:00:01 +0000
Head commit of repository gentoo: b1a3809a465388c674603264b8839885175c9c4e
Timestamp of repository brother-overlay: Fri, 16 Jun 2023 18:17:32 +0000
Head commit of repository brother-overlay: c811188c851ca8ea76c5e77a3d2ffca4d79835b5

Timestamp of repository guru: Tue, 04 Jul 2023 05:01:54 +0000
Head commit of repository guru: 819c0639329f3b67517027b791d55cd2802b03f1

sh bash 5.2_p15-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r6::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.38.0::gentoo
dev-lang/python:           3.11.4::gentoo, 3.12.0_beta3::gentoo
dev-lang/rust:             1.70.0::gentoo
dev-util/cmake:            3.26.4-r1::gentoo
dev-util/meson:            1.1.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/openrc:           0.47.1::gentoo
sys-apps/sandbox:          2.34::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.6::gentoo
sys-devel/gcc:             13.1.1_p20230527::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.4::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

brother-overlay
    location: /var/db/repos/brother-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/brother-overlay.git
    masters: gentoo
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

local_overlay
    location: /usr/local/portage
    masters: gentoo
    priority: 0
    volatile: True

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/brother/scanner/brscan4/brsanenetdevice4.cfg /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_DK.UTF-8"
LDFLAGS="-fuse-ld=mold -Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j8"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/zsh"
USE="X a52 aac acl acpi alsa amd64 branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr elogind encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline resolvconf sdl seccomp sound spell split-usr ssl startup-notification svg test-rust theora tiff truetype udev udisks unicode upower usb vim-syntax vorbis vulkan wxwidgets x264 xattr xcb xcomposite xft xml xv xvid zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2021" ALSA_CARDS="snd-hda-intel"
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-04 20:52:09 UTC
Please include the genkernel log.
Comment 2 Søren Dalby Larsen 2023-07-04 20:52:14 UTC
Created attachment 865145 [details]
genkernel.log
Comment 3 Marek Duranik 2023-07-04 21:29:03 UTC
Same error i got with two version of genkernel(4.3.3 and 4.3.2-r1) and three versions of kernel(6.3.8 6.4.1 6.4.1-r1) 

genkernel --oldconfig --lvm --mdadm all
...
...
checking for Python 3.>=6 with Passlib... /usr/bin/python3
when is deprecated at /var/tmp/genkernel/gk_rLVnZvUR/libxcrypt/libxcrypt-4.4.26/build-aux/BuildCommon.pm line 522.
Compilation failed in require at ./build-aux/expand-selected-hashes line 28.
BEGIN failed--compilation aborted at ./build-aux/expand-selected-hashes line 28.
configure: error: bad value 'all' for --enable-hashes
* ERROR: Command './configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/libxcrypt-4.4.26 --htmldir=/usr/share/doc/libxcrypt-4.4.26/html --with-sysroot='/var/tmp/genkernel/gk_rLVnZvUR/libxcrypt/buildroot/usr:/' --enable-shared --enable-static' failed!
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-04 21:49:47 UTC
After bumping to fix bug 908803, we'll hit bug 908802 too. Need to backport the ::gentoo patch or wait for a new upstream release (I've asked them for one).
Comment 5 Marek Duranik 2023-07-04 21:58:36 UTC
I don't understand why in my case genkernel use libxcrypt-4.4.26, but in system is success compiled version 4.4.35

[ebuild   R    ] sys-libs/libxcrypt-4.4.35:0/1::gentoo  USE="(compat) (split-usr) (system) -headers-only -static-libs -test" ABI_X86="32 (64) (-x32)" 0 KiB
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-04 22:03:16 UTC
genkernel uses bundled copies of libraries.
Comment 7 Geoff Madden 2023-07-05 11:20:04 UTC
Created attachment 865162 [details]
emerge info
Comment 8 Geoff Madden 2023-07-05 11:25:53 UTC
Created attachment 865163 [details]
truncated genkernel log for the initramfs

reason for the truncated log is I retried to build initramfs which o/write the original build log
ran  perl-cleaner to bring the update to  spec
added passlib +extras suggested in the original log
Comment 9 John Bowler 2023-07-05 17:27:18 UTC
From /var/log/genkernel.log:

Compilation failed in require at ./build-aux/expand-selected-hashes line 28.
BEGIN failed--compilation aborted at ./build-aux/expand-selected-hashes line 28.
configure: error: bad value 'all' for --enable-hashes
* ERROR: Command './configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/libxcrypt-4.4.26 --htmldir=/usr/share/doc/libxcrypt-4.4.26/html --with-sysroot='/var/tmp/genkernel/gk_8XzqzrNC/libxcrypt/buildroot/usr:/' --enable-shared --enable-static' failed!

* ERROR: create_initramfs(): append_data(): append_busybox(): populate_binpkg(): populate_binpkg(): gkbuild(): Failed to create binpkg of libxcrypt-4.4.26!

This is with the same point of failure ("appending busybox cpio data") and configuring "libxcrypt".

I'll attach /var/log/genkernel.log in case it might help, but it seems like the problem is understood (but this bug is still "UNCONFIRMED").
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-05 17:28:21 UTC
We don't really use bug statuses much in that sense, but sure.
Comment 11 John Bowler 2023-07-05 17:33:00 UTC
I verified that my /var/log/genkernel.log is substantially the same as the existing attachment "truncated genkernel.log..." so I won't duplicate it.
Comment 12 Søren Dalby Larsen 2023-07-05 18:20:13 UTC
@Sam James

Just confirming that upgrading to libxcrypt-4.4.35 and applying the patch from ::gentoo actualy works, so there's light :)
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-05 18:21:05 UTC
(In reply to Søren Dalby Larsen from comment #12)
> @Sam James
> 
> Just confirming that upgrading to libxcrypt-4.4.35 and applying the patch
> from ::gentoo actualy works, so there's light :)

Thanks! I'm working on a bump now as upstream libxcrypt just cut 4.4.36 which makes life a bit easier too.
Comment 14 Larry the Git Cow gentoo-dev 2023-07-05 18:27:28 UTC
The bug has been closed via the following commit(s):

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

commit e01ec132717e83208d78eb8b81e00ddb0ef91f7b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-07-05 18:26:47 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-07-05 18:27:15 +0000

    sys-kernel/genkernel: add 4.3.5
    
    Closes: https://bugs.gentoo.org/909650
    Bug: https://bugs.gentoo.org/909722
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-kernel/genkernel/Manifest               |   2 +
 sys-kernel/genkernel/genkernel-4.3.5.ebuild | 322 ++++++++++++++++++++++++++++
 sys-kernel/genkernel/genkernel-9999.ebuild  |   6 +-
 3 files changed, 327 insertions(+), 3 deletions(-)