I've just updated portage using the recommended oneshot method. (doas emerge --sync) (doas emerge --oneshot sys-apps/portage) Rigth after I ran the usual: doas emerge -uDN @world All packages refuse to build with the error: ERROR: <package-name> (configure phase): 'portageq' is not allowed in ebuild scope Including portage itself (I tried to rebuild it). I tried doing a rescue (downloading a previous version to /tmp/portage) as I thought I had done something wrong, but even after that working, the new version is still broken. I'm running glibc-gcc-desktop gentoo. As it is failing to configure every package with that error, I believe providing my configs is pointless (everything builds on previous versions just fine). Possible critical regression?
I'm not even sure whether this is reproducible or not, but i don't see why I'd be getting this error in the first place.
> i don't see why I'd be getting this error in the first place. And if it's not reproducible, neither can we, especially without your `emerge --info` and a relevant build.log. Please provide them.
The situation seems to be a bit more complicate and requires some analysis. Please provide * the complete build.log as attachment and * a paste of the emerge info as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket I have had very good experience on the gentoo IRC [1] with questions like this. Of course there are also forums and mailing lists [2,3]. I hope you understand, that I will close the bug here therefore and wish you good luck on one of the mentioned channels [4]. Please reopen the ticket in order to provide an indication for an specific error in an ebuild or any gentoo related product. [1] https://www.gentoo.org/get-involved/irc-channels/ [2] https://forums.gentoo.org/ [3] https://www.gentoo.org/get-involved/mailing-lists/all-lists.html [4] https://www.gentoo.org/support/ Please reopen this ticket (Status:UNCONFIRMED) when we have more information or a way to reproduce the problem.
emerge --info: Portage 3.0.54 (python 3.11.6-final-0, default/linux/amd64/17.1/desktop, gcc-13, glibc-2.38-r6, 6.5.6-gentoo x86_64) ================================================================= System uname: Linux-6.5.6-gentoo-x86_64-AMD_Ryzen_7_5700U_with_Radeon_Graphics-with-glibc2.38 KiB Mem: 15729312 total, 7372748 free KiB Swap: 32767996 total, 32765180 free Timestamp of repository gentoo: Wed, 25 Oct 2023 21:30:01 +0000 Head commit of repository gentoo: 3088bcd9e6f979dcfb124b2b5151ee26cc4d6727 Head commit of repository fulgurance-overlay: eadcc18ec465c925285896b711166e5f333ae228 Timestamp of repository guru: Sun, 22 Oct 2023 19:17:33 +0000 Head commit of repository guru: f82bc35013147ff5d8392c93892c623ce9408c9c Head commit of repository librewolf: cf0e96e73f451363acdfcdcfffe10e91296896f2 Timestamp of repository lto-overlay: Sun, 22 Oct 2023 19:17:30 +0000 Head commit of repository lto-overlay: ef8496977aac4e03ae6429123a26ceb37ff26a5f Timestamp of repository mv: Sun, 22 Oct 2023 19:17:23 +0000 Head commit of repository mv: ac1b54280304e60189df316683cc24830c80119b Timestamp of repository salfter: Wed, 25 Oct 2023 01:36:44 +0000 Head commit of repository salfter: 457660e387f54e76dfb09fa89d5a4f029ac4b203 Timestamp of repository science: Tue, 24 Oct 2023 09:01:48 +0000 Head commit of repository science: ca2462d55fc79fdc5906f144d25036b390783155 Timestamp of repository wayland-desktop: Sun, 22 Oct 2023 19:17:36 +0000 Head commit of repository wayland-desktop: 06eed9e8eb611ffb5c9a3a6c1f34f24642f14691 sh bash 5.2_p15-r7 ld GNU ld (Gentoo 2.41 p2) 2.41.0 ccache version 4.8.3 [disabled] app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p15-r7::gentoo dev-java/java-config: 2.3.1-r1::gentoo dev-lang/perl: 5.38.0-r1::gentoo dev-lang/python: 3.10.13::gentoo, 3.11.6::gentoo, 3.12.0_p1::gentoo dev-lang/rust: 1.73.0::gentoo dev-util/ccache: 4.8.3::gentoo dev-util/cmake: 3.27.7::gentoo dev-util/meson: 1.2.3::gentoo sys-apps/baselayout: 2.14::gentoo sys-apps/openrc: 0.51::gentoo sys-apps/sandbox: 2.38::gentoo sys-devel/autoconf: 2.13-r8::gentoo, 2.71-r7::gentoo sys-devel/automake: 1.16.5-r1::gentoo sys-devel/binutils: 2.41-r2::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 17.0.3::gentoo sys-devel/gcc: 11.4.1_p20230824::gentoo, 13.2.1_p20231014::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/lld: 17.0.3::gentoo sys-devel/llvm: 16.0.6::gentoo, 17.0.3::gentoo sys-devel/make: 4.4.1-r1::gentoo sys-kernel/linux-headers: 6.5-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.38-r6::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: <url> priority: -1000 volatile: False sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 fulgurance-overlay location: /var/db/repos/fulgurance-overlay sync-type: git sync-uri: <url> masters: gentoo volatile: False guru location: /var/db/repos/guru sync-type: git sync-uri: <url> masters: gentoo volatile: False librewolf location: /var/db/repos/librewolf sync-type: git sync-uri: <url> masters: gentoo volatile: False lto-overlay location: /var/db/repos/lto-overlay sync-type: git sync-uri: <url> masters: gentoo mv volatile: False mv location: /var/db/repos/mv sync-type: git sync-uri: <url> masters: gentoo volatile: False salfter location: /var/db/repos/salfter sync-type: git sync-uri: <url> masters: gentoo volatile: False science location: /var/db/repos/science sync-type: git sync-uri: <url> masters: gentoo volatile: False wayland-desktop location: /var/db/repos/wayland-desktop sync-type: git sync-uri: <url> masters: gentoo volatile: False ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe -pipe" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=12.0" 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 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live candy config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted 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 -pipe" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--as-needed" LEX="flex" MAKEOPTS="-j14 -l12" 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" RUSTFLAGS="-C target-cpu=native" SHELL="/bin/dash" USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr elogind encode exif fbcon flac fortran gdbm gif gles1 gles2 gpm gtk gui iconv icu ipv6 jpeg lcms libnotify libtirpc lto luajit lz4 mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf pgo pipewire png policykit ppds pulseaudio qt5 qt6 readline sdl seccomp sound spell split-usr ssl startup-notification static-analyzer svg taglib test-rust tiff tkip truetype udev udisks unicode upower usb v4l vaapi vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xorg xv xvid zlib" ABI_X86="64" 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" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput synaptics" 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" VIDEO_CARDS="amdgpu radeonsi" 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, SIZE, STRINGS, STRIP, YACC, YFLAGS
* Package: sys-apps/portage-3.0.54:0 * Repository: gentoo * Maintainer: dev-portage@gentoo.org * Upstream: dev-portage@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc ipc kernel_linux native-extensions python_targets_python3_11 rsync-verify xattr * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox * FEATURES='binpkg-logs xattr pkgdir-index-trusted merge-sync protect-owned userpriv ipc-sandbox binpkg-dostrip strict news buildpkg-live candy usersync unmerge-orphans ebuild-locks preserve-libs network-sandbox fixlafiles parallel-install sfperms pid-sandbox userfetch binpkg-docompress unknown-features-warn assume-digests usersandbox qa-unresolved-soname-deps config-protect-if-modified unmerge-logs distlocks binpkg-multi-instance multilib-strict sandbox parallel-fetch' * CFLAGS='-march=native -O2 -pipe -pipe -Wl,-O1 -Wl,--as-needed' * CXXFLAGS='-march=native -O2 -pipe -pipe -Wl,-O1 -Wl,--as-needed' * FFLAGS='-march=native -O2 -pipe -pipe -Wl,-O1 -Wl,--as-needed' * FCFLAGS='-march=native -O2 -pipe -pipe -Wl,-O1 -Wl,--as-needed' * F77FLAGS='-march=native -O2 -pipe -pipe -Wl,-O1 -Wl,--as-needed' * LDFLAGS='-Wl,-O1 -Wl,--as-needed -Wl,--as-needed' * RUSTFLAGS='-C embed-bitcode -C target-cpu=native -C opt-level=3' * MAKEOPTS='-j14 -l12' * gcc (Gentoo 13.2.1_p20231014 p9) 13.2.1 20231014 * g++ (Gentoo 13.2.1_p20231014 p9) 13.2.1 20231014 * GNU ld (Gentoo 2.41 p2) 2.41.0 * Linux lambda 6.5.6-gentoo #5 SMP PREEMPT_DYNAMIC Mon Oct 9 03:20:03 WEST 2023 x86_64 AMD Ryzen 7 5700U with Radeon Graphics AuthenticAMD GNU/Linux sys-apps/portage: 1 minute, 1 second average for 35 merges 2022-09-29T22:53:28 >>> sys-apps/portage: 18 seconds 2022-10-03T00:48:18 >>> sys-apps/portage: 1 minute, 18 seconds 2022-10-04T21:43:57 >>> sys-apps/portage: 20 seconds 2022-10-23T16:36:31 >>> sys-apps/portage: 19 seconds 2022-10-28T08:41:45 >>> sys-apps/portage: 28 seconds 2022-11-25T20:51:25 >>> sys-apps/portage: 26 seconds 2022-12-13T01:02:13 >>> sys-apps/portage: 20 seconds 2023-01-03T09:15:45 >>> sys-apps/portage: 17 seconds 2023-01-16T14:11:23 >>> sys-apps/portage: 56 seconds 2023-03-03T10:42:42 >>> sys-apps/portage: 1 minute, 37 seconds 2023-03-10T01:50:19 >>> sys-apps/portage: 18 seconds 2023-03-19T21:31:34 >>> sys-apps/portage: 2 minutes, 27 seconds 2023-03-29T11:22:49 >>> sys-apps/portage: 18 seconds 2023-04-12T11:08:35 >>> sys-apps/portage: 20 seconds 2023-05-01T17:49:11 >>> sys-apps/portage: 1 minute, 31 seconds 2023-05-11T22:42:51 >>> sys-apps/portage: 1 minute, 20 seconds 2023-06-01T11:43:19 >>> sys-apps/portage: 1 minute, 36 seconds 2023-06-06T02:19:33 >>> sys-apps/portage: 9 minutes, 1 second 2023-06-06T12:39:07 >>> sys-apps/portage: 1 minute, 7 seconds 2023-06-10T02:32:15 >>> sys-apps/portage: 16 seconds 2023-06-23T20:24:21 >>> sys-apps/portage: 18 seconds 2023-07-15T18:21:53 >>> sys-apps/portage: 1 minute, 51 seconds 2023-07-31T00:37:37 >>> sys-apps/portage: 16 seconds 2023-08-15T22:15:42 >>> sys-apps/portage: 24 seconds 2023-08-21T17:49:26 >>> sys-apps/portage: 48 seconds 2023-09-26T05:09:17 >>> sys-apps/portage: 20 seconds 2023-09-27T11:59:04 >>> sys-apps/portage: 28 seconds 2023-09-28T06:10:46 >>> sys-apps/portage: 23 seconds 2023-09-29T03:31:27 >>> sys-apps/portage: 24 seconds 2023-09-30T04:19:40 >>> sys-apps/portage: 25 seconds 2023-10-02T02:23:05 >>> sys-apps/portage: 21 seconds 2023-10-03T15:35:50 >>> sys-apps/portage: 1 minute, 21 seconds 2023-10-05T04:14:31 >>> sys-apps/portage: 1 minute, 20 seconds 2023-10-25T22:33:58 >>> sys-apps/portage: 2 minutes, 19 seconds 2023-10-25T23:04:34 >>> sys-apps/portage: 18 seconds * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Could not find a Makefile in the kernel source directory. * Please ensure that /usr/src/linux points to a complete set of Linux sources * Unable to calculate Linux Kernel version for build, attempting to use running version >>> Unpacking source... >>> Unpacking portage-3.0.54.tar.bz2 to /var/tmp/portage/sys-apps/portage-3.0.54/work >>> Source unpacked in /var/tmp/portage/sys-apps/portage-3.0.54/work >>> Preparing source in /var/tmp/portage/sys-apps/portage-3.0.54/work/portage-3.0.54 ... >>> Source prepared. * ERROR: sys-apps/portage-3.0.54::gentoo failed (configure phase): * 'portageq' is not allowed in ebuild scope * * If you need support, post the output of `emerge --info '=sys-apps/portage-3.0.54::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-apps/portage-3.0.54::gentoo'`. * The complete build log is located at '/var/tmp/portage/sys-apps/portage-3.0.54/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-apps/portage-3.0.54/temp/environment'. * Working directory: '/var/tmp/portage/sys-apps/portage-3.0.54/work/portage-3.0.54' * S: '/var/tmp/portage/sys-apps/portage-3.0.54/work/portage-3.0.54'
I believe this is an issue with the "gentoo LTO" overlay: https://github.com/InBetweenNames/gentooLTO/issues/883
It appears to be so. Well, that's going to be painfull!
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/data/api.git/commit/?id=19c03f47d593ae273b213f895f0cdce5f16b6a6d commit 19c03f47d593ae273b213f895f0cdce5f16b6a6d Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2023-10-26 01:02:08 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2023-10-26 01:08:08 +0000 repositories: drop lto-overlay No commits since December 2022, and its use currently prevent installing anything due to bug #916287 which been ignored upstream for months following a deprecation period. Note that Gentoo is mostly handling LTO nowadays, and using a simple e.g. "-march=native -O2 -flto" for *FLAGS will typically work without needing an overlay to handle exceptions (if not, please file bugs). -O3 is fine too, however some other flags (e.g. -fno-plt, -fipa-pta) may be far more volatile and are not recommended either way. Not closing bug #916287 for now to make it easier for users to find it. Bug: https://bugs.gentoo.org/916287 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> files/overlays/repositories.xml | 12 ------------ 1 file changed, 12 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=27952b1d753ef4ea9bbd2307f8a9a315ad94557d commit 27952b1d753ef4ea9bbd2307f8a9a315ad94557d Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2023-10-26 14:42:00 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2023-10-26 15:45:14 +0000 Convert portageq helper to a function This keeps it out of PATH in ebuilds to avoid breaking external utilities that call portageq. Bug: https://bugs.gentoo.org/906129 Bug: https://bugs.gentoo.org/916287 Bug: https://bugs.gentoo.org/916296 Signed-off-by: Mike Gilbert <floppym@gentoo.org> NEWS | 4 +++- bin/ebuild-helpers/portageq | 8 -------- bin/phase-helpers.sh | 4 ++++ bin/portageq-wrapper | 1 - 4 files changed, 7 insertions(+), 10 deletions(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef59ea9a89cfb8bcec388c7ea1a962a4ca0940b6 commit ef59ea9a89cfb8bcec388c7ea1a962a4ca0940b6 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2023-10-26 15:50:22 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2023-10-26 15:50:22 +0000 sys-apps/portage: backport portageq fix Closes: https://bugs.gentoo.org/916287 Closes: https://bugs.gentoo.org/916296 Signed-off-by: Mike Gilbert <floppym@gentoo.org> ....54-Convert-portageq-helper-to-a-function.patch | 65 ++++++++++++++++++++++ ...tage-3.0.54.ebuild => portage-3.0.54-r1.ebuild} | 3 + 2 files changed, 68 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/data/api.git/commit/?id=f42785edefe6064fb16064b72e68cce7e4ea3513 commit f42785edefe6064fb16064b72e68cce7e4ea3513 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-12-05 09:14:56 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-12-05 09:14:59 +0000 Revert "repositories: drop lto-overlay" This reverts commit 19c03f47d593ae273b213f895f0cdce5f16b6a6d. Put it back for now so people can pick up the fixes / news item which got added later (so they're not stuck syncing some old copy of it), especially as newer Portage got stabled w/ the portageq changes. Repo had some life in it since as well. I think we may want to consider dropping it again after a grace period for people to pick up these fixes though. Bug: https://bugs.gentoo.org/916287 Signed-off-by: Sam James <sam@gentoo.org> files/overlays/repositories.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+)
to be clear: may well remove it again, just that for the moment, it seems like it does less harm to put it back for people to get the fixes, rather than keep it removed