[fedora-java] recommendations for coexistence with Sun-jre

Justin Conover justin.conover at gmail.com
Sun Jun 19 13:28:33 UTC 2005


On 6/17/05, Thomas Fitzsimmons <fitzsim at redhat.com> wrote:
> On Fri, 2005-06-17 at 13:45 -0400, Zlatin Balevsky wrote:
> > Joshua Daniel Franklin wrote:
> >
> > >On 6/17/05, Thomas Fitzsimmons wrote:
> > >
> > >
> > >>On Fri, 2005-06-17 at 11:54 -0400, Zlatin Balevsky wrote:
> > >>
> > >>
> > >>>Is there an officially supported/recommended way of having Sun java
> > >>>coexist with the -compat?
> > >>>
> > >>>
> > >>Yes, we recommend creating a Sun JPackage RPM, then installing that.
> > >>All the java tools in /usr/bin will then point to Sun's Java
> > >>implementation.
> > >>
> > >>
> > >
> > >And in case you're unfamiliar with JPackage, that's easy to do; a quick
> > >paraphrase of http://jpackage.org/rebuilding.php:
> > >
> > >1. Download and install the nosrc rpm http://jpackage.org/rpm.php?id=2546
> > >
> > >2. Put the Sun package in your rpmbuild/SOURCES
> > >
> > >3. rpmbuild -ba rpmbuild/SPECS/java....spec
> > >
> > >4. enjoy your RPMs in rpmbuild/RPMS/
> > >
> > >5. Add your name and a comments to
> > >http://developer.java.sun.com/developer/bugParade/bugs/4680244.html
> > >to get Sun to produce reasonable RPMs in the first place!

Trying to build this with FC4 X86_64 I get the following error.

+ grep -vF alsa.so
+ grep -v jre/lib/security
+ grep -v Jdbc
+ /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot
ERROR: file '/usr/share/java-1.5.0-sun/demo/jvmti/heapTracker/lib/libheapTracker_g.so'
contains an invalid rpath '$ORIGIN/../../../../lib/amd64' in
[$ORIGIN/../../../../lib/amd64:$ORIGIN/../../../../jre/lib/amd64]
ERROR: file '/usr/share/java-1.5.0-sun/demo/jvmti/heapTracker/lib/libheapTracker_g.so'
contains an invalid rpath '$ORIGIN/../../../../jre/lib/amd64' in
[$ORIGIN/../../../../lib/amd64:$ORIGIN/../../../../jre/lib/amd64]
ERROR: file '/usr/share/java-1.5.0-sun/demo/jvmti/heapTracker/lib/libheapTracker.so'
contains an invalid rpath '$ORIGIN/../../../../lib/amd64' in
[$ORIGIN/../../../../lib/amd64:$ORIGIN/../../../../jre/lib/amd64]
ERROR: file '/usr/share/java-1.5.0-sun/demo/jvmti/heapTracker/lib/libheapTracker.so'
contains an invalid rpath '$ORIGIN/../../../../jre/lib/amd64' in
[$ORIGIN/../../../../lib/amd64:$ORIGIN/../../../../jre/lib/amd64]
ERROR: file '/usr/share/java-1.5.0-sun/demo/jvmti/mtrace/lib/libmtrace_g.so'
contains an invalid rpath '$ORIGIN/../../../../lib/amd64' in
[$ORIGIN/../../../../lib/amd64:$ORIGIN/../../../../jre/lib/amd64]
ERROR: file '/usr/share/java-1.5.0-sun/demo/jvmti/mtrace/lib/libmtrace_g.so'
contains an invalid rpath '$ORIGIN/../../../../jre/lib/amd64' in
[$ORIGIN/../../../../lib/amd64:$ORIGIN/../../../../jre/lib/amd64]
ERROR: file '/usr/share/java-1.5.0-sun/demo/jvmti/mtrace/lib/libmtrace.so'
contains an invalid rpath '$ORIGIN/../../../../lib/amd64' in
[$ORIGIN/../../../../lib/amd64:$ORIGIN/../../../../jre/lib/amd64]
ERROR: file '/usr/share/java-1.5.0-sun/demo/jvmti/mtrace/lib/libmtrace.so'
contains an invalid rpath '$ORIGIN/../../../../jre/lib/amd64' in
[$ORIGIN/../../../../lib/amd64:$ORIGIN/../../../../jre/lib/amd64]
error: Bad exit status from /var/tmp/rpm-tmp.32654 (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.32654 (%install)




More information about the java-devel mailing list