gnome-desktop-testing: Fix build on uclibc
PATCH 1/1 gnome-desktop-testing: Fix build on uclibc
[YOCTO #6577]
--- ...process.c-Enable-GNU-extensions-in-system.patch | 35 ++++++++++++++++++++++ .../gnome-desktop-testing_2014.1.bb | 4 ++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-support/gnome-desktop-testing/gnome-desktop-testing/0001-gsystem-subprocess.c-Enable-GNU-extensions-in-system.patch
meta/recipes-support/gnome-desktop-testing/gnome-desktop-testing/0001-gsystem-subprocess.c-Enable-GNU-extensions-in-system.patch new file +35 -0
@@ -0,0 +1,35 @@ +From b1de2c6290bc0651fe87a8c4fb52e7a0a5fe6322 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Sun, 5 Oct 2014 16:01:49 -0700 +Subject: [PATCH] gsystem-subprocess.c: Enable GNU extensions in system C + library + +This should export O_CLOEXEC where it is only +available when _GNU_SOURCE is defined .e.g. uclibc based systems + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Pending + +--- + src/libgsystem/gsystem-subprocess.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/libgsystem/gsystem-subprocess.c b/src/libgsystem/gsystem-subprocess.c +index a967896..a52a362 100644 +--- a/src/libgsystem/gsystem-subprocess.c ++++ b/src/libgsystem/gsystem-subprocess.c +@@ -18,6 +18,10 @@ + + #include "config.h" + ++#ifndef _GNU_SOURCE ++#define _GNU_SOURCE ++#endif ++ + #define _GSYSTEM_NO_LOCAL_ALLOC + #include "libgsystem.h" + +-- +2.1.1 +
meta/recipes-support/gnome-desktop-testing/gnome-desktop-testing_2014.1.bb +3 -1
@@ -2,7 +2,9 @@ SUMMARY = "Test runner for GNOME-style installed tests" HOMEPAGE = "https://wiki.gnome.org/GnomeGoals/InstalledTests" LICENSE = "LGPLv2+" -SRC_URI = "${GNOME_MIRROR}/${BPN}/${PV}/${BPN}-${PV}.tar.xz" +SRC_URI = "${GNOME_MIRROR}/${BPN}/${PV}/${BPN}-${PV}.tar.xz \ + file://0001-gsystem-subprocess.c-Enable-GNU-extensions-in-system.patch \ + " SRC_URI[md5sum] = "a608ad72a77e23a1aecdfd8d07a94baf" SRC_URI[sha256sum] = "1a3eed73678dd22d09d6a7ec4f899557df3e8b4a802affa76d0f163b31286539"
Signature · 1 line
2.1.1
meta/recipes-support/gnome-desktop-testing/gnome-desktop-testing/0001-gsystem-subprocess.c-Enable-GNU-extensions-in-system.patch line 12
Quoted 12 lines · Khem Raj
meta/recipes-support/gnome-desktop-testing/gnome-desktop-testing/0001-gsystem-subprocess.c-Enable-GNU-extensions-in-system.patch new file +12
-0+From b1de2c6290bc0651fe87a8c4fb52e7a0a5fe6322 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Sun, 5 Oct 2014 16:01:49 -0700 +Subject: [PATCH] gsystem-subprocess.c: Enable GNU extensions in system C + library + +This should export O_CLOEXEC where it is only +available when _GNU_SOURCE is defined .e.g. uclibc based systems + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Pending
Shouldn't this be in master before backporting to daisy?
Ross
Quoted 7 lines · Ross
meta/recipes-support/gnome-desktop-testing/gnome-desktop-testing/0001-gsystem-subprocess.c-Enable-GNU-extensions-in-system.patch
Quoted 4 lines · On 6 October 2014 00:16, Khem Raj <[email protected] <javascript:;>> wrote:
meta/recipes-support/gnome-desktop-testing/gnome-desktop-testing/0001-gsystem-subprocess.c-Enable-GNU-extensions-in-system.patch new file +4
-0+From b1de2c6290bc0651fe87a8c4fb52e7a0a5fe6322 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected] <javascript:;>> +Date: Sun, 5 Oct 2014 16:01:49 -0700 +Subject: [PATCH] gsystem-subprocess.c: Enable GNU extensions in systemC
Quoted 10 lines
meta/recipes-support/gnome-desktop-testing/gnome-desktop-testing/0001-gsystem-subprocess.c-Enable-GNU-extensions-in-system.patch line 12
Quoted 8 lines
+ library
meta/recipes-support/gnome-desktop-testing/gnome-desktop-testing/0001-gsystem-subprocess.c-Enable-GNU-extensions-in-system.patch new file +7
-0+ +This should export O_CLOEXEC where it is only +available when _GNU_SOURCE is defined .e.g. uclibc based systems + +Signed-off-by: Khem Raj <[email protected] <javascript:;>> + +Upstream-Status: PendingShouldn't this be in master before backporting to daisy?
Yes. It should be in master too, I was not sure if same patch would be needed on master when I sent this one when I sent this one
Quoted 3 lines
Ross
Quoted 2 lines · Khem Raj
Yes. It should be in master too, I was not sure if same patch would be needed on master when I sent this one when I sent this one
Both master and daisy have the same release of gnome-desktop-testing, so please submit a patch to master that can then be backported to daisy.
Ross
Quoted 14 lines · Ross
Quoted 2 lines · On 6 October 2014 15:30, Khem Raj <[email protected] <javascript:;>> wrote:
Yes. It should be in master too, I was not sure if same patch would be needed on master when I sent this one when I sent this one
Both master and daisy have the same release of gnome-desktop-testing, so please submit a patch to master that can then be backported to daisy.
I dont understand. Doesn't Same patch apply to master
Ross
Quoted 1 line · Khem Raj
I dont understand. Doesn't Same patch apply to master
You know I looked at this earlier and thought it wouldn't apply. Just looked again and it was me mis-reading a patch (those - and + symbols
look so similar!). Sorry for the confusion.
Ross