Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 384063 - sys-apps/portage portageq best-visible returns nothing if the cpv with highest priority is masked
Summary: sys-apps/portage portageq best-visible returns nothing if the cpv with highes...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 381649
  Show dependency tree
 
Reported: 2011-09-22 11:52 UTC by Sebastian Luther (few)
Modified: 2011-09-29 18:48 UTC (History)
0 users

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


Attachments
emerge --info (emerge-info,14.64 KB, text/plain)
2011-09-22 11:52 UTC, Sebastian Luther (few)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Luther (few) 2011-09-22 11:52:58 UTC
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
Comment 1 Paul Varner (RETIRED) gentoo-dev 2011-09-22 15:50:24 UTC
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?
Comment 2 Sebastian Luther (few) 2011-09-22 16:05:55 UTC
It returns nothing and exits with status 1.
Comment 3 Sebastian Luther (few) 2011-09-22 18:26:08 UTC
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.
Comment 4 Zac Medico gentoo-dev 2011-09-22 19:12:43 UTC
We need portdbapi.xmatch to loop over all repos when a specific repo is not given, like the depgraph._iter_match_pkgs does.
Comment 5 Zac Medico gentoo-dev 2011-09-22 23:53:56 UTC
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.
Comment 7 Zac Medico gentoo-dev 2011-09-23 01:57:11 UTC
Fixed portdbapi minimum/bestmatch-visible too:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=1b4ee4f4c5c01c49b91f1618f4b2ab6305f28eca
Comment 8 Zac Medico gentoo-dev 2011-09-23 18:21:14 UTC
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.
Comment 10 Zac Medico gentoo-dev 2011-09-29 18:48:55 UTC
This is fixed in 2.1.10.20 and 2.2.0_alpha60.