Added a patch which allow to compile openjdk-7-jre (Compile transaction...error:).
PATCH 1/1 Added a patch which allow to compile openjdk-7-jre (Compile transaction...error:).
From: Pablo <[email protected]>
Signed-off-by Pablo <[email protected]>
--- .../openjdk7-avoid-compile-errors.patch | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 recipes-core/openjdk/patches-openjdk-7/openjdk7-avoid-compile-errors.patch
recipes-core/openjdk/patches-openjdk-7/openjdk7-avoid-compile-errors.patch new file +43 -0
@@ -0,0 +1,43 @@ +diff --git a/recipes-core/openjdk/openjdk-7-common.inc b/recipes-core/openjdk/openjdk-7-common.inc +index 1ac3154..9c49c39 100644 +--- a/recipes-core/openjdk/openjdk-7-common.inc ++++ b/recipes-core/openjdk/openjdk-7-common.inc +@@ -179,6 +179,8 @@ do_install() { + # runtime) + # 3) All other packages, including -jdk, are optional and not needed for normal Java apps. + PACKAGES = " \ ++ ${JDKPN}-common \ ++ ${JDKPN}-java \ + ${JDKPN}-jre \ + ${JDKPN}-jre-dbg \ + ${JDKPN}-dbg \ +@@ -187,9 +189,7 @@ PACKAGES = " \ + ${JDKPN}-source \ + ${JDKPN}-doc \ + ${JDKPN}-jdk \ +- ${JDKPN}-java \ +- ${JDKPN}-vm-zero \ +- ${JDKPN}-common \ ++ ${JDKPN}-vm-zero \ + " + + FILES_${JDKPN}-dbg = "\ +@@ -272,7 +272,7 @@ INSANE_SKIP_${JDKPN}-common = "dev-so" + + # libfreetype.so.6 is copied from STAGING_LIBDIR + # which is already stripped. +-INSANE_SKIP_${JDKPN}-jre = "already-stripped" ++INSANE_SKIP_${JDKPN}-jre = "already-stripped dev-so textrel" + + FILES_${JDKPN}-jdk = " \ + ${JDK_HOME}/bin \ +diff --git a/recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb b/recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb +index eba353e..8ebfcb6 100644 +--- a/recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb ++++ b/recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb +@@ -67,4 +67,4 @@ export DISTRIBUTION_PATCHES + + # readdir_r was deprecated in glibc-2.24. Ignore the error for now + # NOTE: When updating the recipe, please check if this is still needed +-CFLAGS_append = " -Wno-error=deprecated-declarations" ++CFLAGS_append = " -Wno-error=deprecated-declarations -Wno-error=narrowing -fpermissive"
Signature · 1 line
1.9.1