Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57212 - Dependencies and invalid package names with portage-2.51_pre13
Summary: Dependencies and invalid package names with portage-2.51_pre13
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All All
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-07-15 12:04 UTC by Rob Kruus
Modified: 2004-10-22 08:48 UTC (History)
2 users (show)

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


Attachments
Log of emerge -pvudD world + Traceback; portage-2.0.51_pre13 (emerge.error,31.39 KB, text/plain)
2004-07-15 12:21 UTC, Danny van Dyk (RETIRED)
Details
emerge info (emerge.info,1.66 KB, text/plain)
2004-07-16 07:13 UTC, Rob Kruus
Details
Patch for additional debug output it portage.py:match_from_list (portage-mess.patch,1.81 KB, patch)
2004-08-06 13:01 UTC, Danny van Dyk (RETIRED)
Details | Diff
Output produced by above patch (portage-mess.txt,17.40 KB, text/plain)
2004-08-06 13:10 UTC, Danny van Dyk (RETIRED)
Details
The Fix (fix.patch,1.19 KB, patch)
2004-08-13 17:59 UTC, Jason Stubbs (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Kruus 2004-07-15 12:04:07 UTC
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.
Comment 1 Danny van Dyk (RETIRED) gentoo-dev 2004-07-15 12:15:43 UTC
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.)
Comment 2 Danny van Dyk (RETIRED) gentoo-dev 2004-07-15 12:21:36 UTC
Created attachment 35499 [details]
Log of emerge -pvudD world + Traceback; portage-2.0.51_pre13
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2004-07-15 14:50:33 UTC
emerge info please.
Comment 4 Rob Kruus 2004-07-16 07:12:47 UTC
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?
Comment 5 Rob Kruus 2004-07-16 07:13:36 UTC
Created attachment 35572 [details]
emerge info
Comment 6 Rob Kruus 2004-07-16 07:50:21 UTC
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.
Comment 7 Marius Mauch (RETIRED) gentoo-dev 2004-07-16 08:37:21 UTC
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.
Comment 8 Danny van Dyk (RETIRED) gentoo-dev 2004-08-06 11:53:16 UTC
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 ?
Comment 9 Danny van Dyk (RETIRED) gentoo-dev 2004-08-06 13:01:48 UTC
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.
Comment 10 Danny van Dyk (RETIRED) gentoo-dev 2004-08-06 13:10:01 UTC
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...
Comment 11 Danny van Dyk (RETIRED) gentoo-dev 2004-08-12 11:55:13 UTC
seems to be gone away w/ version 2.0.51_pre17
Comment 12 Marius Mauch (RETIRED) gentoo-dev 2004-08-12 11:57:24 UTC
Yep, fixed here too with pre17.
Comment 13 Danny van Dyk (RETIRED) gentoo-dev 2004-08-12 12:12:31 UTC
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. :-/
Comment 14 Marius Mauch (RETIRED) gentoo-dev 2004-08-12 12:47:06 UTC
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.
Comment 15 Rob Kruus 2004-08-12 13:18:20 UTC
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 ~ # 

Comment 16 Jason Stubbs (RETIRED) gentoo-dev 2004-08-13 08:02:35 UTC
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...
Comment 17 Rob Kruus 2004-08-13 17:41:09 UTC
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


Comment 18 Jason Stubbs (RETIRED) gentoo-dev 2004-08-13 17:59:27 UTC
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.
Comment 19 Rob Kruus 2004-08-16 06:41:04 UTC
Works here, thanks.
Comment 20 Nicholas Jones (RETIRED) gentoo-dev 2004-10-22 08:48:12 UTC
Bug has been fixed and released in stable portages on or before 2.0.51-r2