* [meta-java][PATCH] openjdk-7: ignore the readdir_r deprecation already ignored in openjdk-8
@ 2016-11-18 15:25 Cody P Schafer
2016-11-29 16:49 ` Cody P Schafer
0 siblings, 1 reply; 2+ messages in thread
From: Cody P Schafer @ 2016-11-18 15:25 UTC (permalink / raw)
To: openembedded-devel
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.
Signed-off-by: Cody P Schafer <dev@codyps.com>
---
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(+)
diff --git a/recipes-core/icedtea/openjdk-7-release-03b147.inc b/recipes-core/icedtea/openjdk-7-release-03b147.inc
index 0685729..fe18ee5 100644
--- a/recipes-core/icedtea/openjdk-7-release-03b147.inc
+++ b/recipes-core/icedtea/openjdk-7-release-03b147.inc
@@ -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"
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 711f572..eba353e 100644
--- a/recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb
+++ b/recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb
@@ -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
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [meta-java][PATCH] openjdk-7: ignore the readdir_r deprecation already ignored in openjdk-8
2016-11-18 15:25 [meta-java][PATCH] openjdk-7: ignore the readdir_r deprecation already ignored in openjdk-8 Cody P Schafer
@ 2016-11-29 16:49 ` Cody P Schafer
0 siblings, 0 replies; 2+ messages in thread
From: Cody P Schafer @ 2016-11-29 16:49 UTC (permalink / raw)
To: openembedded-devel; +Cc: Otavio Salvador, Mario Domenech Goulart
ping?
On Fri, Nov 18, 2016 at 10:25 AM, Cody P Schafer <dev@codyps.com> wrote:
> 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.
>
> Signed-off-by: Cody P Schafer <dev@codyps.com>
> ---
> 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(+)
>
> diff --git a/recipes-core/icedtea/openjdk-7-release-03b147.inc b/recipes-core/icedtea/openjdk-7-release-03b147.inc
> index 0685729..fe18ee5 100644
> --- a/recipes-core/icedtea/openjdk-7-release-03b147.inc
> +++ b/recipes-core/icedtea/openjdk-7-release-03b147.inc
> @@ -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"
> 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 711f572..eba353e 100644
> --- a/recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb
> +++ b/recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb
> @@ -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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-11-29 16:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-18 15:25 [meta-java][PATCH] openjdk-7: ignore the readdir_r deprecation already ignored in openjdk-8 Cody P Schafer
2016-11-29 16:49 ` Cody P Schafer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox