Skip to contentSkip to conversation

openjdk-7: ignore the readdir_r deprecation already ignored in openjdk-8

PATCH In review Cody P Schafer 1 participant 2 messages Nov 18, 2016 – Nov 29, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 openjdk-7: ignore the readdir_r deprecation already ignored in openjdk-8

Without this, icedtea7-native (used to bootstrap openjdk) fails to build on my host system due to deprecation warnings being treated as errors.

I haven't observed the same issue with openjdk-7 itself, but it seems likely to affect it as well, so I've added the -Wno-error flag there too.

---
 recipes-core/icedtea/openjdk-7-release-03b147.inc | 4 ++++
 recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb     | 4 ++++
 2 files changed, 8 insertions(+)
recipes-core/icedtea/openjdk-7-release-03b147.inc +4 -0
index 0685729..fe18ee5 100644
@@ -113,3 +113,7 @@ export DISTRIBUTION_PATCHES = " \
 	patches/icedtea-jdk-unzip.patch \
 	${CLEAN_X11_DISTRIBUTION_PATCH} \
         "
+
+# 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"
recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb +4 -0
index 711f572..eba353e 100644
@@ -64,3 +64,7 @@ DISTRIBUTION_PATCHES = "\
 "
 
 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"
Signature · 1 line
2.10.2
#1 lore raw

ping?

Quoted 39 lines · Cody P Schafer

Without this, icedtea7-native (used to bootstrap openjdk) fails to build on my host system due to deprecation warnings being treated as errors.

I haven't observed the same issue with openjdk-7 itself, but it seems likely to affect it as well, so I've added the -Wno-error flag there too.

---
 recipes-core/icedtea/openjdk-7-release-03b147.inc | 4 ++++
 recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb     | 4 ++++
 2 files changed, 8 insertions(+)
recipes-core/icedtea/openjdk-7-release-03b147.inc +4 -0
index 0685729..fe18ee5 100644
@@ -113,3 +113,7 @@ export DISTRIBUTION_PATCHES = " \
        patches/icedtea-jdk-unzip.patch \
        ${CLEAN_X11_DISTRIBUTION_PATCH} \
         "
+
+# 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"
recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb +4 -1
index 711f572..eba353e 100644
@@ -64,3 +64,7 @@ DISTRIBUTION_PATCHES = "\
 "
 
 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"
--

2.10.2