summaryrefslogtreecommitdiff
path: root/lang/openjdk7/patches
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2015-02-08 23:40:09 +0000
committertnn <tnn@pkgsrc.org>2015-02-08 23:40:09 +0000
commit98353196cd09dd2badb7c70eea70645c85658ba3 (patch)
tree352a99278c9807c60d2769e9219f8652525da979 /lang/openjdk7/patches
parentebd971086752bc3408eea1b88beb2f609db073fb (diff)
downloadpkgsrc-98353196cd09dd2badb7c70eea70645c85658ba3.tar.gz
Optionalize debug, X11 and ZeroVM similar to lang/openjdk8 + minor cleanups
Diffstat (limited to 'lang/openjdk7/patches')
-rw-r--r--lang/openjdk7/patches/patch-ao34
-rw-r--r--lang/openjdk7/patches/patch-hotspot_make_bsd_makefiles_zeroshark.make12
2 files changed, 37 insertions, 9 deletions
diff --git a/lang/openjdk7/patches/patch-ao b/lang/openjdk7/patches/patch-ao
index 9449d60e8bd..1919a3ed6f1 100644
--- a/lang/openjdk7/patches/patch-ao
+++ b/lang/openjdk7/patches/patch-ao
@@ -1,12 +1,12 @@
-$NetBSD: patch-ao,v 1.4 2013/06/23 17:39:43 jperkin Exp $
+$NetBSD: patch-ao,v 1.5 2015/02/08 23:40:09 tnn Exp $
-Support rhino.
+- Support rhino
+- Disable SunOS multiarch
+- Building japanese manpages crashes bootstrap JVM
-Disable SunOS multiarch.
-
---- jdk/make/common/Release.gmk.orig 2013-06-21 13:12:13.781215177 +0000
+--- jdk/make/common/Release.gmk.orig 2015-01-26 15:20:57.000000000 +0000
+++ jdk/make/common/Release.gmk
-@@ -67,7 +67,7 @@ EXPORTED_PRIVATE_PKGS = com.sun.servicet
+@@ -66,7 +66,7 @@ EXPORTED_PRIVATE_PKGS = com.oracle.net \
# 64-bit solaris has a few special cases. We define the variable
# SOLARIS64 for use in this Makefile to easily test those cases
ifeq ($(PLATFORM), solaris)
@@ -15,7 +15,15 @@ Disable SunOS multiarch.
SOLARIS64 = true
IMAGE_BINDIR = bin/$(ARCH)
endif
-@@ -227,7 +227,7 @@ endif
+@@ -193,6 +193,7 @@ for manbase in $(MANBASEDIRS:%=%/$(MAN1S
+ if [ -f $${manbase}/$${manpage} ] ; then \
+ $(CP) $${manbase}/$${manpage} $1/man/man1 ; \
+ for ja_encoding in $(JA_TARGET_ENCODINGS); do \
++ continue; \
+ ja_dir="ja"; \
+ if [ "$${ja_encoding}" != "$(JA_SOURCE_ENCODING)" ]; then \
+ ja_dir="ja_JP.$${ja_encoding}"; \
+@@ -229,7 +230,7 @@ endif
INITIAL_IMAGE_JRE=initial-image-jre
INITIAL_IMAGE_JDK=initial-image-jdk
ifeq ($(PLATFORM), solaris)
@@ -24,7 +32,7 @@ Disable SunOS multiarch.
INITIAL_IMAGE_JRE=initial-image-jre-sol64
INITIAL_IMAGE_JDK=initial-image-jdk-sol64
endif
-@@ -842,6 +842,7 @@ initial-image-jre:: initial-image-jre-se
+@@ -830,6 +831,7 @@ initial-image-jre:: initial-image-jre-se
$(CP) $(RT_JAR) $(JRE_IMAGE_DIR)/lib/rt.jar
$(CP) $(RESOURCES_JAR) $(JRE_IMAGE_DIR)/lib/resources.jar
$(CP) $(JSSE_JAR) $(JRE_IMAGE_DIR)/lib/jsse.jar
@@ -32,7 +40,15 @@ Disable SunOS multiarch.
ifneq ($(JFR_JAR),)
$(CP) $(JFR_JAR) $(JRE_IMAGE_DIR)/lib/jfr.jar
endif
-@@ -1170,7 +1171,8 @@ initial-image-jdk:: initial-image-jdk-se
+@@ -931,6 +933,7 @@ ifeq ($(PLATFORM), macosx)
+ $(RM) $(JDK_SERVER_BUNDLE_DIR)/Home/man/man1/javaws.1
+ else
+ $(RM) -r $(JDK_SERVER_IMAGE_DIR)
++ $(RM) -rf $(JDK_IMAGE_DIR)/man/ja
+ $(CP) -r $(JDK_IMAGE_DIR) $(JDK_SERVER_IMAGE_DIR)
+ $(RM) -r $(JDK_SERVER_IMAGE_DIR)/demo
+ $(RM) -r $(JDK_SERVER_IMAGE_DIR)/sample
+@@ -1159,7 +1162,8 @@ initial-image-jdk:: initial-image-jdk-se
@#
@# Swing BeanInfo generation
@#
diff --git a/lang/openjdk7/patches/patch-hotspot_make_bsd_makefiles_zeroshark.make b/lang/openjdk7/patches/patch-hotspot_make_bsd_makefiles_zeroshark.make
new file mode 100644
index 00000000000..945c829bf69
--- /dev/null
+++ b/lang/openjdk7/patches/patch-hotspot_make_bsd_makefiles_zeroshark.make
@@ -0,0 +1,12 @@
+$NetBSD: patch-hotspot_make_bsd_makefiles_zeroshark.make,v 1.1 2015/02/08 23:40:09 tnn Exp $
+
+--- hotspot/make/bsd/makefiles/zeroshark.make.orig 2015-01-26 15:21:52.000000000 +0000
++++ hotspot/make/bsd/makefiles/zeroshark.make
+@@ -57,6 +57,6 @@ else
+ endif
+
+ CFLAGS += -I$(PACKAGE_PATH)/include
+-LIBS += -L$(PACKAGE_PATH)/lib -lffi
++LIBS += -Wl,-R$(PACKAGE_PATH)/lib -L$(PACKAGE_PATH)/lib -lffi
+
+ OPT_CFLAGS/compactingPermGenGen.o = -O1