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:
Created attachment 19435 [details, diff] disable flags that aren't explicitly set
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...
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?
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
Eh, its late.
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.
qpkg is deprecated by equery, which does all the deptree right. no need for this patch.