Skip to contentSkip to conversation

patches for openjdk-6

PATCH New [email protected] 1 participant 5 messages Jan 21, 2015

lore
Share & tools
lore
#0 lore raw

cover patches for openjdk-6

From: Ting Liu <[email protected]>

Based on the below commit:
c600dd3 icedtea: openjdk: Remove currency data generation expiration date

Ting Liu (4):
openjdk-6: Remove currency data generation expiration date
openjdk-6: pass option --disable-system-lcms
openjdk-6: do not run gamma test for cross compiles
README: correct openjdk-6-jre version

 README                                             |  2 +-
 ...njdk-remove-currency-data-generation-expi.patch | 25 ++++++++++++++++++++++
 recipes-core/openjdk/openjdk-6-common.inc          |  1 +
 recipes-core/openjdk/openjdk-6-release-6b32.inc    |  9 ++++++++
 4 files changed, 36 insertions(+), 1 deletion(-)
 create mode 100644 recipes-core/openjdk/openjdk-6-6b32/icedtea-openjdk-remove-currency-data-generation-expi.patch
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/4 openjdk-6: Remove currency data generation expiration date

From: Ting Liu <[email protected]>

As the openjdk source was extracted during 'make patch-ecj' in do_configure, apply the patch via do_configure_append.

icedtea6-1.13.4/Makefile.am:1200:stamps/extract-openjdk.stamp: stamps/download.stamp

| if OPENJDK_SRC_DIR_FOUND
|         if ! test -d openjdk ; then \
|           cp -pPR $(OPENJDK_SRC_DIR_LINK) $(OPENJDK_SRC_DIR) openjdk ; \
|         fi
| else
| if USE_HG
|         if ! test -d openjdk ; then \
|           cp -pPRl openjdk.hg openjdk ; \
|         fi
| else
|         set -e ; \
|         if ! test -d openjdk ; \
|         then \
|           mkdir openjdk ; \
|           $(TAR) xf $(OPENJDK_SRC_ZIP) -C openjdk; \
|           chmod -R ug+w openjdk ; \
|           sh $(abs_top_srcdir)/fsg.sh ; \
|         fi
| endif
| endif
---
 ...njdk-remove-currency-data-generation-expi.patch | 25 ++++++++++++++++++++++
 recipes-core/openjdk/openjdk-6-release-6b32.inc    |  8 +++++++
 2 files changed, 33 insertions(+)
 create mode 100644 recipes-core/openjdk/openjdk-6-6b32/icedtea-openjdk-remove-currency-data-generation-expi.patch
recipes-core/openjdk/openjdk-6-6b32/icedtea-openjdk-remove-currency-data-generation-expi.patch new file +25 -0
new file mode 100644
index 0000000..6dd36af
@@ -0,0 +1,25 @@
+From 7df2fd1014a0c31f518be4f6a0018533f469d584 Mon Sep 17 00:00:00 2001
+From: Alex Gonzalez <[email protected]>
+Date: Wed, 31 Dec 2014 16:07:32 +0100
+Subject: [PATCH] icedtea: openjdk: remove currency data generation expiration
+ date
+
+Signed-off-by: Alex Gonzalez <[email protected]>
+---
+ .../src/build/tools/generatecurrencydata/GenerateCurrencyData.java     | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git openjdk/jdk/make/tools/src/build/tools/generatecurrencydata/GenerateCurrencyData.java openjdk/jdk/make/tools/src/build/tools/generatecurrencydata/GenerateCurrencyData.java
+index bf335fa22c1d..0e421360fef9 100644
+--- openjdk/jdk/make/tools/src/build/tools/generatecurrencydata/GenerateCurrencyData.java
++++ openjdk/jdk/make/tools/src/build/tools/generatecurrencydata/GenerateCurrencyData.java
+@@ -281,9 +281,6 @@ public class GenerateCurrencyData {
+             checkCurrencyCode(newCurrency);
+             String timeString = currencyInfo.substring(4, length - 4);
+             long time = format.parse(timeString).getTime();
+-            if (Math.abs(time - System.currentTimeMillis()) > ((long) 10) * 365 * 24 * 60 * 60 * 1000) {
+-                throw new RuntimeException("time is more than 10 years from present: " + time);
+-            }
+             specialCaseCutOverTimes[specialCaseCount] = time;
+             specialCaseOldCurrencies[specialCaseCount] = oldCurrency;
+             specialCaseOldCurrenciesDefaultFractionDigits[specialCaseCount] = getDefaultFractionDigits(oldCurrency);
recipes-core/openjdk/openjdk-6-release-6b32.inc +8 -0
index fb7fb35..bf5e675 100644
@@ -4,12 +4,20 @@ DEPENDS += "krb5"
 
 FILESPATH =. "${FILE_DIRNAME}/openjdk-6-6b32:"
 
+ICEDTEAPATCHES += "file://icedtea-openjdk-remove-currency-data-generation-expi.patch;apply=no"
+
 EXTRA_OECONF += "--disable-downloading \
                  --enable-system-zlib \
                  --enable-system-jpeg \
                  --enable-system-png \
                  --enable-system-gif \
                 "
+do_configure_append () {
+    patch -p0 <${WORKDIR}/icedtea-openjdk-remove-currency-data-generation-expi.patch
+    cd openjdk-ecj
+    patch -p1 <${WORKDIR}/icedtea-openjdk-remove-currency-data-generation-expi.patch
+    cd ..
+}
 
 OPENJDK_VERSION = "b32"
 OPENJDK_DATE = "15_jul_2014"
Signature · 1 line
1.9.1
#2 lore raw

PATCH 2/4 openjdk-6: pass option --disable-system-lcms

In reply to [email protected]

From: Ting Liu <[email protected]>

Fix the below issue:

| checking whether to enable the use of LCMS2... yes
| checking whether to use the system LCMS install... yes
| checking for LCMS2... no
| configure: error: Could not find LCMS >= 2.5; install it or build with --disable-system-lcms to use the in-tree copy.
| Configure failed. The contents of all config.log files follows to aid debugging
| ERROR: oe_runconf failed
---
 recipes-core/openjdk/openjdk-6-release-6b32.inc | 1 +
 1 file changed, 1 insertion(+)
recipes-core/openjdk/openjdk-6-release-6b32.inc +1 -0
index bf5e675..f49048d 100644
@@ -11,6 +11,7 @@ EXTRA_OECONF += "--disable-downloading \
                  --enable-system-jpeg \
                  --enable-system-png \
                  --enable-system-gif \
+                 --disable-system-lcms \
                 "
 do_configure_append () {
     patch -p0 <${WORKDIR}/icedtea-openjdk-remove-currency-data-generation-expi.patch
Signature · 1 line
1.9.1
#3 lore raw

PATCH 3/4 openjdk-6: do not run gamma test for cross compiles

In reply to [email protected]

From: Ting Liu <[email protected]>

set CROSS_COMPILE_ARCH which will be checked before run gamma test.

Fix the below issue:

| make[6]: Leaving directory `.../openjdk-6-jre/6b32-1.13.4-r22.0/build/openjdk.build/hotspot/outputdir/linux_ppc64_zero/product'
| cd linux_ppc64_zero/product && ./test_gamma
| ./test_gamma: line 72: ./gamma: cannot execute binary file
| make[5]: *** [productzero] Error 126
---
 recipes-core/openjdk/openjdk-6-common.inc | 1 +
 1 file changed, 1 insertion(+)
recipes-core/openjdk/openjdk-6-common.inc +1 -0
index 4254c9f..7ad7097 100644
@@ -167,6 +167,7 @@ EXTRA_OEMAKE += ' \
                 OE_CXXFLAGS="${TARGET_CXXFLAGS}" \
                 OE_LDFLAGS="${TARGET_LDFLAGS}" \
                 ZIPEXE="${STAGING_BINDIR_NATIVE}/zip" \
+                CROSS_COMPILE_ARCH="${JDK_ARCH}" \
                '
 
 OE_LAUNCHER_LDFLAGS = "-Wl,-rpath-link,${STAGING_LIBDIR}/llvm${WANT_LLVM_RELEASE} -Wl,-rpath,/usr/lib/llvm${WANT_LLVM_RELEASE}"
Signature · 1 line
1.9.1
#4 lore raw

PATCH 4/4 README: correct openjdk-6-jre version

In reply to [email protected]

From: Ting Liu <[email protected]>

---
 README | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
README +1 -1
index 623e7c4..3a02fa2 100644
@@ -62,7 +62,7 @@ PREFERRED_PROVIDER_virtual/javac-native = "ecj-bootstrap-native"
 For openjdk6:
 PREFERRED_VERSION_openjdk-6-jre = "6b24-1.11.9"
 or
-PREFERRED_VERSION_openjdk-6-jre = "6b27-1.13.4"
+PREFERRED_VERSION_openjdk-6-jre = "6b32-1.13.4"
 PREFERRED_VERSION_icedtea6-native = "1.8.11"
 
 For openjdk7:
Signature · 1 line
1.9.1