Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913127 - sys-kernel/gentoo-sources on ppc64le: USE Flag 'headers-only' not in IUSE for sys-kernel/gentoo-sources-6.4.12
Summary: sys-kernel/gentoo-sources on ppc64le: USE Flag 'headers-only' not in IUSE for...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-08-28 05:18 UTC by matoro
Modified: 2023-08-29 02:11 UTC (History)
4 users (show)

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


Attachments
build.log (1u2fus7.log,4.01 KB, text/plain)
2023-08-28 05:20 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2023-08-28 05:18:21 UTC
On ppc64le, can no longer build sys-kernel/gentoo-sources (possibly since https://github.com/gentoo/gentoo/commit/6472469a0333ea9088e815c0741c2dfb200987b5), it errors during unpack phase with the following:

 * ERROR: sys-kernel/gentoo-sources-6.4.12::gentoo failed (unpack phase):
 *   USE Flag 'headers-only' not in IUSE for sys-kernel/gentoo-sources-6.4.12

This does NOT affect big-endian ppc64.

Reproducible: Always




Portage 3.0.51 (python 3.11.5-final-0, default/linux/ppc64le/17.0, gcc-13, glibc-2.38-r1, 6.4.11-gentoo-ppc64le ppc64le)
=================================================================
System uname: Linux-6.4.11-gentoo-ppc64le-ppc64le-POWER9_-architected-,_altivec_supported-with-glibc2.38
KiB Mem:    12502528 total,    563008 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 27 Aug 2023 23:01:43 +0000
Head commit of repository gentoo: 84d4d5e00f0b3ef61c421b4b4c78b52c17b51eae

Timestamp of repository guru: Sun, 27 Aug 2023 19:47:14 +0000
Head commit of repository guru: 0201094afe9b5060f08be156032b0d065ef8e66d

Head commit of repository matoro: 9d9931a772ea4e9f54e86a5d527447247b75e8b2

sh bash 5.2_p15-r6
ld GNU ld (Gentoo 2.41 p2) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r6::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.11.5::gentoo, 3.12.0_rc1_p6::gentoo
dev-lang/rust:             1.71.1::gentoo
dev-util/cmake:            3.27.4::gentoo
dev-util/meson:            1.2.1-r1::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/autoconf:        2.71-r7::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.41-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             13.2.0::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.38-r1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    sync-user: portage:portage
    priority: -1000
    volatile: False
    sync-git-verify-commit-signature: yes

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

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

ACCEPT_KEYWORDS="ppc64 ~ppc64"
ACCEPT_LICENSE="@FREE"
CBUILD="powerpc64le-unknown-linux-gnu"
CFLAGS="-O3 -mcpu=native -mtune=native -O2 -pipe -pipe"
CHOST="powerpc64le-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -mcpu=native -mtune=native -O2 -pipe -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--usepkg --autounmask=n --complete-graph --keep-going --with-bdeps=y"
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="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live compress-build-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://gentoo.osuosl.org/ https://mirror.leaseweb.com/gentoo/ https://mirror.rackspace.com/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-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/bash"
USE="acl bash-completion bzip2 caps cli crypt dist-kernel dri elogind fortran gdbm gentoo-vm graphite headless-awt iconv ipv6 libbsd lm-sensors lto native-extensions ncurses nls nptl openmp pam pcre pgo ppc64 readline seccomp split-usr ssl symlink system-bootstrap system-llvm test-rust threads udev unicode verify-sig vhosts vim-syntax xattr zlib" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 matoro archtester 2023-08-28 05:20:09 UTC
Created attachment 868841 [details]
build.log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-08-28 05:21:17 UTC
catcream: please take a look, thanks
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-08-28 05:21:33 UTC
(In reply to matoro from comment #0)
> On ppc64le, can no longer build sys-kernel/gentoo-sources (possibly since
> https://github.com/gentoo/gentoo/commit/
> 6472469a0333ea9088e815c0741c2dfb200987b5), it errors during unpack phase
> with the following:

Please try reverting it locally.
Comment 4 matoro archtester 2023-08-28 14:37:03 UTC
(In reply to Sam James from comment #3)
> (In reply to matoro from comment #0)
> > On ppc64le, can no longer build sys-kernel/gentoo-sources (possibly since
> > https://github.com/gentoo/gentoo/commit/
> > 6472469a0333ea9088e815c0741c2dfb200987b5), it errors during unpack phase
> > with the following:
> 
> Please try reverting it locally.

Just confirmed that local revert fixes the issue.  This is the problematic commit.
Comment 5 Alfred Persson 2023-08-28 14:49:07 UTC
It probably has to do with this line https://github.com/gentoo/gentoo/blob/master/eclass/kernel-2.eclass#L294. Before it would set CHOST before doing the cross logic and setting CTARGET. 

Now CTARGET will be ppc64-whatever, and CHOST will be powerpc64-...
Comment 6 Alfred Persson 2023-08-28 14:50:12 UTC
Will take a look at this in a few hours, is it fine to set variables before inheriting in eclasses?
Comment 7 Larry the Git Cow gentoo-dev 2023-08-29 02:11:54 UTC
The bug has been closed via the following commit(s):

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

commit c5f2fe5daab92a94070cfc41acb543941818c96b
Author:     Alfred Persson Forsberg <cat@catcream.org>
AuthorDate: 2023-08-28 22:04:49 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-08-29 02:09:00 +0000

    kernel-2.eclass: move ppc64 hack before crossdev inherit
    
    Closes: https://bugs.gentoo.org/913127
    Signed-off-by: Alfred Persson Forsberg <cat@catcream.org>
    Closes: https://github.com/gentoo/gentoo/pull/32501
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/kernel-2.eclass | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)