SF.net SVN: gar:[25951] csw/mgar/pkg/jdk8/trunk/Makefile

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Wed Sep 21 14:40:46 CEST 2016


Revision: 25951
          http://sourceforge.net/p/gar/code/25951
Author:   dmichelsen
Date:     2016-09-21 12:40:46 +0000 (Wed, 21 Sep 2016)
Log Message:
-----------
jdk8/trunk: Fix invocation of 64 bit java

Modified Paths:
--------------
    csw/mgar/pkg/jdk8/trunk/Makefile

Modified: csw/mgar/pkg/jdk8/trunk/Makefile
===================================================================
--- csw/mgar/pkg/jdk8/trunk/Makefile	2016-09-21 12:04:14 UTC (rev 25950)
+++ csw/mgar/pkg/jdk8/trunk/Makefile	2016-09-21 12:40:46 UTC (rev 25951)
@@ -120,4 +120,16 @@
 	gln -sf ../$(DISTNAME)/jre $(DESTDIR)$(prefix)/java/jre/jre8
 	gln -sf jre8 $(DESTDIR)$(prefix)/java/jre/latest
 	gln -sf jdk/latest/man $(DESTDIR)$(prefix)/java/man
+	@# This is a funky fix for the explicit invocation of Java as 64 bit binary:
+	@# Starting with Java 8 there is only a 64 bit version in bin/ and the files in bin/sparcv9/ are actually
+	@# symlinks to binaries in bin/. When
+	@#   /opt/csw/java/jdk1.8.0_102/jre/bin/sparcv9/java
+	@# is invoked it looks for libjli.so in a relative location to the binary path which is
+	@#   /opt/csw/java/jdk1.8.0_102/jre/bin/sparcv9/../lib/sparcv9/jli/libjli.so
+	@# This can be solved by replacing the sparcv9 directory with a symlink sparcv9 -> .
+	@# as all binaries and libs are now 64 bit anyway.
+	rm -rf $(DESTDIR)$(prefix)/java/$(DISTNAME)/bin/$(ISA_DEFAULT64)
+	ln -s . $(DESTDIR)$(prefix)/java/$(DISTNAME)/bin/$(ISA_DEFAULT64)
+	rm -rf $(DESTDIR)$(prefix)/java/$(DISTNAME)/jre/bin/$(ISA_DEFAULT64)
+	ln -s . $(DESTDIR)$(prefix)/java/$(DISTNAME)/jre/bin/$(ISA_DEFAULT64)
 	@$(MAKECOOKIE)

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list