Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 266646

Summary: app-portage/portage-utils: qpkg doesn't find package with -rX to merge
Product: Gentoo Linux Reporter: Jorge Manuel B. S. Vicetto <jmbsvicetto>
Component: Current packagesAssignee: Portage Utils Team <portage-utils>
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: portage-utils-atom-revision.patch

Description Jorge Manuel B. S. Vicetto Gentoo Infrastructure gentoo-dev 2009-04-18 13:43:32 UTC
qpkg fails to match any package with a revision (-rX) and thus won't build a binary package for it.

atlantis@lap64 /home/gentoo-cvs/gentoo-projects/portage-utils $ qlist -Iv dev-db/mysql
atlantis@lap64 /home/gentoo-cvs/gentoo-projects/portage-utils $ qpkg dev-db/mysql
 * 1 package could not be matched :/
atlantis@lap64 /home/gentoo-cvs/gentoo-projects/portage-utils $ qlist -Iv amarok
atlantis@lap64 /home/gentoo-cvs/gentoo-projects/portage-utils $ qpkg amarok
 * 1 package could not be matched :/
atlantis@lap64 /home/gentoo-cvs/gentoo-projects/portage-utils $ qlist -Iv webapp-config
atlantis@lap64 /home/gentoo-cvs/gentoo-projects/portage-utils $ qpkg webapp-config
 * 1 package could not be matched :/

It does work for packages without revisions:

atlantis@lap64 /home/gentoo-cvs/gentoo-projects/portage-utils $ qlist -Iv sys-apps/portage
atlantis@lap64 /home/gentoo-cvs/gentoo-projects/portage-utils $ qpkg portage
 - sys-apps/portage-2.2_rc30: 822 kB
 * Packages can be found in /home/atlantis/binpkgs
atlantis@lap64 /home/gentoo-cvs/gentoo-projects/portage-utils $ qlist -Iv portage-utils
atlantis@lap64 /home/gentoo-cvs/gentoo-projects/portage-utils $ qpkg portage-utils
 - app-portage/portage-utils-0.2: 113 kB
 * Packages can be found in /home/atlantis/binpkgs
Comment 1 Tiago Cunha (RETIRED) gentoo-dev 2009-07-28 15:18:05 UTC
Created attachment 199450 [details, diff]

Apparently, the problem is that portage-utils was using atom->P, instead of atom->PVR. I've changed things a bit in atom_explode.c:atom_explode to not append -r0 to PVR, and thus matching portage's behaviour (although, it still contains PN), and use it instead in qpkg.c:qpkg_make.

The patch should apply against HEAD.
Hope it's the correct approach, though.
Comment 2 SpanKY gentoo-dev 2011-02-21 07:34:33 UTC
should work with portage-utils-0.4