Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 787602 - app-portage/portage-utils: "qdepends: dep_grow_tree(): Parenthesis unbalanced"
Summary: app-portage/portage-utils: "qdepends: dep_grow_tree(): Parenthesis unbalanced"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-02 08:38 UTC by Volkmar W. Pogatzki
Modified: 2021-05-03 19:10 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge --info,6.19 KB, text/plain)
2021-05-02 10:34 UTC, Volkmar W. Pogatzki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Volkmar W. Pogatzki 2021-05-02 08:38:48 UTC
It would be nice to get the full reverse dependency tree.
Or, at least "Parenthesis unbalanced" should be explained.

$ qdepends -Qt dev-java/bndlib
dev-java/bnd-junit-2.1.0-r1: dev-java/osgi-core-api:0 >=virtual/jdk-1.5 >=dev-java/javatoolkit-0.3.0-r2 >=dev-java/java-config-2.2.0-r3 dev-java/junit:4 dev
dev-java/bnd-junit-2.1.0: dev-java/osgi-core-api:0 >=virtual/jdk-1.5 >=dev-java/javatoolkit-0.3.0-r2 >=dev-java/java-config-2.2.0-r3 dev-java/junit:4 dev-ja
dev-java/jackrabbit-webdav-2.10.1: java-virtuals/servlet-api:2.3 dev-java/slf4j-nop:0 dev-java/ant-junit:0 >=dev-java/javatoolkit-0.3.0-r2 dev-java/commons-
qdepends: dep_grow_tree(): Parenthesis unbalanced
qdepends: dep_grow_tree(): DEPEND: (

qdepends: dep_grow_tree(): Parenthesis unbalanced
qdepends: dep_grow_tree(): DEPEND: (

qdepends: dep_grow_tree(): Parenthesis unbalanced
qdepends: dep_grow_tree(): DEPEND: (

qdepends: dep_grow_tree(): Parenthesis unbalanced
qdepends: dep_grow_tree(): DEPEND: (

qdepends: dep_grow_tree(): Parenthesis unbalanced
qdepends: dep_grow_tree(): DEPEND: (

qdepends: no matches found for your query
Comment 1 Fabian Groffen gentoo-dev 2021-05-02 10:02:32 UTC
What tree/overlays are you using?  I cannot reproduce the problem.  I think it would be nice to at least report the ebuild it's parsing here, will have a look at that.
Comment 2 Volkmar W. Pogatzki 2021-05-02 10:34:19 UTC
Created attachment 705258 [details]
emerge --info

It's pore ::gentoo
Comment 3 Volkmar W. Pogatzki 2021-05-02 10:36:09 UTC
(In reply to Fabian Groffen from comment #1)
> What tree/overlays are you using?  I cannot reproduce the problem.  I think
> it would be nice to at least report the ebuild it's parsing here, will have
> a look at that.

The ebuild is "dev-java/bndlib-2.1.0::gentoo"
Comment 4 Volkmar W. Pogatzki 2021-05-02 10:37:22 UTC
(In reply to Volkmar W. Pogatzki from comment #2)
> It's pore ::gentoo

pure ::gentoo
Comment 5 Fabian Groffen gentoo-dev 2021-05-02 11:09:19 UTC
which version are you using?
Comment 6 Volkmar W. Pogatzki 2021-05-02 11:17:28 UTC
(In reply to Fabian Groffen from comment #5)
> which version are you using?

Sorry, forgot to mention.  
Version is app-portage/portage-utils-0.90
Comment 7 Volkmar W. Pogatzki 2021-05-02 11:21:27 UTC
But it also happens with app-portage/portage-utils-0.91
Comment 8 Miroslav Šulc gentoo-dev 2021-05-02 11:23:59 UTC
it would be really helpful if the error message would output also package/file name on which this happens. it would imo be much easier to find the cause.
Comment 9 Fabian Groffen gentoo-dev 2021-05-02 11:25:15 UTC
I still cannot reproduce this.  I can of course corrupt the DEPEND data, and trigger the error, which I now more useful by reporting the atom for which parsing failed.  If this is a parser error I'd like to be able to reproduce it to fix it.
Comment 10 Larry the Git Cow gentoo-dev 2021-05-02 11:25:29 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=8f2ad078dfc9b9645ce5dd92a689a802e6c35aa6

commit 8f2ad078dfc9b9645ce5dd92a689a802e6c35aa6
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2021-05-02 11:15:25 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2021-05-02 11:15:25 +0000

    qdepends: report which ebuild had dep-parsing errors
    
    Bug: https://bugs.gentoo.org/787602
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 qdepends.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Comment 11 Volkmar W. Pogatzki 2021-05-02 14:26:20 UTC
Thanks for the dep-parsing errors reporting:

qdepends -Qt dev-java/bndlib
dev-java/bnd-junit-2.1.0-r1: dev-java/osgi-core-api:0 >=virtual/jdk-1.5 >=dev-java/javatoolkit-0.3.0-r2 >=dev-java/java-config-2.2.0-r3 dev-java/junit:4 dev-java/bndlib:0 >=virtual/jre-1.5 >=dev-java/ant-core-1.8.2:0
dev-java/bnd-junit-2.1.0: dev-java/osgi-core-api:0 >=virtual/jdk-1.5 >=dev-java/javatoolkit-0.3.0-r2 >=dev-java/java-config-2.2.0-r3 dev-java/junit:4 dev-java/bndlib:0 >=virtual/jre-1.5 >=dev-java/ant-core-1.8.2:0
dev-java/jackrabbit-webdav-2.10.1: java-virtuals/servlet-api:2.3 dev-java/slf4j-nop:0 dev-java/ant-junit:0 >=dev-java/javatoolkit-0.3.0-r2 dev-java/commons-httpclient:3 >=virtual/jre-1.6 >=dev-java/java-config-2.2.0-r3 dev-java/slf4j-api:0 dev-java/bndlib:0 >=virtual/jdk-1.6 >=dev-java/ant-core-1.8.2:0
qdepends: dep_grow_tree(): Parenthesis unbalanced
qdepends: dep_grow_tree(): DEPEND: (

qdepends: failed to parse depstring from dev-vcs/lazygit-0.20.4

qdepends: dep_grow_tree(): Parenthesis unbalanced
qdepends: dep_grow_tree(): DEPEND: (

qdepends: failed to parse depstring from dev-vcs/lazygit-0.20.4

qdepends: dep_grow_tree(): Parenthesis unbalanced
qdepends: dep_grow_tree(): DEPEND: (

qdepends: failed to parse depstring from dev-vcs/lazygit-0.20.3

qdepends: dep_grow_tree(): Parenthesis unbalanced
qdepends: dep_grow_tree(): DEPEND: (

qdepends: failed to parse depstring from dev-vcs/lazygit-0.20.3

qdepends: dep_grow_tree(): Parenthesis unbalanced
qdepends: dep_grow_tree(): DEPEND: (

qdepends: failed to parse depstring from dev-vcs/lazygit-0.19
Comment 12 Volkmar W. Pogatzki 2021-05-02 14:35:42 UTC
Removing guru stuff solved it for me.
Thanks for your help.
Comment 13 Fabian Groffen gentoo-dev 2021-05-03 19:10:42 UTC
I see the problem, that ebuild doesn't use quotes around the dep-string, so all the dep-code sees is "(", because it isn't bash, so it doesn't turn it into an array.  Not sure what the author was trying to do there, but it's wrong.  Anyway, thanks for the feedback!