Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 674934 - app-portage/gentoolkit-0.4.2-r1 equery depends/depgraph doesn't understand BDEPEND
Summary: app-portage/gentoolkit-0.4.2-r1 equery depends/depgraph doesn't understand BD...
Status: RESOLVED OBSOLETE
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-09 04:24 UTC by Duncan
Modified: 2019-05-12 07:51 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan 2019-01-09 04:24:04 UTC
BDEPEND is apparently invisible to equery depends/depgraph.  That's a problem when you're trying to figure out what's pulling in a package and it's a BDEPEND.

Background:  My latest update pulled in cython, but equery depends cython could only see the USE=python dependent yasm and kmod deps, and I don't have USE=python set, thus explaining why I didn't have cython already merged.  I went ahead with the update but then went to check what was pulling it in after the update finished, as the post-update emerge --depclean (with bdeps=y) didn't want to unmerge cython either.

equery depends /still/ refused to help me!

I ended up having to do an emerge --pretend --tree --emptytree @world and search the output for cython to find it was the new lxml-4.3.0 pulling it in, then check the lxml ebuild itself to find the dependency.  Turns out the new lxml has a BDEPEND on cython.  That naturally begged the question[1] of what was pulling in lxml, which turns out to be a BDEPEND of systemd-240-r2.

Once I figured that out what packages were pulling in lxml and cython I tried an equery depgraph to see if at least that worked.  No.  I also tried without luck qdepend from portage-utils, but that's the next bug...

equery depends/depgraph should (at least optionally) be able to tell me about BDEPENDs as well.

---
[1] Begged the question:  Yes, I know the circular logic definition, but the literal component-words meaning of figuratively begging that the question be asked is now the more common usage.  Now I tend to footnote either meaning, tho this is my more common usage as well, as I tend to use the clearer "circular logic" when I wish to convey the less transparent meaning.
Comment 1 Duncan 2019-05-12 06:43:17 UTC
Fixed with the patch for bug #685538 and bump to 0.4.5.  Thanks.  Closing.  (Hmm... resolved/obsolete or resolved/fixed?  Both apply, but given no reply here I guess it's now obsolete.)
Comment 2 Zac Medico gentoo-dev 2019-05-12 07:51:38 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=43ecd536e7b8ad2af343288fe2e6d919f8edf5aa

commit 43ecd536e7b8ad2af343288fe2e6d919f8edf5aa
Author:     Virgil Dupras <vdupras@gentoo.org>
AuthorDate: 2019-05-11 22:42:09 +0000
Commit:     Virgil Dupras <vdupras@gentoo.org>
CommitDate: 2019-05-11 22:42:09 +0000

    Include BDEPEND in dep checks
    
    Bug: https://bugs.gentoo.org/685538
    Signed-off-by: Virgil Dupras <vdupras@gentoo.org>

 pym/gentoolkit/dependencies.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)