Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 468924 - dev-java/jsch-0.1.49 - pkg_setup(): depend-java-query: error: no such option: --get-vm
Summary: dev-java/jsch-0.1.49 - pkg_setup(): depend-java-query: error: no such option:...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
Depends on:
Reported: 2013-05-07 19:03 UTC by Dale Lukas Peterson
Modified: 2013-05-09 09:43 UTC (History)
0 users

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

Build log, emerge info. (jsch-0.1.49-emerge-errors.txt,7.57 KB, text/plain)
2013-05-07 19:03 UTC, Dale Lukas Peterson

Note You need to log in before you can comment on or make changes to this bug.
Description Dale Lukas Peterson 2013-05-07 19:03:45 UTC
Created attachment 347628 [details]
Build log, emerge info.

Emerging dev-java/jsc-0.1.49 fails with this error:

depend-java-query: error: no such option: --get-vm

See attached build.log and other relevant info.
Comment 1 Dale Lukas Peterson 2013-05-09 06:35:44 UTC
The problem is that /usr/portage/eclass/java-utils-2.eclass:2667 has:

GENTOO_VM="$(depend-java-query --get-vm "${JAVA_PKG_NV_DEPEND:-${DEPEND}}")"

I have dev-java/java-config-2.2.0 installed, which places these files in /usr/bin:
lrwxrwxrwx 1 root root   11 May  8 23:23 /usr/bin/depend-java-query -> python-exec
-rwxr-xr-x 1 root root 3747 May  8 23:23 /usr/bin/depend-java-query-python2.7
-rwxr-xr-x 1 root root 3747 May  8 23:23 /usr/bin/depend-java-query-python3.2
-rwxr-xr-x 1 root root 297 Apr 24 23:23 /usr/bin/python-exec

And python-exec had this in it:
# EASY-INSTALL-ENTRY-SCRIPT: 'nose==1.3.0','console_scripts','nosetests'
__requires__ = 'nose==1.3.0'
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
        load_entry_point('nose==1.3.0', 'console_scripts', 'nosetests')()

Re-emerging python-exec and java-config fixed this issue and now jsch emerges fine.
Comment 2 Dale Lukas Peterson 2013-05-09 06:36:31 UTC
python-exec now has a whole bunch more stuff in it than it did so presumably those changes fixed my issue....
Comment 3 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-05-09 09:43:25 UTC
> # EASY-INSTALL-ENTRY-SCRIPT: 'nose==1.3.0','console_scripts','nosetests'

Sounds like this script was introduced through some external method (easy install / pip / pythonxy) and therefore your python-exec got overwritten, as a result python-exec could no longer delegate that option to depend-java-query. This has nothing to do with depend-java-query itself.

If you think Portage may have did this then make sure collision-protect is listed in FEATURES to avoid this from happening and get informed about collisions; if you do find a collision this way, please file a new bug about it. Thank you and have a nice day.