Quick intro: nelchael@nelchael ~$ emerge -pv aim-transport These are the packages that would be merged, in order: Calculating dependencies... done! Traceback (most recent call last): File "/usr/bin/emerge", line 4280, in ? retval = emerge_main() File "/usr/bin/emerge", line 4275, in emerge_main myopts, myaction, myfiles, spinner) File "/usr/bin/emerge", line 3738, in action_build mydepgraph.display( File "/usr/bin/emerge", line 1627, in display pkgsettings.setcpv(pkg_key, mydb=portdb) File "/usr/lib/portage/pym/portage.py", line 1517, in setcpv pkginternaluse = " ".join([x[1:] \ File "/usr/lib/portage/pym/portage.py", line 4894, in aux_get raise KeyError(mycpv) KeyError: 'net-im/aim-transport' nelchael@nelchael ~$ net-im/aim-transport contains: DEPEND="=net-im/jabberd-1.4*" but latest net-im/jabberd-1.4.4-r3: DEPEND=">=net-im/jabber-base-0.01 >=dev-libs/pth-1.4.0 dev-libs/expat mysql? ( dev-db/mysql ) postgres? ( dev-db/postgresql ) ssl? ( >=dev-libs/openssl-0.9.6i ) !net-im/aim-transport !=net-im/jabberd-2*" *** Note the !net-im/aim-transport net-im/aim-transport is to be removed, thus new jabberd is blocked by it (I know - aim-transport should be masked - but that's separate bug). Same situation is with ghostscript-*: nelchael@nelchael ~$ emerge -pv ghostscript-esp These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] app-text/ghostscript-esp-8.15.3 USE="X cups xml -cjk -emacs -gtk -threads" 0 kB Total size of downloads: 0 kB nelchael@nelchael ~$ emerge -pv ghostscript-gpl These are the packages that would be merged, in order: Calculating dependencies... done! Traceback (most recent call last): File "/usr/bin/emerge", line 4280, in ? retval = emerge_main() File "/usr/bin/emerge", line 4275, in emerge_main myopts, myaction, myfiles, spinner) File "/usr/bin/emerge", line 3738, in action_build mydepgraph.display( File "/usr/bin/emerge", line 1627, in display pkgsettings.setcpv(pkg_key, mydb=portdb) File "/usr/lib/portage/pym/portage.py", line 1517, in setcpv pkginternaluse = " ".join([x[1:] \ File "/usr/lib/portage/pym/portage.py", line 4894, in aux_get raise KeyError(mycpv) KeyError: 'app-text/ghostscript-esp' nelchael@nelchael ~$ cat /usr/portage/app-text/ghostscript-gpl/ghostscript-gpl-8.54.ebuild | grep -- -esp | head -n 1 !app-text/ghostscript-esp nelchael@nelchael ~$
Created attachment 99655 [details, diff] fix the KeyError that's triggered by blockers This is fixed in svn r4683.
*** Bug 151335 has been marked as a duplicate of this bug. ***
*** Bug 151336 has been marked as a duplicate of this bug. ***
This has been released in 2.1.2_pre3-r1.
root@host ~ # emerge -Dupv --tree --newuse world These are the packages that would be merged, in reverse order: Calculating world dependencies | !!! Ebuilds for the following packages are either all !!! masked or don't exist: dev-util/confcache games-fps/cube games-fps/warsow ... done! Traceback (most recent call last): File "/usr/bin/emerge", line 4284, in ? retval = emerge_main() File "/usr/bin/emerge", line 4279, in emerge_main myopts, myaction, myfiles, spinner) File "/usr/bin/emerge", line 3742, in action_build mydepgraph.display( File "/usr/bin/emerge", line 1644, in display pkgsettings.setcpv(pkg_key, mydb=portdb) File "/usr/lib/portage/pym/portage.py", line 1517, in setcpv pkginternaluse = " ".join([x[1:] \ File "/usr/lib/portage/pym/portage.py", line 4894, in aux_get raise KeyError(mycpv) KeyError: 'media-gfx/imgseek-0.8.6' Portage 2.1.2_pre3-r1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.3.6-r3, 2.6.17-gentoo-r4 i686) ================================================================= System uname: 2.6.17-gentoo-r4 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.12.5 Last Sync: Sat, 14 Oct 2006 15:50:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: 0.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=athlon -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-O3 -march=athlon -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distcc distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict" GENTOO_MIRRORS="ftp://ftp.gentoo.mesh-solutions.com/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="de_DE.UTF-8" LC_ALL="de_DE.UTF-8" LINGUAS="de en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.local/gentoo-portage" USE="x86 3dnow X a52x aac acl alsa apache2 apm audiofile bash-completion berkdb bitmap-fonts bonobo bzip2 bzlib cairo cdr cli crypt cups curl curlwrappers dbus dlloader dri eds elibc_glibc emboss encode exif expat fam foomaticdb fortran ftp gdbm gif glut gnome gpm gstreamer gtk gtk2 hal idn imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog java jbig jpeg jpeg2k kernel_linux keyring lcms ldap libg++ libwww linguas_de linguas_en mad mikmod mmx mmxext mng motif mozilla mozsvg mp3 mpeg ncurses nls nptl nsplugin ogg openal opengl oss pam pcre perl png pppd python qt3 qt4 quicktime readline reflection sdl seamonkey session slang slp sndfile spell spl ssl svg tcpd tiff truetype truetype-fonts type1-fonts udev unicode userland_GNU userlocales video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vga vorbis wmf xml xmms xorg xprint xv zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
root@host ~ # emerge -Dupv --tree --newuse imgseek These are the packages that would be merged, in reverse order: Calculating dependencies... done! [nomerge ] virtual/ghostscript-0 [nomerge ] app-text/ghostscript-esp-8.15.1_p20060430 USE="X cups gtk xml -cjk -emacs -threads" [nomerge ] x11-libs/gtk+-2.10.6 USE="X jpeg tiff -debug -doc -xinerama" [ebuild UD] dev-libs/atk-1.12.1 [1.12.3] USE="-debug -doc" 626 kB [nomerge ] dev-python/sip-4.2.1 USE="-debug -doc" [nomerge ] x11-libs/qt-4.1.4 USE="cups gif jpeg mng opengl png zlib -accessibility -debug -doc -examples -firebird -mysql -nas -nis -odbc -postgres -sqlite -xinerama" [nomerge ] x11-drivers/nvidia-legacy-drivers-1.0.7184 USE="dlloader" [nomerge ] sys-apps/module-init-tools-3.2.2-r1 USE="-no-old-linux" [nomerge ] sys-apps/baselayout-1.12.5-r2 USE="unicode -bootstrap -build -static" [ebuild R ] sys-apps/sysvinit-2.86-r5 USE="(-ibm) (-selinux) -static (-bootstrap%) (-build%)" 0 kB [nomerge ] x11-base/xorg-server-1.1.1-r1 USE="dri ipv6 nptl sdl xorg xprint -3dfx -aiglx -debug -dmx -kdrive -minimal" INPUT_DEVICES="evdev keyboard mouse -acecad -aiptek -calcomp -citron -digitaledge -dmc -dynapro -elo2300 -elographics -fpit -hyperpen -jamstudio -joystick -magellan -microtouch -mutouch -palmax -penmount -spaceorb -summa -synaptics -tek4957 -ur98 -vmmouse -void -wacom" VIDEO_CARDS="fbdev nv nvidia vga -apm -ark -chips -cirrus -cyrix -dummy -epson -fglrx -glint -i128 -i740 -i810 (-impact) -imstt -mach64 -mga -neomagic (-newport) -nsc -r128 -radeon -rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -v4l -vesa -via -vmware -voodoo" [nomerge ] x11-apps/xinit-1.0.2-r6 USE="-debug -minimal" [ebuild N ] x11-apps/xsm-1.0.1 USE="xprint -debug" 114 kB [ebuild N ] net-misc/netkit-rsh-0.17-r6 USE="pam" 74 kB [nomerge ] net-print/cups-1.2.4 USE="X dbus jpeg nls pam png slp ssl tiff -php -ppds -samba" [ebuild UD] app-text/poppler-0.5.3 [0.5.4] USE="jpeg (-cjk%) (-zlib%*)" 0 kB [ebuild R ] net-libs/gnutls-1.4.4-r1 USE="nls%* zlib -doc" 0 kB [nomerge ] virtual/glu-7.0 [nomerge ] media-libs/mesa-6.5.1-r1 USE="motif nptl -debug -doc -hardened" VIDEO_CARDS="-i810 -mach64 -mga -none -r128 -radeon -s3virge -savage -sis (-sunffb) -tdfx -trident -via" [nomerge ] app-admin/eselect-opengl-1.0.3 [nomerge ] app-admin/eselect-1.0.2 USE="bash-completion -doc" [ebuild R ] sys-apps/file-4.17-r1 USE="python (-build%)" 0 kB [nomerge ] x11-libs/openmotif-2.2.3-r9 [ebuild U ] sys-libs/glibc-2.4-r3 [2.3.6-r3] USE="nls nptl* -build -glibc-compat20 -glibc-omitfp -hardened (-multilib) -nptlonly -profile (-selinux) (-erandom%) (-linuxthreads-tls%) (-pic%) (-userlocales%*)" 0 kB [ebuild R ] dev-python/imaging-1.1.5 USE="X -doc -scanner -tk% (-tcltk%*)" 0 kB [nomerge ] dev-lang/python-2.4.3-r4 USE="berkdb gdbm ipv6 ncurses readline ssl -bootstrap -build -doc -nocxx -tk -ucs2" [nomerge ] sys-libs/gdbm-1.8.3-r2 USE="berkdb" [ebuild U ] sys-libs/db-4.2.52_p4-r2 [4.2.52_p2-r1] USE="java -bootstrap -doc -nocxx -tcl -test" 0 kB
latest portage has fixed it for me
(In reply to comment #7) > latest portage has fixed it for me From ChangeLog: *portage-2.1.2_pre3-r1 (14 Oct 2006) 14 Oct 2006; Zac Medico <zmedico@gentoo.org> +files/blockers_151331.patch, -portage-2.1.2_pre3.ebuild, +portage-2.1.2_pre3-r1.ebuild: 2.1.2_pre3-r1 regression fix revbump for bug #151331. Zac: ok to RESOLVED FIXED this bug?
(In reply to comment #7) > latest portage has fixed it for me I'm still getting the error ( comment #5 ) !
Same here with pre3-r1.
Created attachment 99685 [details, diff] fix the KeyError reported in comment #5 I'll do another revbump soon with this patch.
This has been released in 2.1.2_pre3-r2.
(In reply to comment #11 and comment #12) latest portage has fixed it for me. Thanks zmedico!
*** Bug 151594 has been marked as a duplicate of this bug. ***
I'm using 2.1.2_pre3-r2 and have still the problem. I have a lot of bin.pkgs in $PKGDIR, moving them away dosn't lead to the error: # emerge -uDNktav world These are the packages that would be merged, in reverse order: Calculating world dependencies - ... done! Traceback (most recent call last): File "/usr/bin/emerge", line 4358, in ? retval = emerge_main() File "/usr/bin/emerge", line 4353, in emerge_main myopts, myaction, myfiles, spinner) File "/usr/bin/emerge", line 3771, in action_build mydepgraph.display( File "/usr/bin/emerge", line 1659, in display while depth and graph_key not in \ File "/usr/lib/portage/pym/portage.py", line 382, in child_nodes return self.nodes[node][0].keys() KeyError: 'blocks / >=kde-base/kdelibs-3.5.4-r2' without --tree but with --usepkg I got blocks on kdelibs<->kde-env. There are none of this blocks without --usepkg. Shouldn't it be the same w/ and w/o --usepkg?
Created attachment 99822 [details, diff] Fix the --tree KeyError from comment #15 (In reply to comment #15) > without --tree but with --usepkg I got blocks on kdelibs<->kde-env. There are > none of this blocks without --usepkg. Shouldn't it be the same w/ and w/o > --usepkg? The binary packages may contain different dependencies than the ebuilds. This patch should fix the KeyError. If the patch is saved as /tmp/tree.patch, then it can be applied as follows: cd /usr/lib/portage patch -p0 < /tmp/tree.patch
(In reply to comment #16) > Created an attachment (id=99822) [edit] > Fix the --tree KeyError from comment #15 confirmed. works for me. now I have an other problem, which I don't understand. I have 2 identical systems: A for compiling and --buildpkg and B for --usepkg. On A+B I unmerged kde-env. but using pkg on B now fails: # emerge -uDNktav world These are the packages that would be merged, in reverse order: Calculating world dependencies / ... done! [blocks B ] kde-base/kde-env (is blocking kde-base/kdelibs-3.5.5-r2, kde-base/kdelibs-3.5.4-r2) [blocks B ] >=kde-base/kdelibs-3.5.4-r2 (is blocking kde-base/kde-env-3-r4) [blocks B ] <dev-python/pygtk-2.9 (is blocking dev-python/pygobject-2.12.2) . .... some text . !!! Error: circular dependencies: binary / kde-base/mimelib-3.5.4 nomerge depends on ebuild / kde-base/kde-env-3-r4 merge (medium) binary / kde-base/kcheckpass-3.5.0 nomerge depends on ebuild / kde-base/kde-env-3-r4 merge (medium) binary / kde-base/kcminit-3.5.3 nomerge depends on ebuild / kde-base/kde-env-3-r4 merge (medium) ebuild / kde-base/kdelibs-3.5.3-r4 merge (medium) binary / kde-base/libkdenetwork-3.5.4 nomerge depends on ebuild / kde-base/kde-env-3-r4 merge (medium) binary / kde-base/libksieve-3.5.0 nomerge depends on ebuild / kde-base/kde-env-3-r4 merge (medium) binary / kde-base/artsplugin-audiofile-3.5.4 nomerge depends on ebuild / kde-base/kde-env-3-r4 merge (medium) ebuild / kde-base/kdelibs-3.5.3-r4 merge depends on ebuild / kde-base/kde-env-3-r4 merge (hard) binary / kde-base/kreadconfig-3.5.0 nomerge depends on ebuild / kde-base/kde-env-3-r4 merge (medium) binary / kde-base/kdeartwork-meta-3.5.5 merge depends on binary / kde-base/kdeartwork-sounds-3.5.0 merge (medium) ebuild / kde-base/kde-env-3-r4 merge depends on ebuild / kde-base/kdelibs-3.5.3-r4 merge (hard) binary / dev-python/pygtk-2.10.3 merge depends on binary / dev-python/pygobject-2.12.2 merge (medium) binary / kde-base/kdeartwork-sounds-3.5.0 merge depends on ebuild / kde-base/kde-env-3-r4 merge (medium) binary / kde-base/libkmime-3.5.3 nomerge depends on ebuild / kde-base/kde-env-3-r4 merge (medium) ebuild / kde-base/kdelibs-3.5.3-r4 merge (medium) binary / dev-python/pygobject-2.12.2 merge depends on binary / dev-python/pygtk-2.10.3 merge (hard) binary / app-editors/kile-1.9.2 nomerge depends on ebuild / kde-base/kde-env-3-r4 merge (medium) binary / kde-base/libkpgp-3.5.4 nomerge depends on ebuild / kde-base/kde-env-3-r4 merge (medium) binary / kde-base/kstart-3.5.0 nomerge depends on ebuild / kde-base/kde-env-3-r4 merge (medium) binary / kde-misc/krusader-1.70.1 nomerge depends on ebuild / kde-base/kde-env-3-r4 merge (medium) binary / kde-base/kdcop-3.5.1 nomerge depends on ebuild / kde-base/kde-env-3-r4 merge (medium) binary / kde-base/kode-3.5.2 nomerge depends on ebuild / kde-base/kde-env-3-r4 merge (medium) binary / kde-base/librss-3.5.0 nomerge depends on ebuild / kde-base/kde-env-3-r4 merge (medium)
(In reply to comment #17) > !!! Error: circular dependencies: The circular deps are related to the patch from comment #16. Go ahead and downgrade to portage-2.1.2_pre2-r9 and you should be able to sort out the blockers with the --tree output. I'll work on getting the circular deps thing fixed.
(In reply to comment #18) > The circular deps are related to the patch from comment #16. Go ahead and > downgrade to portage-2.1.2_pre2-r9 and you should be able to sort out the > blockers with the --tree output. I'll work on getting the circular deps thing > fixed. ok. sorted out. the pkgs are the one in the list of circular deps in comment #17 (krusader, kile, non *-3.5.5 kde pkgs). But I don't understand why i.e. the kile-pkg have a dep on kde-env? Dosn't fixpackages fix this? >
Created attachment 99836 [details, diff] Fix the --tree KeyError from comment #15 This patch obsoletes the previous one and should solve everything. (In reply to comment #19) > ok. sorted out. the pkgs are the one in the list of circular deps in comment > #17 (krusader, kile, non *-3.5.5 kde pkgs). But I don't understand why i.e. the > kile-pkg have a dep on kde-env? Dosn't fixpackages fix this? No, fixpackages doesn't change the dependency strings inside the binaries. It currently only performs package moves. However, I do have an experimental tool that will transfer the dependency metadata from the live tree into binary packages: http://dev.gentoo.org/~zmedico/portage/branches/2.1/bin/vdb-tools.py
This has been released in 2.1.2_pre3-r3.
(In reply to comment #20) > http://dev.gentoo.org/~zmedico/portage/branches/2.1/bin/vdb-tools.py I've run this tool: # python ./vdb-tools.py --transfer --pkgtype=binary I wonder it was very fast, not slow as fixpackages. I moved back some pkgs with blocking deps into $PKGDIR, hoping they got fixed, but they aren't. Have I something forgotten? Never mind, this does not hurt me, because I can use moast of my bin pkgs and compile the rest. I use bin pkgs a long time for 6 Systems, never had such problems. If someone would have a gentoo-farm with thousends of pkg-clients this would break the whole thing? I've tried to quickpkg the screwed-up pkgs, but it seems the dep info is taken from /var/db/pkg instead of portage tree? Last but not least, Thank You Zac Medico, for your helpfull responses and the great portage development.
(In reply to comment #22) > # python ./vdb-tools.py --transfer --pkgtype=binary > > I wonder it was very fast, not slow as fixpackages. That copies *DEPEND from the matching ebuilds to the corresponding packages in $PKGDIR. It's fast because the ebuild metadata is assumed to be correct, so there's no need to search for package moves in the metadata. This is the topic of bug 122089.