pkgconfig: Fix build with gcc-6 and upgrade to 0.29.1
PATCH v2 1/1 pkgconfig: Fix build with gcc-6 and upgrade to 0.29.1
From: Dan McGregor <[email protected]>
From: Daniel McGregor <[email protected]>
glib patch is backported from glib-2.0 upstream
eventually we will throw it away once pkgconfig
moves to newer glib
--- ...e-Move-warning-pragma-outside-of-function.patch | 39 ++++++++++++++++++++++ meta/recipes-devtools/pkgconfig/pkgconfig_git.bb | 6 ++-- 2 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-devtools/pkgconfig/pkgconfig/0001-gdate-Move-warning-pragma-outside-of-function.patch
meta/recipes-devtools/pkgconfig/pkgconfig/0001-gdate-Move-warning-pragma-outside-of-function.patch new file +39 -0
@@ -0,0 +1,39 @@ +From 946d36266d8a30f04fe34d3183bf4929141934d2 Mon Sep 17 00:00:00 2001 +From: coypu <[email protected]> +Date: Wed, 2 Mar 2016 19:38:48 +0200 +Subject: [PATCH] gdate: Move warning pragma outside of function + +Commit 0817af40e8c74c721c30f6ef482b1f53d12044c7 breaks the build on +older versions of GCC, which don't allow pragma inside functions. + +https://bugzilla.gnome.org/761550 +--- +Upstream-Status: Backport +Signed-off-by: Khem Raj <[email protected]> + + glib/glib/gdate.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/glib/glib/gdate.c b/glib/glib/gdate.c +index 1978cf7..20e6c4a 100644 +--- a/glib/glib/gdate.c ++++ b/glib/glib/gdate.c +@@ -2439,6 +2439,9 @@ win32_strftime_helper (const GDate *d, + * + * Returns: number of characters written to the buffer, or 0 the buffer was too small + */ ++#pragma GCC diagnostic push ++#pragma GCC diagnostic ignored "-Wformat-nonliteral" ++ + gsize + g_date_strftime (gchar *s, + gsize slen, +@@ -2549,3 +2552,5 @@ g_date_strftime (gchar *s, + return retval; + #endif + } ++ ++#pragma GCC diagnostic pop +-- +1.9.1 +
meta/recipes-devtools/pkgconfig/pkgconfig_git.bb +4 -2
@@ -12,12 +12,13 @@ DEPENDS = "glib-2.0" DEPENDS_class-native = "" DEPENDS_class-nativesdk = "" -SRCREV = "5914edfe9604abfedd220103cbac382fc4d268bb" -PV = "0.29+git${SRCPV}" +SRCREV = "87152c05be88ca8be71a3a563f275b3686d32c28" +PV = "0.29.1+git${SRCPV}" SRC_URI = "git://anongit.freedesktop.org/pkg-config \ file://pkg-config-native.in \ file://fix-glib-configure-libtool-usage.patch \ + file://0001-gdate-Move-warning-pragma-outside-of-function.patch \ " S = "${WORKDIR}/git"
@@ -27,6 +28,7 @@ inherit autotools EXTRA_OECONF = "--without-internal-glib" EXTRA_OECONF_class-native = "--with-internal-glib" EXTRA_OECONF_class-nativesdk = "--with-internal-glib" +CFLAGS_append_class-native = " -Wno-error=format-nonliteral" acpaths = "-I ."
Signature · 1 line
2.8.2
Please look into my gcc-6 branch, this is fixed with
Quoted 99 lines · On May 10, 2016, at 9:22 AM, [email protected] wrote:
From: Dan McGregor <[email protected]>
From: Daniel McGregor <[email protected]>
glib patch is backported from glib-2.0 upstream
eventually we will throw it away once pkgconfig
moves to newer glibSigned-off-by Daniel McGregor <[email protected]>Signed-off-by Khem Raj <[email protected]>---
...e-Move-warning-pragma-outside-of-function.patch | 39 ++++++++++++++++++++++
meta/recipes-devtools/pkgconfig/pkgconfig_git.bb | 6 ++--2 files changed, 43 insertions(+), 2 deletions(-)create mode 100644
meta/recipes-devtools/pkgconfig/pkgconfig/0001-gdate-Move-warning-pragma-outside-of-function.patchmeta/recipes-devtools/pkgconfig/pkgconfig/0001-gdate-Move-warning-pragma-outside-of-function.patch new file +39
-0@@ -0,0 +1,39 @@ +From 946d36266d8a30f04fe34d3183bf4929141934d2 Mon Sep 17 00:00:00 2001 +From: coypu <[email protected]> +Date: Wed, 2 Mar 2016 19:38:48 +0200 +Subject: [PATCH] gdate: Move warning pragma outside of function + +Commit 0817af40e8c74c721c30f6ef482b1f53d12044c7 breaks the build on +older versions of GCC, which don't allow pragma inside functions. + +https://bugzilla.gnome.org/761550 +--- +Upstream-Status: Backport +Signed-off-by: Khem Raj <[email protected]> + + glib/glib/gdate.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/glib/glib/gdate.c b/glib/glib/gdate.c +index 1978cf7..20e6c4a 100644 +--- a/glib/glib/gdate.c ++++ b/glib/glib/gdate.c +@@ -2439,6 +2439,9 @@ win32_strftime_helper (const GDate *d, + * + * Returns: number of characters written to the buffer, or 0 the buffer was too small + */ ++#pragma GCC diagnostic push ++#pragma GCC diagnostic ignored "-Wformat-nonliteral" ++ + gsize + g_date_strftime (gchar *s, + gsize slen, +@@ -2549,3 +2552,5 @@ g_date_strftime (gchar *s, + return retval; + #endif + } ++ ++#pragma GCC diagnostic pop +-- +1.9.1 +meta/recipes-devtools/pkgconfig/pkgconfig_git.bb +0
-0@@ -12,12 +12,13 @@ DEPENDS = "glib-2.0"DEPENDS_class-native = ""
DEPENDS_class-nativesdk = ""meta/recipes-devtools/pkgconfig/pkgconfig_git.bb +2
-2-SRCREV = "5914edfe9604abfedd220103cbac382fc4d268bb" -PV = "0.29+git${SRCPV}" +SRCREV = "87152c05be88ca8be71a3a563f275b3686d32c28" +PV = "0.29.1+git${SRCPV}"SRC_URI = "git://anongit.freedesktop.org/pkg-config \ file://pkg-config-native.in \ file://fix-glib-configure-libtool-usage.patch \ + file://0001-gdate-Move-warning-pragma-outside-of-function.patch \ "S = "${WORKDIR}/git"
meta/recipes-devtools/pkgconfig/pkgconfig_git.bb +0
-0@@ -27,6 +28,7 @@ inherit autotools
EXTRA_OECONF= "--without-internal-glib" EXTRA_OECONF_class-native = "--with-internal-glib" EXTRA_OECONF_class-nativesdk = "--with-internal-glib" +CFLAGS_append_class-native = " -Wno-error=format-nonliteral"acpaths = "-I ."
--
2.8.2--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core