Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 538144 - dev-java/icedtea-web-1.4.2: itweb-settings script depends on specific java version
Summary: dev-java/icedtea-web-1.4.2: itweb-settings script depends on specific java ve...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 2 votes (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 562386 573904 573906 581858 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-01-29 12:01 UTC by bitozoid
Modified: 2016-05-02 19:45 UTC (History)
6 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 bitozoid 2015-01-29 12:01:23 UTC
icedtea-web creates the script
/usr/libexec/icedtea-web/itweb-settings
from a template in the source that uses java version with all 4 numbers.

icedtea-web is not rebuilt when icedtea-bin is upgraded, so the script does not work anymore.

Reproducible: Always

Steps to Reproduce:
1. Upgrade icedtea-bin to 6.1.13.5 from 6.1.13.3
2. Run itweb-settings
3.
Actual Results:  
# itweb-settings
/usr/bin/itweb-settings: line 24: /opt/icedtea-bin-6.1.13.3/jre/bin/java: No such file or directory

Expected Results:  
Script running.
Comment 1 Khumba 2015-04-01 03:41:59 UTC
Same for the package's other executable, javaws.
Comment 2 James Le Cuirot gentoo-dev 2015-05-10 21:05:12 UTC
I just noticed this myself. I'll see if I can do something about it when bumping to 1.6.
Comment 3 Pacho Ramos gentoo-dev 2015-07-13 08:01:26 UTC
I am hitting this too in all my computer when icedtea-bin was updated recently. It looks like icedtea-web needs to be rebuilt after icedtea-bin update.

Sadly, I am unsure about how subslots will work with that || ( ) dependency form that is being used to handle icedtea and icedtea-bin :/
Comment 4 James Le Cuirot gentoo-dev 2015-07-13 16:51:44 UTC
(In reply to Pacho Ramos from comment #3)
> Sadly, I am unsure about how subslots will work with that || ( ) dependency
> form that is being used to handle icedtea and icedtea-bin :/

I will fix this so that the path isn't hardcoded and that complicated dependency logic will hopefully go away too.
Comment 5 James Le Cuirot gentoo-dev 2015-10-06 13:41:00 UTC
*** Bug 562386 has been marked as a duplicate of this bug. ***
Comment 6 Maciej Grela 2015-11-02 20:50:51 UTC
(In reply to James Le Cuirot from comment #4)
> (In reply to Pacho Ramos from comment #3)
> > Sadly, I am unsure about how subslots will work with that || ( ) dependency
> > form that is being used to handle icedtea and icedtea-bin :/
> 
> I will fix this so that the path isn't hardcoded and that complicated
> dependency logic will hopefully go away too.

Currently itweb-settings, javaws and policyeditor look for /etc/.java/.deploy/deployment.properties whereas the icedtea-web ebuild creates /etc/.java/deployment/deployment.properties. Furthermore, the scripts seem to expect the jre/ dir inside the icedtea installation as deployment.jre.dir. I have fixed this issue on my system in the following way:

$ itweb-settings list
/usr/bin/itweb-settings: linia 98: /opt/icedtea-bin-7.2.5.3/jre/bin/java: Nie ma takiego pliku ani katalogu
$ sudo mv /etc/.java/{deployment,.deploy}/
$ cat /etc/.java/.deploy/deployment.properties 
deployment.jre.dir=/etc/java-config-2/current-icedtea-web-vm
$ sudo /bin/sh -c "echo deployment.jre.dir=/etc/java-config-2/current-icedtea-web-vm/jre > /etc/.java/.deploy/deployment.properties"
$ itweb-settings list
deployment.log.headers: false
deployment.proxy.same: false
Comment 7 James Le Cuirot gentoo-dev 2016-01-01 22:54:39 UTC
Fixed in 1.6.1. I would close this when it's stable but that might not be for a little while so I'll close it now. We ideally need virtual/jdk-1.8 to go stable first for a long chain of reasons that are hard to explain.
Comment 8 James Le Cuirot gentoo-dev 2016-02-05 09:44:23 UTC
*** Bug 573904 has been marked as a duplicate of this bug. ***
Comment 9 samurai.no.dojo 2016-02-05 09:53:09 UTC
*** Bug 573906 has been marked as a duplicate of this bug. ***
Comment 10 James Le Cuirot gentoo-dev 2016-05-02 19:45:24 UTC
*** Bug 581858 has been marked as a duplicate of this bug. ***