Making check in qmanifest make[2]: Entering directory '/var/tmp/portage/app-portage/portage-utils-0.82/work/portage-utils-0.82/tests/qmanifest' make check-local make[3]: Entering directory '/var/tmp/portage/app-portage/portage-utils-0.82/work/portage-utils-0.82/tests/qmanifest' /var/tmp/portage/app-portage/portage-utils-0.82/work/portage-utils-0.82/tests/qmanifest/dotest --- /var/tmp/portage/app-portage/portage-utils-0.82/work/portage-utils-0.82/tests/qmanifest/manifest00.good 2019-11-27 12:32:12.000000000 +0000 +++ manifest 2019-11-28 18:05:56.221586708 +0000 @@ -1,2 +1,2 @@ not_a_tree: /notatree -bad_tree: /simpletree (main) +bad_tree: /usr/portage (main) FAIL: output does not match make[3]: *** [Makefile:1596: check-local] Error 1 make[3]: Leaving directory '/var/tmp/portage/app-portage/portage-utils-0.82/work/portage-utils-0.82/tests/qmanifest' make[2]: *** [Makefile:1477: check-am] Error 2 make[2]: Leaving directory '/var/tmp/portage/app-portage/portage-utils-0.82/work/portage-utils-0.82/tests/qmanifest' make[1]: *** [Makefile:1510: check-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/app-portage/portage-utils-0.82/work/portage-utils-0.82/tests' make: *** [Makefile:2106: check-recursive] Error 1 * ERROR: app-portage/portage-utils-0.82::gentoo failed (test phase): * Make check failed. See above for details. Reproducible: Always # emerge -pqv '=app-portage/portage-utils-0.82::gentoo' [ebuild U ] app-portage/portage-utils-0.82 [0.81] USE="openmp qmanifest qtegrity -libressl -nls -static"
Created attachment 597684 [details] build.log # emerge --info '=app-portage/portage-utils-0.82::gentoo' Portage 2.3.80 (python 3.6.9-final-0, default/linux/amd64/17.1/no-multilib/hardened, gcc-9.2.0, glibc-2.30-r3, 5.4.0 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.4.0-x86_64-Intel-R-_Core-TM-_i7-3720QM_CPU_@_2.60GHz-with-gentoo-2.6 KiB Mem: 16358752 total, 9406944 free KiB Swap: 17825788 total, 17825788 free Timestamp of repository gentoo: Thu, 28 Nov 2019 17:30:01 +0000 Head commit of repository gentoo: 2bb83a3237876597e597b7afcabd15e817ed717e sh bash 5.0_p11 ld GNU ld (Gentoo 2.33.1 p1) 2.33.1 app-shells/bash: 5.0_p11::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.30.1::gentoo dev-lang/python: 2.7.17::gentoo, 3.6.9::gentoo dev-util/cmake: 3.16.0::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.18::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.16.1-r2::gentoo sys-devel/binutils: 2.33.1::gentoo sys-devel/gcc: 9.2.0-r2::gentoo sys-devel/gcc-config: 2.1::gentoo sys-devel/libtool: 2.4.6-r5::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 5.3-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.30-r3::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-max-age: 24 sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes local location: /var/lib/portage-local/local masters: gentoo priority: 0 testing location: /var/lib/portage-local/testing masters: gentoo priority: 1 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -mtune=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /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 -mtune=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs cgroup collision-protect 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 sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu" LINGUAS="" 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" USE="X a52 acl acpi alsa amd64 avx bzip2 cairo caps cdda cddb cdparanoia crypt cups cxx dbus dri dts dvd fam ffmpeg fftw flac fontconfig gif gimp gmp gnutls gtk hardened iconv icu idn ipv6 jpeg lame lcms libnotify libtirpc lzma mad matroska mmap mmx mmxext mp3 mpeg ncurses networkmanager nptl ogg opengl openmp pam pcre pie png policykit ppds readline sasl sdl seccomp split-usr sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssp ssse3 startup-notification svg test theora threads tiff truetype udev udisks unicode upower vaapi vorbis wayland x264 xattr xcb xinerama xml xtpax xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 f16c mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 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="pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="i965 intel nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Hey, could you run ./q -ov from the build directory? I wonder where it found /usr/portage in your system. Thanks, Fabian
/var/tmp/portage/app-portage/portage-utils-0.82/work/portage-utils-0.82 # ./q -ov gentoo: [/etc/portage/repos.conf/gentoo.conf] # cat /etc/portage/repos.conf/gentoo.conf [DEFAULT] main-repo = gentoo [gentoo] location = /usr/portage sync-type = rsync sync-uri = rsync://rsync.gentoo.org/gentoo-portage
Ok, I'm confused, would you please try portage-utils-9999, and run ./q -ov from there? If that version still has this issue, I'll have to ask some more of your time and efforts to understand what's going on here.
Created attachment 597846 [details] build.log for portage-utils-9999 It also happens with portage-utils-9999 (commit 784f3743879ec97e08197d3b21ccec54ffce914d).
And just to make sure that nothing else broke, I tried portage-utils-0.81. The testsuite of that version still passes. So it seems to be a problem with newer versions and not a changed environment. make[3]: Entering directory '/var/tmp/portage/app-portage/portage-utils-0.81/work/portage-utils-0.81/tests/qmanifest' /var/tmp/portage/app-portage/portage-utils-0.81/work/portage-utils-0.81/tests/qmanifest/dotest PASS: q -o PASS: qmanifest PASS: qmanifest not_a_tree PASS: qmanifest notatree PASS: qmanifest -d not_a_tree PASS: qmanifest -o notatree gpg: can't connect to the agent: File name too long gpg: error getting the KEK: No agent running gpg: error reading '/var/tmp/portage/app-portage/portage-utils-0.81/work/portage-utils-0.81/tests/qmanifest/key.gpg': No agent running gpg: import from '/var/tmp/portage/app-portage/portage-utils-0.81/work/portage-utils-0.81/tests/qmanifest/key.gpg' failed: No agent running qmanifest: 6 passes / 0 fails
it's obviously new code, no discussion about that. your ./q -ov output shows no location for your main repo For wiw, can you run: DEBUG=1 ./q -ev thanks
# DEBUG=1 ./q -ev repos.conf.d scanner /usr/share/portage/config/repos.conf parse /usr/share/portage/config/repos.conf repos.conf.d scanner /etc/portage/repos.conf parse /etc/portage/repos.conf/gentoo.conf parse /etc/portage/repos.conf/layman.conf profile /usr/share/portage/config/make.globals profile /etc/portage/make.profile/../../../make.defaults profile /etc/portage/make.profile/../../../../../../arch/amd64/make.defaults profile /etc/portage/make.profile/../../../../../../releases/17.0/make.defaults profile /etc/portage/make.profile/../../make.defaults profile /etc/portage/make.profile/../make.defaults profile /etc/portage/make.profile/../../../../../../features/hardened/amd64/no-multilib/../make.defaults profile /etc/portage/make.profile/../../../../../../features/hardened/amd64/no-multilib/make.defaults profile /etc/portage/make.profile/make.defaults profile /etc/make.conf profile /etc/portage/make.conf ROOT = / ACCEPT_LICENSE = INSTALL_MASK = PKG_INSTALL_MASK = ARCH = amd64 CONFIG_PROTECT = /etc /usr/share/gnupg/qualified.txt CONFIG_PROTECT_MASK = /etc/env.d /etc/sandbox.d /etc/fonts/fonts.conf /etc/gentoo-release /etc/terminfo /etc/dconf /etc/ca-certificates.conf /etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/revdep-rebuild NOCOLOR = 0 FEATURES = assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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 sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr cgroup collision-protect ipc-sandbox network-sandbox parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-orphans userfetch userpriv usersandbox usersync EPREFIX = / EMERGE_LOG_DIR = /var/log PORTDIR = /usr/portage PORTAGE_BINHOST = PORTAGE_TMPDIR = /var/tmp PKGDIR = /var/cache/binpkgs Q_VDB = /var/db/pkg Q_EDB = /var/cache/edb ROOT="/" [built-in default] ACCEPT_LICENSE="" [built-in default] INSTALL_MASK="" [built-in default] PKG_INSTALL_MASK="" [built-in default] ARCH="amd64" [/etc/portage/make.profile/../../../../../../arch/amd64/make.defaults] CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" [/usr/share/portage/config/make.globals, CONFIG_PROTECT] CONFIG_PROTECT_MASK="/etc/env.d /etc/sandbox.d /etc/fonts/fonts.conf /etc/gentoo-release /etc/terminfo /etc/dconf /etc/ca-certificates.conf /etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/revdep-rebuild" [/usr/share/portage/config/make.globals, CONFIG_PROTECT_MASK] NOCOLOR=0 [built-in default] FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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 sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr cgroup collision-protect ipc-sandbox network-sandbox parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-orphans userfetch userpriv usersandbox usersync" [/usr/share/portage/config/make.globals, /usr/share/portage/config/make.globals, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf] EPREFIX="/" [built-in default] EMERGE_LOG_DIR="/var/log" [built-in default] PORTDIR="/usr/portage" [/etc/portage/make.conf] PORTAGE_BINHOST="" [built-in default] PORTAGE_TMPDIR="/var/tmp" [/usr/share/portage/config/make.globals] PKGDIR="/var/cache/binpkgs" [/usr/share/portage/config/make.globals] Q_VDB="/var/db/pkg" [built-in default] Q_EDB="/var/cache/edb" [built-in default]
does ./q -ov still report repos.conf/gentoo.conf as source for your portdir?
Yes: # DEBUG=1 ./q -ov repos.conf.d scanner /usr/share/portage/config/repos.conf parse /usr/share/portage/config/repos.conf repos.conf.d scanner /etc/portage/repos.conf parse /etc/portage/repos.conf/gentoo.conf parse /etc/portage/repos.conf/layman.conf profile /usr/share/portage/config/make.globals profile /etc/portage/make.profile/../../../make.defaults profile /etc/portage/make.profile/../../../../../../arch/amd64/make.defaults profile /etc/portage/make.profile/../../../../../../releases/17.0/make.defaults profile /etc/portage/make.profile/../../make.defaults profile /etc/portage/make.profile/../make.defaults profile /etc/portage/make.profile/../../../../../../features/hardened/amd64/no-multilib/../make.defaults profile /etc/portage/make.profile/../../../../../../features/hardened/amd64/no-multilib/make.defaults profile /etc/portage/make.profile/make.defaults profile /etc/make.conf profile /etc/portage/make.conf ROOT = / ACCEPT_LICENSE = INSTALL_MASK = PKG_INSTALL_MASK = ARCH = amd64 CONFIG_PROTECT = /etc /usr/share/gnupg/qualified.txt CONFIG_PROTECT_MASK = /etc/env.d /etc/sandbox.d /etc/fonts/fonts.conf /etc/gentoo-release /etc/terminfo /etc/dconf /etc/ca-certificates.conf /etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/revdep-rebuild NOCOLOR = 0 FEATURES = assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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 sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr cgroup collision-protect ipc-sandbox network-sandbox parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-orphans userfetch userpriv usersandbox usersync EPREFIX = / EMERGE_LOG_DIR = /var/log PORTDIR = /usr/portage PORTAGE_BINHOST = PORTAGE_TMPDIR = /var/tmp PKGDIR = /var/cache/binpkgs Q_VDB = /var/db/pkg Q_EDB = /var/cache/edb gentoo: [/etc/portage/repos.conf/gentoo.conf]
I think the problem is that you set PORTDIR from /etc/portage/make.conf. I will fix this, but could you test if uncommenting this setting makes it work?
I removed the setting from /etc/portage/make.conf, but the test still fails. make[3]: Entering directory '/var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest' /var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest/dotest --- /var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest/manifest00.good 2019-11-30 19:43:04.630014673 +0000 +++ manifest 2019-11-30 19:43:54.336269140 +0000 @@ -1,2 +1,3 @@ not_a_tree: /notatree -bad_tree: /simpletree (main) +bad_tree: /simpletree +gentoo: /usr/portage (main) FAIL: output does not match # DEBUG=1 ./q -ev repos.conf.d scanner /usr/share/portage/config/repos.conf parse /usr/share/portage/config/repos.conf repos.conf.d scanner /etc/portage/repos.conf parse /etc/portage/repos.conf/gentoo.conf parse /etc/portage/repos.conf/layman.conf profile /usr/share/portage/config/make.globals profile /etc/portage/make.profile/../../../make.defaults profile /etc/portage/make.profile/../../../../../../arch/amd64/make.defaults profile /etc/portage/make.profile/../../../../../../releases/17.0/make.defaults profile /etc/portage/make.profile/../../make.defaults profile /etc/portage/make.profile/../make.defaults profile /etc/portage/make.profile/../../../../../../features/hardened/amd64/no-multilib/../make.defaults profile /etc/portage/make.profile/../../../../../../features/hardened/amd64/no-multilib/make.defaults profile /etc/portage/make.profile/make.defaults profile /etc/make.conf profile /etc/portage/make.conf ROOT = / ACCEPT_LICENSE = INSTALL_MASK = PKG_INSTALL_MASK = ARCH = amd64 CONFIG_PROTECT = /etc /usr/share/gnupg/qualified.txt CONFIG_PROTECT_MASK = /etc/env.d /etc/sandbox.d /etc/fonts/fonts.conf /etc/gentoo-release /etc/terminfo /etc/dconf /etc/ca-certificates.conf /etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/revdep-rebuild NOCOLOR = 0 FEATURES = assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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 sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr cgroup collision-protect ipc-sandbox network-sandbox parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-orphans userfetch userpriv usersandbox usersync EPREFIX = / EMERGE_LOG_DIR = /var/log PORTDIR = /usr/portage PORTAGE_BINHOST = PORTAGE_TMPDIR = /var/tmp PKGDIR = /var/cache/binpkgs Q_VDB = /var/db/pkg Q_EDB = /var/cache/edb ROOT="/" [built-in default] ACCEPT_LICENSE="" [built-in default] INSTALL_MASK="" [built-in default] PKG_INSTALL_MASK="" [built-in default] ARCH="amd64" [/etc/portage/make.profile/../../../../../../arch/amd64/make.defaults] CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" [/usr/share/portage/config/make.globals, CONFIG_PROTECT] CONFIG_PROTECT_MASK="/etc/env.d /etc/sandbox.d /etc/fonts/fonts.conf /etc/gentoo-release /etc/terminfo /etc/dconf /etc/ca-certificates.conf /etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/revdep-rebuild" [/usr/share/portage/config/make.globals, CONFIG_PROTECT_MASK] NOCOLOR=0 [built-in default] FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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 sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr cgroup collision-protect ipc-sandbox network-sandbox parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-orphans userfetch userpriv usersandbox usersync" [/usr/share/portage/config/make.globals, /usr/share/portage/config/make.globals, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf, /etc/portage/make.conf] EPREFIX="/" [built-in default] EMERGE_LOG_DIR="/var/log" [built-in default] PORTDIR="/usr/portage" [/etc/portage/repos.conf/gentoo.conf] PORTAGE_BINHOST="" [built-in default] PORTAGE_TMPDIR="/var/tmp" [/usr/share/portage/config/make.globals] PKGDIR="/var/cache/binpkgs" [/usr/share/portage/config/make.globals] Q_VDB="/var/db/pkg" [built-in default] Q_EDB="/var/cache/edb" [built-in default] # DEBUG=1 ./q -ov repos.conf.d scanner /usr/share/portage/config/repos.conf parse /usr/share/portage/config/repos.conf repos.conf.d scanner /etc/portage/repos.conf parse /etc/portage/repos.conf/gentoo.conf parse /etc/portage/repos.conf/layman.conf profile /usr/share/portage/config/make.globals profile /etc/portage/make.profile/../../../make.defaults profile /etc/portage/make.profile/../../../../../../arch/amd64/make.defaults profile /etc/portage/make.profile/../../../../../../releases/17.0/make.defaults profile /etc/portage/make.profile/../../make.defaults profile /etc/portage/make.profile/../make.defaults profile /etc/portage/make.profile/../../../../../../features/hardened/amd64/no-multilib/../make.defaults profile /etc/portage/make.profile/../../../../../../features/hardened/amd64/no-multilib/make.defaults profile /etc/portage/make.profile/make.defaults profile /etc/make.conf profile /etc/portage/make.conf ROOT = / ACCEPT_LICENSE = INSTALL_MASK = PKG_INSTALL_MASK = ARCH = amd64 CONFIG_PROTECT = /etc /usr/share/gnupg/qualified.txt CONFIG_PROTECT_MASK = /etc/env.d /etc/sandbox.d /etc/fonts/fonts.conf /etc/gentoo-release /etc/terminfo /etc/dconf /etc/ca-certificates.conf /etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/revdep-rebuild NOCOLOR = 0 FEATURES = assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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 sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr cgroup collision-protect ipc-sandbox network-sandbox parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-orphans userfetch userpriv usersandbox usersync EPREFIX = / EMERGE_LOG_DIR = /var/log PORTDIR = /usr/portage PORTAGE_BINHOST = PORTAGE_TMPDIR = /var/tmp PKGDIR = /var/cache/binpkgs Q_VDB = /var/db/pkg Q_EDB = /var/cache/edb gentoo: /usr/portage (main) [/etc/portage/repos.conf/gentoo.conf]
yes, thank you, that helps me
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=6e4fe103d8372c951f678e9972e546124e5eb41b commit 6e4fe103d8372c951f678e9972e546124e5eb41b Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2019-12-08 11:52:31 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2019-12-08 11:52:31 +0000 main: try to make repo handling safer Parse PORTDIR and repos separately, then afterwards add PORTDIR as repo when defined. Bug: https://bugs.gentoo.org/701402 Signed-off-by: Fabian Groffen <grobian@gentoo.org> main.c | 112 +++++++++++++++++++++++++++++++----------------------------- q.c | 4 ++- qmanifest.c | 4 +++ 3 files changed, 64 insertions(+), 56 deletions(-)
I hope my last attempt finally solves this issue for you.
Created attachment 598910 [details] build.log commit 6e4fe103d8372c951f678e9972e546124e5eb41b Unfortunately not: * To override fetched repository properties, use: * EGIT_OVERRIDE_REPO_PROJ_PORTAGE_UTILS * EGIT_OVERRIDE_BRANCH_PROJ_PORTAGE_UTILS * EGIT_OVERRIDE_COMMIT_PROJ_PORTAGE_UTILS * EGIT_OVERRIDE_COMMIT_DATE_PROJ_PORTAGE_UTILS * * Fetching https://anongit.gentoo.org/git/proj/portage-utils.git ... git fetch https://anongit.gentoo.org/git/proj/portage-utils.git +HEAD:refs/git-r3/HEAD git symbolic-ref refs/git-r3/app-portage/portage-utils/0/__main__ refs/git-r3/HEAD * Checking out https://anongit.gentoo.org/git/proj/portage-utils.git to /var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999 ... git checkout --quiet refs/git-r3/HEAD GIT update --> repository: https://anongit.gentoo.org/git/proj/portage-utils.git at the commit: 6e4fe103d8372c951f678e9972e546124e5eb41b >>> Source unpacked in /var/tmp/portage/app-portage/portage-utils-9999/work [...] Making check in profile make[2]: Entering directory '/var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/profile' make check-local make[3]: Entering directory '/var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/profile' /var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/profile/dotest PASS: (inv) ROOT = / PASS: (inv) ARCH = PASS: (1) ARCH = x86 PASS: (1) INSTALL_MASK = imask x b PASS: (1) CONFIG_PROTECT = PASS: (1) FEATURES = feat PASS: (1) CONFIG_PROTECT_MASK = asdf PASS: (1) ACCEPT_LICENSE = lic PASS: (1) PORTAGE_BINHOST = http://someurl/ PASS: (1) NOCOLOR = 1 PASS: (1) PKGDIR = profile: 11 passes / 0 fails make[3]: Leaving directory '/var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/profile' make[2]: Leaving directory '/var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/profile' Making check in qmanifest make[2]: Entering directory '/var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest' make check-local make[3]: Entering directory '/var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest' /var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest/dotest --- /var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest/manifest00.good 2019-12-08 17:32:46.322287804 +0000 +++ manifest 2019-12-08 17:33:28.011806424 +0000 @@ -1,2 +1,3 @@ not_a_tree: /notatree bad_tree: /simpletree (main) +gentoo: /usr/portage FAIL: output does not match make[3]: *** [Makefile:1596: check-local] Error 1 make[3]: Leaving directory '/var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest' make[2]: *** [Makefile:1477: check-am] Error 2 make[2]: Leaving directory '/var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest' make[1]: *** [Makefile:1510: check-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests' make: *** [Makefile:2106: check-recursive] Error 1
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=6886e365b76c8555260d79a9d4cc3b7f1d658cb0 commit 6886e365b76c8555260d79a9d4cc3b7f1d658cb0 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2019-12-15 09:39:27 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2019-12-15 09:39:27 +0000 tests/qmanifest: add some debugging for #701402 Bug: https://bugs.gentoo.org/701402 Signed-off-by: Fabian Groffen <grobian@gentoo.org> tests/qmanifest/dotest | 1 + 1 file changed, 1 insertion(+)
ok, this is confusing me a lot ... :/ With the above commit, what is the output? You can run the following afterwards from the src tree in workdir: make -C tests/qmanifest check That should output a blurb which should explain why you see an extra repository (PORTDIR being /usr/portage). Sorry it takes so long.
Ok if the test runs within the emerge/ebuild environment it fails: make[2]: Entering directory '/var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest' make check-local make[3]: Entering directory '/var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest' /var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest/dotest repos.conf.d scanner /var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest/root/usr/share/portage/config/repos.conf repos.conf.d scanner /var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest/root/etc/portage/repos.conf parse /var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest/root/etc/portage/repos.conf/qtest.conf profile /var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest/root/usr/share/portage/config/make.globals profile /var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest/root/etc/make.conf profile /var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest/root/etc/portage/make.conf ROOT = /var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest/root/ ACCEPT_LICENSE = GPL-2 INSTALL_MASK = PKG_INSTALL_MASK = ARCH = amd64 CONFIG_PROTECT = /etc CONFIG_PROTECT_MASK = NOCOLOR = 1 FEATURES = assume-digests binpkg-docompress binpkg-dostrip binpkg-logs cgroup collision-protect 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 sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr EPREFIX = EMERGE_LOG_DIR = /var/log PORTDIR = /simpletree PORTAGE_BINHOST = PORTAGE_TMPDIR = /var/tmp PKGDIR = /var/cache/binpkgs Q_VDB = /var/db/pkg Q_EDB = /var/cache/edb ROOT="/var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest/root/" [ROOT] ACCEPT_LICENSE="GPL-2" [ACCEPT_LICENSE] INSTALL_MASK="" [built-in default] PKG_INSTALL_MASK="" [built-in default] ARCH="amd64" [ARCH] CONFIG_PROTECT="/etc" [built-in default] CONFIG_PROTECT_MASK="" [built-in default] NOCOLOR=1 [NOCOLOR] FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs cgroup collision-protect 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 sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" [FEATURES] EPREFIX="" [EPREFIX] EMERGE_LOG_DIR="/var/log" [built-in default] PORTDIR="/simpletree" [/var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest/root/etc/portage/repos.conf/qtest.conf] PORTAGE_BINHOST="" [built-in default] PORTAGE_TMPDIR="/var/tmp" [PORTAGE_TMPDIR] PKGDIR="/var/cache/binpkgs" [PKGDIR] Q_VDB="/var/db/pkg" [built-in default] Q_EDB="/var/cache/edb" [built-in default] --- /var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest/manifest00.good 2019-12-16 16:19:44.407396730 +0000 +++ manifest 2019-12-16 16:20:34.776780852 +0000 @@ -1,2 +1,3 @@ not_a_tree: /notatree bad_tree: /simpletree (main) +gentoo: /usr/portage FAIL: output does not match make[3]: *** [Makefile:1596: check-local] Error 1 make[3]: Leaving directory '/var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest' make[2]: *** [Makefile:1477: check-am] Error 2 make[2]: Leaving directory '/var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest' make[1]: *** [Makefile:1510: check-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests' make: *** [Makefile:2106: check-recursive] Error 1
But if it is run independently, it passes: # make -C tests/qmanifest check make: Entering directory '/var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest' make check-local make[1]: Entering directory '/var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest' /var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest/dotest repos.conf.d scanner /var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest/root/usr/share/portage/config/repos.conf repos.conf.d scanner /var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest/root/etc/portage/repos.conf parse /var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest/root/etc/portage/repos.conf/qtest.conf profile /var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest/root/usr/share/portage/config/make.globals profile /var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest/root/etc/make.conf profile /var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest/root/etc/portage/make.conf ROOT = /var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest/root/ ACCEPT_LICENSE = INSTALL_MASK = PKG_INSTALL_MASK = ARCH = CONFIG_PROTECT = /usr/share/gnupg/qualified.txt CONFIG_PROTECT_MASK = /etc/sandbox.d /etc/fonts/fonts.conf /etc/gentoo-release /etc/terminfo /etc/dconf /etc/ca-certificates.conf /etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/revdep-rebuild NOCOLOR = 0 FEATURES = EPREFIX = / EMERGE_LOG_DIR = /var/log PORTDIR = /simpletree PORTAGE_BINHOST = PORTAGE_TMPDIR = /var/tmp/portage/ PKGDIR = /var/cache/binpkgs/ Q_VDB = /var/db/pkg Q_EDB = /var/cache/edb ROOT="/var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest/root/" [ROOT] ACCEPT_LICENSE="" [built-in default] INSTALL_MASK="" [built-in default] PKG_INSTALL_MASK="" [built-in default] ARCH="" [built-in default] CONFIG_PROTECT="/usr/share/gnupg/qualified.txt" [CONFIG_PROTECT] CONFIG_PROTECT_MASK="/etc/sandbox.d /etc/fonts/fonts.conf /etc/gentoo-release /etc/terminfo /etc/dconf /etc/ca-certificates.conf /etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/revdep-rebuild" [CONFIG_PROTECT_MASK] NOCOLOR=0 [built-in default] FEATURES="" [built-in default] EPREFIX="/" [built-in default] EMERGE_LOG_DIR="/var/log" [built-in default] PORTDIR="/simpletree" [/var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest/root/etc/portage/repos.conf/qtest.conf] PORTAGE_BINHOST="" [built-in default] PORTAGE_TMPDIR="/var/tmp/portage/" [built-in default] PKGDIR="/var/cache/binpkgs/" [built-in default] Q_VDB="/var/db/pkg" [built-in default] Q_EDB="/var/cache/edb" [built-in default] PASS: q -o PASS: qmanifest PASS: qmanifest not_a_tree PASS: qmanifest notatree PASS: qmanifest -d not_a_tree PASS: qmanifest -o notatree gpg: can't connect to the agent: File name too long gpg: error getting the KEK: No agent running gpg: error reading '/var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest/key.gpg': No agent running gpg: import from '/var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest/key.gpg' failed: No agent running qmanifest: 6 passes / 0 fails make[1]: Leaving directory '/var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest' make: Leaving directory '/var/tmp/portage/app-portage/portage-utils-9999/work/portage-utils-9999/tests/qmanifest'
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ccbfbff3ffb51a9e7783458c9dad3e6d2cb49e29 commit ccbfbff3ffb51a9e7783458c9dad3e6d2cb49e29 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2019-12-28 09:42:05 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2019-12-28 09:42:23 +0000 app-portage/portage-utils-0.83: version bump with bugfixes Drop overshadowed testing versions. Closes: https://bugs.gentoo.org/701968 Closes: https://bugs.gentoo.org/701470 Bug: https://bugs.gentoo.org/701402 Closes: https://bugs.gentoo.org/701392 Closes: https://bugs.gentoo.org/701386 Closes: https://bugs.gentoo.org/700850 Closes: https://bugs.gentoo.org/699558 Package-Manager: Portage-2.3.79, Repoman-2.3.16 Signed-off-by: Fabian Groffen <grobian@gentoo.org> app-portage/portage-utils/Manifest | 3 +- .../portage-utils/portage-utils-0.74-r1.ebuild | 38 ---------- .../portage-utils/portage-utils-0.81.ebuild | 87 ---------------------- ...utils-0.82.ebuild => portage-utils-0.83.ebuild} | 0 4 files changed, 1 insertion(+), 127 deletions(-)
Can we try to get debugging of this thing going again with 0.84?
I finally managed to reproduce this problem.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=87aee5be6981ecf3dc30614f273488ab3a87bde9 commit 87aee5be6981ecf3dc30614f273488ab3a87bde9 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2020-01-18 13:05:29 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2020-01-18 13:05:29 +0000 tests/init.sh: clear PORTDIR from env Portage seems to inject PORTDIR (with a weird value) in the environment. This shows up during make check on some systems. (Bug #701402.) Always remove it from the environment to avoid interference. Bug: https://bugs.gentoo.org/701402 Signed-off-by: Fabian Groffen <grobian@gentoo.org> tests/init.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Sorry that it took so long. Fortunately, the results are as expected: the test still fails with portage-utils-0.84-r1 but succeeds with portage-utils-9999.
thanks for confirming!
*** Bug 707114 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22776ca58de66b5ac2c50d415b217913b93845f3 commit 22776ca58de66b5ac2c50d415b217913b93845f3 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2020-01-31 13:32:25 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2020-01-31 13:33:43 +0000 app-portage/portage-utils-0.85: version bump Closes: https://bugs.gentoo.org/701402 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Fabian Groffen <grobian@gentoo.org> app-portage/portage-utils/Manifest | 2 +- .../{portage-utils-0.84-r1.ebuild => portage-utils-0.85.ebuild} | 7 ------- app-portage/portage-utils/portage-utils-9999.ebuild | 4 ++-- 3 files changed, 3 insertions(+), 10 deletions(-)