Trying to emerge a package with multiple virtual entries (i.e. linux-headers and linux26-headers) bails with an invalid package name kruuslt root # emerge linux-headers -dvp These are the packages that I would merge, in order: Calculating dependencies Parent: None Depstring: sys-kernel/linux-headers Candidates: ['sys-kernel/linux-headers'] ebuild: sys-kernel/linux-headers-2.4.26 binpkg: None \ Parent: ebuild / sys-kernel/linux-headers-2.4.26 merge Depstring: !virtual/os-headers !bootstrap? ( sys-devel/patch ) !virtual/os-headers Candidates: ['!sys-kernel/linux-headers', '!sys-kernel/linux26-headers'] | Invalid package name: sys-kernel/linux26-headers I've tried messing with /etc/portage/virtuals as well, but same problem.
It even bails for me when doing a plain: emerge -pvuD world. Output is: phi bin # emerge -pvuD world These are the packages that I would merge, in order: Calculating world dependencies | Invalid package name: x11-base/xfree I will attach a traceback (jstubbs told me how to get that one by removing the try block that handles above error.)
Created attachment 35499 [details] Log of emerge -pvudD world + Traceback; portage-2.0.51_pre13
emerge info please.
I cams across it while trying to do an emerge -Duvp world. It only seems to happen with the D flag for world/system and direct merges of packes with (multiple?) virtual entries (It happens when I try to install xorg-x11 as well) Emerge info attached. How do you remove the blocker?
Created attachment 35572 [details] emerge info
Not sure if its related, but I also get an error for emerge gcc -- kruuslt root # emerge gcc -dp These are the packages that I would merge, in order: Calculating dependencies Parent: None Depstring: sys-devel/gcc Candidates: ['sys-devel/gcc'] ebuild: sys-devel/gcc-3.4.1-r1 binpkg: None \ Parent: ebuild / sys-devel/gcc-3.4.1-r1 merge Depstring: virtual/libc !uclibc? ( >=sys-libs/glibc-2.3.3_pre20040420-r1 ) !uclibc? ( hardened? ( >=sys-libs/glibc-2.3.3_pre20040529 ) ) ( !sys-devel/hardened-gcc ) >=sys-devel/binutils-2.14.90.0.8-r1 amd64? ( >=sys-devel/binutils-2.15.90.0.1.1-r1 ) >=sys-devel/bison-1.875 >=sys-devel/gcc-config-1.3.1 amd64? ( multilib? ( >=app-emulation/emul-linux-x86-baselibs-1.0 ) ) !build? ( gcj? ( gtk2? ( >=x11-libs/gtk+-2.2 ) ) ) !build? ( >=sys-libs/ncurses-5.2-r2 nls? ( sys-devel/gettext ) ) !bootstrap? ( sys-devel/patch ) !bootstrap? ( sys-devel/libtool ) sys-devel/gnuconfig virtual/libc !uclibc? ( >=sys-libs/glibc-2.3.3_pre20040420-r1 ) !uclibc? ( hardened? ( >=sys-libs/glibc-2.3.3_pre20040529 ) ) >=sys-devel/gcc-config-1.3.1 >=sys-libs/zlib-1.1.4 >=sys-apps/texinfo-4.2-r4 !build? ( >=sys-libs/ncurses-5.2-r2 ) Candidates: ['!sys-devel/hardened-gcc'] | Invalid package name: sys-devel/hardened-gcc No package named hardened-gcc in my portage tree, no hardened use flags either. No problem before the portage update.
Yep, the problem is with all ebuilds that have blockers in their *DEPEND strings. I've encountered it too on my laptop, but not on my main box.
Well, i tried the portage version in CVS, in the gentoo-src repo. These are the results: --- phi portage # emerge -pvuD world These are the packages that I would merge, in order: Calculating world dependencies / Invalid package name: x11-base/xfree phi portage # emerge -pvu world These are the packages that I would merge, in order: Calculating world dependencies \ Invalid package name: gnome-base/gnome-core phi portage # emerge -pv world These are the packages that I would merge, in order: Calculating world dependencies | Invalid package name: app-office/openoffice --- I linked gentoo-src/portage/{bin,pym} to /usr/lib/portage/{bin,pym} and added live "livecvsportage" to FEATURES. So is there any chance I can use 2.0.51 emerge ? I need .51 repoman cause .50 repoman is borked, and switching between .50 and .51 for anything i do is ugly. Here is my emerge info w/ livecvsportage: phi ~ # emerge info Portage 20040626 (default-amd64-2004.2, gcc-3.3.4, glibc-2.3.4.20040619-r0, 2.6.7-gentoo-r11 x86_64 4) ================================================================= System uname: 2.6.7-gentoo-r11 x86_64 4 Gentoo Base System version 1.5.1 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.3 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.7-r4 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-march=k8 -O2 -pipe -ftracer" CHOST="x86_64-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O2 -pipe -ftracer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache cvs livecvsportage" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://sigma/gentoo-portage" USE="X aalib alsa amd64 apm arts artswrappersuid avi berkdb cdr crypt cups directfb dvb dvd dvdr encode esd f77 foomaticdb freetype gdbm ggi gif gpm gtk gtk2 guile imlib ipv6 java jpeg kde ldap libg++ libwww mad mikmod motif mozilla moznocompose moznoirc mpeg multilib mysql nas ncurses nls nogcj oggvorbis opengl oss pam pdflib perl plotutils png python qt qt-mt quicktime readline sdl slang spell ssl tcltk tcpd tetex truetype type1 v4l wmf wxwindows xml2 xmms xosd xv zlib" Can I provide any further output that helps to find the problem ?
Created attachment 36908 [details, diff] Patch for additional debug output it portage.py:match_from_list I used this patch to get some additional infos about what goes wrong. Only adding some writemsg's at different places.
Created attachment 36909 [details] Output produced by above patch Ok, attached is what above patch gives me for "emerge -pvd openoffice-bin". If you look at the last 3 cycles of match_from_list, you'll see that it gets called for mydep="!app-office/openoffice" once, then for the emul-xlibs and at last for mydep=">=dev-python/pygtk-2.0.0", however, the candidate list for this last step is borked. It now sais "app-office/openoffice" ! Hope this helps...
seems to be gone away w/ version 2.0.51_pre17
Yep, fixed here too with pre17.
Dammit, now i get this: phi etc # emerge -pv xfree -- These are the packages that I would merge, in order: Calculating dependencies | Invalid package name: x11-base/xorg-x11 !!! Problem in x11-base/xfree dependencies. !!! 73 -- instead a BLOCKER... ( i have xorg-x11 installed here ). Seems not to be fully fixed. :-/
Hmm, make sure you have revision 1.462 of portage.py, I somehow had a stale version that wasn't replaced on the first update for an unknown reason.
I get even stranger errors: root@kruuslt ~ # emerge world -vp These are the packages that I would merge, in order: Calculating world dependencies - Invalid package name: moznoxft root@kruuslt ~ # Have 1.462 of portage.py. and still the same: root@kruuslt ~ # emerge world -Duvp These are the packages that I would merge, in order: Calculating world dependencies | Invalid package name: sys-kernel/linux26-headers root@kruuslt ~ #
Seperate bug to 59574. Fixed it by moving the code that checks for blocks in depgraph.create() to before pkgsettings.setcpv(). I find it interesting that an error wasn't occuring on every blocker...
I figured out the moznoxft .... dunno if it's right or not: see here http://bugs.gentoo.org/show_bug.cgi?id=60285 At least the emerge world -vp (or -uvp) works now. The D flag still mucks things up. --snip -- Parent: ebuild / sys-kernel/linux-headers-2.4.26 nomerge Depstring: !virtual/os-headers !bootstrap? ( sys-devel/patch ) !virtual/os-headers Candidates: ['!sys-kernel/linux-headers', 'sys-devel/patch', '!sys-kernel/linux26-headers'] ebuild: sys-devel/patch-2.5.9 binpkg: None / Invalid package name: sys-kernel/linux26-headers
Created attachment 37391 [details, diff] The Fix The patch is against portage-2.0.51_pre17 but should apply to portage-2.0.50-r9 as well, albeit with a bit of fuzzyness.
Works here, thanks.
Bug has been fixed and released in stable portages on or before 2.0.51-r2