Created attachment 287393 [details] emerge --info The log below shows that revdep-rebuild says portage can't find packages to build for app-text/evince:0 and media-gfx/graphviz:0. But calling emerge with these atoms just works. * Collecting system binaries and libraries * Generated new 1_files.rr * Collecting complete LD_LIBRARY_PATH * Generated new 2_ldpath.rr * Checking dynamic linking consistency * broken /usr/lib64/evince/3/backends/libdvidocument.so (requires libgs.so.8) * broken /usr/lib64/evince/3/backends/libpsdocument.so (requires libgs.so.8) * broken /usr/lib64/graphviz/libgvplugin_gs.so.6.0.0 (requires libgs.so.8) * Generated new 3_broken.rr * Assigning files to packages * /usr/lib64/evince/3/backends/libdvidocument.so -> app-text/evince * /usr/lib64/evince/3/backends/libpsdocument.so -> app-text/evince * /usr/lib64/graphviz/libgvplugin_gs.so.6.0.0 -> media-gfx/graphviz * Generated new 4_raw.rr and 4_owners.rr * Cleaning list of packages to rebuild * Generated new 4_pkgs.rr * Assigning packages to ebuilds * Generated new 4_ebuilds.rr * Evaluating package order * Portage could not find any version of the following packages it could build: * app-text/evince:0 media-gfx/graphviz:0 * (Perhaps they are masked, blocked, or removed from portage.) * Try to emerge them manually. * Warning: Portage cannot rebuild any of the necessary packages. # emerge -1 app-text/evince:0 media-gfx/graphviz:0 These are the packages that would be merged, in reverse order: Calculating dependencies... done! [nomerge ] sci-mathematics/ginac-1.6.1 USE="doc -static-libs" [0] [ebuild R ] app-doc/doxygen-1.7.3 USE="-debug -doc -latex -nodot -qt4 -tcl" 0 kB [0] [nomerge ] app-text/texlive-2010-r2 USE="X cjk context detex doc dvi2tty dvipdfm extra games graphics humanities jadetex latex3 music omega png pstricks publishers science tex4ht truetype xetex xindy xml -luatex -pdfannotextractor" LINGUAS="de -af -ar -as -bg -bn -bo -ca -cs -cy -da -el -en -en_GB -eo -es -et -eu -fa -fi -fr -ga -gl -gu -he -hi -hr -hsb -hu -hy -ia -id -is -it -ja -kn -ko -la -lo -lt -lv -ml -mn -mr -nb -nl -nn -no -or -pa -pl -pt -ro -ru -sa_IN -sk -sl -sr -sv -ta -te -th -tk -tr -uk -vi -zh" [0] [nomerge ] dev-tex/dot2texi-3.0 USE="examples -pgf -pstricks" [0] [nomerge ] dev-tex/dot2tex-2.8.7 USE="doc examples" [0] [ebuild R ] media-gfx/pydot-1.0.23 0 kB [0] [nomerge ] gnome-extra/timer-applet-2.1.2 USE="-debug" [1] [nomerge ] dev-python/gnome-python-desktop-2.32.0 [0] [ebuild R ] dev-python/evince-python-2.32.0 0 kB [0] [ebuild R ] app-text/evince-2.32.0-r3 USE="dbus djvu dvi gnome nautilus t1lib tiff -debug -doc -gnome-keyring (-introspection)" 0 kB [0] [ebuild R ] media-gfx/graphviz-2.26.3-r3 USE="cairo gtk nls perl python -doc -examples -java -lasi -ruby -static-libs -tcl" 0 kB [0] Total: 5 packages (5 reinstalls), Size of downloads: 0 kB Portage tree and overlays: [0] /usr/portage [1] /var/lib/layman/sunrise >>> Verifying ebuild manifests >>> Starting parallel fetch >>> Emerging (1 of 5) media-gfx/graphviz-2.26.3-r3 >>> Emerging (2 of 5) app-text/evince-2.32.0-r3 >>> Jobs: 0 of 5 complete, 2 running Load avg: 2.55, 1.31, 0.61^C Exiting on signal 2
revdep-rebuild determines the package using "portageq best_visible / cat/pkg:slot" If that doesn't return something then it says the package can't be found. What does 'portageq best_visible / app-text/evince:0' and 'portageq best_visible / media-gfx/graphviz:0' return?
It returns nothing and exits with status 1.
That's not a bug in gentoolkit, but in portage. Assume there is cat/pkg-1::high-prority-repo and cat/pkg-1::low-prority-repo and I put */*::high-prority-repo in p.mask. Then portageq best-visile cat/pkg will return nothing.
We need portdbapi.xmatch to loop over all repos when a specific repo is not given, like the depgraph._iter_match_pkgs does.
This will fix portageq: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=c157d3b4ce32573263676c48659fd8fbe1cf122f The portdbapi class still needs to be fixed.
portdbapi is fixed too: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=f4f78a6a7c90fb25f2937dba3422774e5f2b535c
Fixed portdbapi minimum/bestmatch-visible too: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=1b4ee4f4c5c01c49b91f1618f4b2ab6305f28eca
Fixed match-all: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=3d07f74a2fb2e0480e126335f6981218f60da824 This one only matters for unlikely differences, like differing SLOT values between repos for the same cpv.
Fixed minimum-all: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=8be9e967be8e0c038245f55ec927da5b1caa5d54
This is fixed in 2.1.10.20 and 2.2.0_alpha60.