FS#13275 - [jdk and jre] modify ld.so.conf and provisions
Attached to Project:
Community Packages
Opened by Xavier (shining) - Saturday, 14 February 2009, 17:55 GMT
Last edited by Geoffroy Carrier (gcarrier) - Monday, 16 March 2009, 01:21 GMT
Opened by Xavier (shining) - Saturday, 14 February 2009, 17:55 GMT
Last edited by Geoffroy Carrier (gcarrier) - Monday, 16 March 2009, 01:21 GMT
|
Details
Two changes are needed for
1) The following lines should be added to ld.so.conf : for jre 64bit : /opt/java/jre/lib/amd64/server for jre 32bit /opt/java/jre/lib/i386/server You could use the fakeroot install scriptlet as a base : http://repos.archlinux.org/viewvc.cgi/fakeroot/repos/core-i686/fakeroot.install?view=markup With an additional check for the arch. 2) versioned provisions jdk : provides=('java-environment=6') jre : provides=('java-runtime=6') In my opinion, it is also cleaner to get rid of the j2re/j2sdk provisions/conflicts/replaces but feel free to keep them if you have any reasons to. These packages are long gone, and the correct provisions are now java-environment and java-runtime. |
This task depends upon
Closed by Geoffroy Carrier (gcarrier)
Monday, 16 March 2009, 01:21 GMT
Reason for closing: Fixed
Additional comments about closing: 2) is fixed.
Monday, 16 March 2009, 01:21 GMT
Reason for closing: Fixed
Additional comments about closing: 2) is fixed.
without soprano the nepomuk service wouldn't work.
i posted an comment to the aur package jre (http://aur.archlinux.org/packages.php?ID=6118) and jdk (http://aur.archlinux.org/packages.php?ID=6121)
unfortunately gcarrier don't give feedback or update the packages to the latest version.
we discuss about that in this (http://bbs.archlinux.org/viewtopic.php?pid=498151#p498151) thread.
[namru@NamruMain ~]$ env | grep JAVA_HOME
JAVA_HOME=/opt/java
I will let other people (who are affected by this issue and motivated to fix it) look into it. :)
it think we need a solution now / in the near feature
How do I link a program to a lib with a variable path? I thought that's what ld.so.conf is for. ATM the ldd output looks like this:
libjvm.so => /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/server/libjvm.so (0x00007f72fe5c5000)
The problem is that jre stores the libjvm.so in a different path.
Also I believe it should be assigned to all java maintainers, current and previous, to help clarifying some obscure points and coming to an agreement
(from openjdk6 PKGBUILD : JGC and Andy, from jre PKGBUILD : Jason)
FS#13071was fixed without the need of 1).Please implement only 2), this is a very straightforward and obvious change, much more than 1)