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

Bug 31452

Summary: qpkg fix for use flags that are not explicitly disabled in /var/db/*/package/USE
Product: Gentoo Linux Reporter: Eldad Zack (RETIRED) <eldad>
Component: Current packagesAssignee: Karl Trygve Kalleberg (RETIRED) <karltk>
Status: RESOLVED INVALID    
Severity: normal CC: agaffney, agriffis, mholzer, scandium
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: disable flags that aren't explicitly set

Description Eldad Zack (RETIRED) gentoo-dev 2003-10-18 15:34:52 UTC
In a case when a use flag is not explicitly disabled in /var/db/*/package/USE,
qpkg outputs a wrong dependant package.

 

Reproducible: Always
Steps to Reproduce:
Comment 1 Eldad Zack (RETIRED) gentoo-dev 2003-10-18 15:36:51 UTC
Created attachment 19435 [details, diff]
disable flags that aren't explicitly set
Comment 2 Eldad Zack (RETIRED) gentoo-dev 2003-10-18 15:40:54 UTC
I figured out that virtuals are also ignored and RDEPENDS that span more
than one line aren't calculated right.
This should be solved and brought into consistency IMHO by calculating dependencies
using portage and not reimplementing the logic again, in bash...

Comment 3 Andrew Gaffney (RETIRED) gentoo-dev 2003-10-18 20:29:52 UTC
Wouldn't it be easy enough to do something like:

USE="$(cat /var/db/pkg/pkg-cat/pkg-ver/USE)" emerge -ep pkg

to get dependencies instead of parsing the ebuild?
Comment 4 Eldad Zack (RETIRED) gentoo-dev 2003-10-18 23:09:15 UTC
The dependency of one package - yes.

But what qpkg is checking with -q requires checking the dependencies of all
the packages in the database.

It just that it takes far too long to invoke emerge -ep for one package,
that doing that for the whole database is not a good solution, IMHO
Comment 5 Andrew Gaffney (RETIRED) gentoo-dev 2003-10-18 23:39:53 UTC
Eh, its late.
Comment 6 Eldad Zack (RETIRED) gentoo-dev 2003-12-22 07:30:36 UTC
Ok, should we close this bug? since the remake of qpkg is supposed to calculate deps using portage, so it is irrelevant in that case.
Comment 7 Eldad Zack (RETIRED) gentoo-dev 2004-01-07 14:15:20 UTC
qpkg is deprecated by equery, which does all the deptree right. no need for this patch.