Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 635962 - app-text/jabref-bin-4.0 fails to find java VM
Summary: app-text/jabref-bin-4.0 fails to find java VM
Status: IN_PROGRESS
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Nicolas Bock
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-31 00:09 UTC by Felix Büttner
Modified: 2017-11-03 20:27 UTC (History)
4 users (show)

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 Felix Büttner 2017-10-31 00:09:56 UTC
After upgrading to version 4.0, I get the following error when trying to start jabref-bin:


Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/gjl", line 115, in <module>
    vm = get_vm(pkg)
  File "/usr/lib/python-exec/python2.7/gjl", line 33, in get_vm
    return verman.get_vm(pkg.query('VM'))
  File "/usr/lib64/python2.7/site-packages/java_config_2/VersionManager.py", line 237, in get_vm
    low = self.get_lowest(atoms) # Lowest vm version we can use
  File "/usr/lib64/python2.7/site-packages/java_config_2/VersionManager.py", line 184, in get_lowest
    lowest = self.get_lowest_atom(atoms)
  File "/usr/lib64/python2.7/site-packages/java_config_2/VersionManager.py", line 180, in get_lowest_atom
    raise Exception("Couldn't find a VM dep")
Exception: Couldn't find a VM dep
Couldn't get needed information

The problem does not exist in version 3.8.2.
Comment 1 James Le Cuirot gentoo-dev 2017-10-31 14:10:14 UTC
Nicolas, did you test this? The Gentoo Java infrastructure needs that virtual dependency or failing that, JAVA_PKG_WANT_TARGET=1.8. This is so that java-config can check whether the selected JVM is sufficient at runtime. Unfortunately it isn't smart enough to deal with USE flags at the moment so if you have icedtea-bin-8 selected or installed Oracle without the javafx USE flag then it'll blow up. This issue has been known for a long time.
Comment 2 Nicolas Bock gentoo-dev 2017-10-31 15:20:00 UTC
(In reply to James Le Cuirot from comment #1)
> Nicolas, did you test this? The Gentoo Java infrastructure needs that
> virtual dependency or failing that, JAVA_PKG_WANT_TARGET=1.8. This is so
> that java-config can check whether the selected JVM is sufficient at
> runtime. Unfortunately it isn't smart enough to deal with USE flags at the
> moment so if you have icedtea-bin-8 selected or installed Oracle without the
> javafx USE flag then it'll blow up. This issue has been known for a long
> time.

Yes, I am running it myself. Sorry, I wasn't aware of the javafx issue there. I have added JAVA_PKG_WANT_TARGET=1.8 to the package.
Comment 3 Nicolas Bock gentoo-dev 2017-10-31 15:20:30 UTC
Please let me know if that fixed the package for you.
Comment 4 Vadim Dyadkin 2017-10-31 17:01:01 UTC
I have rebuilt the package with JAVA_PKG_WANT_TARGET=1.8 but the error still persists. I use oracle-jdk-bin with javafx use flag on.
Comment 5 James Le Cuirot gentoo-dev 2017-10-31 17:04:33 UTC
As discussed on IRC, I wasn't 100% sure whether this was the right variable. I'll figure it out tonight.
Comment 6 James Le Cuirot gentoo-dev 2017-10-31 22:56:19 UTC
I was able to reproduce the issue straight away. Unfortunately that variable doesn't help and there actually isn't one you can use currently. I'll see what I can do.