Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31452 - qpkg fix for use flags that are not explicitly disabled in /var/db/*/package/USE
Summary: qpkg fix for use flags that are not explicitly disabled in /var/db/*/package/USE
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-18 15:34 UTC by Eldad Zack (RETIRED)
Modified: 2004-01-07 14:15 UTC (History)
4 users (show)

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


Attachments
disable flags that aren't explicitly set (qpkg-patch-0.1.32-implicituseflags,915 bytes, patch)
2003-10-18 15:36 UTC, Eldad Zack (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.