diff options
Diffstat (limited to 'recipes-core/openjdk/openjdk-6-6b32/build-hacks.patch')
-rw-r--r-- | recipes-core/openjdk/openjdk-6-6b32/build-hacks.patch | 119 |
1 files changed, 0 insertions, 119 deletions
diff --git a/recipes-core/openjdk/openjdk-6-6b32/build-hacks.patch b/recipes-core/openjdk/openjdk-6-6b32/build-hacks.patch deleted file mode 100644 index 93ca65d..0000000 --- a/recipes-core/openjdk/openjdk-6-6b32/build-hacks.patch +++ /dev/null | |||
@@ -1,119 +0,0 @@ | |||
1 | Index: icedtea6-1.13.3/Makefile.am | ||
2 | =================================================================== | ||
3 | --- icedtea6-1.13.3.orig/Makefile.am 2014-06-09 21:46:36.640603938 +0200 | ||
4 | +++ icedtea6-1.13.3/Makefile.am 2014-06-09 21:51:34.228435112 +0200 | ||
5 | @@ -795,6 +795,11 @@ | ||
6 | JAVAC="" \ | ||
7 | JAVA_HOME="" \ | ||
8 | JDK_HOME="" \ | ||
9 | + OE_CFLAGS="$(OE_CFLAGS)" \ | ||
10 | + OE_CPPFLAGS="$(OE_CPPFLAGS)" \ | ||
11 | + OE_CXXFLAGS="$(OE_CXXFLAGS)" \ | ||
12 | + OE_LDFLAGS="$(OE_LDFLAGS)" \ | ||
13 | + OE_LAUNCHER_LDFLAGS="$(OE_LAUNCHER_LDFLAGS)" \ | ||
14 | ANT_RESPECT_JAVA_HOME="TRUE" \ | ||
15 | DISTRIBUTION_ID="$(DIST_ID)" \ | ||
16 | DERIVATIVE_ID="$(ICEDTEA_NAME) $(PACKAGE_VERSION)$(ICEDTEA_REV)" \ | ||
17 | @@ -2025,9 +2030,7 @@ | ||
18 | rm -f stamps/pax-mark-vm-debug.stamp | ||
19 | |||
20 | stamps/check-crypto.stamp: stamps/cryptocheck.stamp stamps/pax-mark-vm.stamp | ||
21 | - if [ -e $(BUILD_OUTPUT_DIR)/j2sdk-image/bin/java ] ; then \ | ||
22 | - $(BUILD_OUTPUT_DIR)/j2sdk-image/bin/java -cp $(CRYPTO_CHECK_BUILD_DIR) TestCryptoLevel ; \ | ||
23 | - fi | ||
24 | + $(BOOT_DIR)/bin/java -cp $(CRYPTO_CHECK_BUILD_DIR) TestCryptoLevel ; \ | ||
25 | mkdir -p stamps | ||
26 | touch $@ | ||
27 | |||
28 | @@ -2035,9 +2038,7 @@ | ||
29 | rm -f stamps/check-crypto.stamp | ||
30 | |||
31 | stamps/check-crypto-debug.stamp: stamps/cryptocheck.stamp stamps/pax-mark-vm-debug.stamp | ||
32 | - if [ -e $(DEBUG_BUILD_OUTPUT_DIR)/j2sdk-image/bin/java ] ; then \ | ||
33 | - $(DEBUG_BUILD_OUTPUT_DIR)/j2sdk-image/bin/java -cp $(CRYPTO_CHECK_BUILD_DIR) TestCryptoLevel ; \ | ||
34 | - fi | ||
35 | + $(BOOT_DIR)/bin/java -cp $(CRYPTO_CHECK_BUILD_DIR) TestCryptoLevel ; \ | ||
36 | mkdir -p stamps | ||
37 | touch $@ | ||
38 | |||
39 | @@ -2219,9 +2220,7 @@ | ||
40 | rm -f stamps/pax-mark-vm-ecj.stamp | ||
41 | |||
42 | stamps/check-crypto-boot.stamp: stamps/cryptocheck.stamp stamps/pax-mark-vm-ecj.stamp | ||
43 | - if [ -e $(ECJ_BUILD_OUTPUT_DIR)/j2sdk-image/bin/java ] ; then \ | ||
44 | - $(ECJ_BUILD_OUTPUT_DIR)/j2sdk-image/bin/java -cp $(CRYPTO_CHECK_BUILD_DIR) TestCryptoLevel ; \ | ||
45 | - fi | ||
46 | + $(BOOT_DIR)/bin/java -cp $(CRYPTO_CHECK_BUILD_DIR) TestCryptoLevel ; \ | ||
47 | mkdir -p stamps | ||
48 | touch $@ | ||
49 | |||
50 | @@ -2379,10 +2378,14 @@ | ||
51 | if BUILD_JAMVM | ||
52 | cd jamvm/jamvm && \ | ||
53 | LDFLAGS="-Xlinker -z -Xlinker noexecstack" \ | ||
54 | - ./autogen.sh --with-java-runtime-library=openjdk6 \ | ||
55 | - --prefix=$(abs_top_builddir)/jamvm/install ; \ | ||
56 | - $(MAKE) ; \ | ||
57 | - $(MAKE) install | ||
58 | + $(ARCH_PREFIX) ./autogen.sh --with-java-runtime-library=openjdk6 \ | ||
59 | + --prefix=$(abs_top_builddir)/jamvm/install \ | ||
60 | + --host=$(host_alias) \ | ||
61 | + --build=$(build_alias) \ | ||
62 | + --target=$(target_alias) \ | ||
63 | + --with-libtool-sysroot=${ALT_FREETYPE_LIB_PATH} ; \ | ||
64 | + $(ARCH_PREFIX) $(MAKE) ; \ | ||
65 | + $(ARCH_PREFIX) $(MAKE) install | ||
66 | mkdir -p $(abs_top_builddir)/jamvm/install/hotspot/jre/lib/$(INSTALL_ARCH_DIR)/server | ||
67 | cp $(abs_top_builddir)/jamvm/install/lib/libjvm.so $(abs_top_builddir)/jamvm/install/hotspot/jre/lib/$(INSTALL_ARCH_DIR)/server | ||
68 | ln -sf server $(abs_top_builddir)/jamvm/install/hotspot/jre/lib/$(INSTALL_ARCH_DIR)/client | ||
69 | @@ -2446,6 +2449,7 @@ | ||
70 | --host=$(host_alias) \ | ||
71 | --build=$(build_alias) \ | ||
72 | --target=$(target_alias) \ | ||
73 | + --with-libtool-sysroot=${ALT_FREETYPE_LIB_PATH} \ | ||
74 | --prefix=$(abs_top_builddir)/cacao/install \ | ||
75 | --with-java-runtime-library=openjdk \ | ||
76 | --with-java-runtime-library-prefix=$(abs_top_builddir)/openjdk \ | ||
77 | @@ -2514,7 +2518,7 @@ | ||
78 | # configure script arguments, quoted in single quotes | ||
79 | CONFIGURE_ARGS = @CONFIGURE_ARGS@ | ||
80 | ADD_ZERO_CONFIGURE_ARGS = \ | ||
81 | - --with-jdk-home=$(BUILD_OUTPUT_DIR)/j2sdk-image \ | ||
82 | + --with-jdk-home=$(abs_top_builddir)/bootstrap/jdk1.6.0 \ | ||
83 | --enable-zero | ||
84 | if ADD_SHARK_BUILD | ||
85 | ADD_ZERO_CONFIGURE_ARGS += \ | ||
86 | Index: icedtea6-1.13.3/javac.in | ||
87 | =================================================================== | ||
88 | --- icedtea6-1.13.3.orig/javac.in 2014-06-09 21:46:36.640603938 +0200 | ||
89 | +++ icedtea6-1.13.3/javac.in 2014-06-09 21:46:36.636603946 +0200 | ||
90 | @@ -40,7 +40,7 @@ | ||
91 | { | ||
92 | my @new_args = @{$_[0]}; | ||
93 | |||
94 | - for my $opt (NO_DUP_ARGS) | ||
95 | + for my $opt (NO_DUP_ARGS) | ||
96 | { | ||
97 | my @indices = reverse grep {$new_args[$_] eq $opt} 0..$#new_args; | ||
98 | if (@indices > 1) { | ||
99 | @@ -49,7 +49,7 @@ | ||
100 | } | ||
101 | } | ||
102 | |||
103 | - for my $opt (STRIP_ARGS) | ||
104 | + for my $opt (STRIP_ARGS) | ||
105 | { | ||
106 | my @indices = reverse grep {$new_args[$_] eq $opt} 0..$#new_args; | ||
107 | splice @new_args, $_, 1 for @indices; | ||
108 | @@ -91,7 +91,10 @@ | ||
109 | my @CLASSPATH = ('@ECJ_JAR@'); | ||
110 | push @CLASSPATH, split /:/, $ENV{"CLASSPATH"} if exists $ENV{"CLASSPATH"}; | ||
111 | $ENV{"CLASSPATH"} = join ':', @CLASSPATH; | ||
112 | - exec '@JAVA@', @$vm_args, 'org.eclipse.jdt.internal.compiler.batch.Main', @ecj_parms, @$javac_args; | ||
113 | + | ||
114 | + # Compiling hotspot-tools consumes tons of memory and exceeds any default | ||
115 | + # limits for jamvm and cacao. | ||
116 | + exec '@JAVA@', '-Xmx1024m', @$vm_args, 'org.eclipse.jdt.internal.compiler.batch.Main', @ecj_parms, @$javac_args; | ||
117 | } | ||
118 | else | ||
119 | { | ||