diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-07-14 18:55:37 -0700 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-07-24 18:57:36 +0200 |
commit | 83814ebd809f2686a5580bf4e73e31a6607c9340 (patch) | |
tree | e55b6fac59cdc3f6226b337d0cc6b037f7f93f59 /meta-gnome/recipes-gnome/metacity | |
parent | 92d9eabbf6b0f866f2402be5cdedddb25a55163a (diff) | |
download | meta-openembedded-83814ebd809f2686a5580bf4e73e31a6607c9340.tar.gz |
metacity: Fix build with musl by defining _GNU_SOURCE
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-gnome/recipes-gnome/metacity')
-rw-r--r-- | meta-gnome/recipes-gnome/metacity/metacity/0001-ui-Define-_GNU_SOURCE.patch | 27 | ||||
-rw-r--r-- | meta-gnome/recipes-gnome/metacity/metacity_2.34.13.bb | 5 |
2 files changed, 31 insertions, 1 deletions
diff --git a/meta-gnome/recipes-gnome/metacity/metacity/0001-ui-Define-_GNU_SOURCE.patch b/meta-gnome/recipes-gnome/metacity/metacity/0001-ui-Define-_GNU_SOURCE.patch new file mode 100644 index 000000000..539d756b3 --- /dev/null +++ b/meta-gnome/recipes-gnome/metacity/metacity/0001-ui-Define-_GNU_SOURCE.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From e7fd072f0df968f342878b77098e97ff07ed28d7 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 14 Jul 2017 10:26:31 -0700 | ||
4 | Subject: [PATCH] ui: Define _GNU_SOURCE | ||
5 | |||
6 | it becomes portable across musl and glibc | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | src/ui/theme.c | 1 + | ||
11 | 1 file changed, 1 insertion(+) | ||
12 | |||
13 | diff --git a/src/ui/theme.c b/src/ui/theme.c | ||
14 | index 84b57a0..c7eafc8 100644 | ||
15 | --- a/src/ui/theme.c | ||
16 | +++ b/src/ui/theme.c | ||
17 | @@ -60,6 +60,7 @@ | ||
18 | #include <gtk/gtk.h> | ||
19 | #include <string.h> | ||
20 | #include <stdlib.h> | ||
21 | +#define _GNU_SOURCE | ||
22 | #define __USE_XOPEN | ||
23 | #include <math.h> | ||
24 | |||
25 | -- | ||
26 | 2.13.3 | ||
27 | |||
diff --git a/meta-gnome/recipes-gnome/metacity/metacity_2.34.13.bb b/meta-gnome/recipes-gnome/metacity/metacity_2.34.13.bb index 662c90db8..370de7000 100644 --- a/meta-gnome/recipes-gnome/metacity/metacity_2.34.13.bb +++ b/meta-gnome/recipes-gnome/metacity/metacity_2.34.13.bb | |||
@@ -13,7 +13,10 @@ REQUIRED_DISTRO_FEATURES = "x11" | |||
13 | 13 | ||
14 | GNOME_COMPRESS_TYPE = "xz" | 14 | GNOME_COMPRESS_TYPE = "xz" |
15 | 15 | ||
16 | SRC_URI += "file://remove-yelp-help-rules-var.patch" | 16 | SRC_URI = "${GNOME_MIRROR}/${GNOMEBN}/${@gnome_verdir("${PV}")}/${GNOMEBN}-${PV}.tar.${GNOME_COMPRESS_TYPE};name=archive \ |
17 | file://remove-yelp-help-rules-var.patch \ | ||
18 | file://0001-ui-Define-_GNU_SOURCE.patch \ | ||
19 | " | ||
17 | SRC_URI[archive.md5sum] = "6d89b71672d4fa49fc87f83d610d0ef6" | 20 | SRC_URI[archive.md5sum] = "6d89b71672d4fa49fc87f83d610d0ef6" |
18 | SRC_URI[archive.sha256sum] = "8cf4dbf0da0a6f36357ce7db7f829ec685908a7792453c662fb8184572b91075" | 21 | SRC_URI[archive.sha256sum] = "8cf4dbf0da0a6f36357ce7db7f829ec685908a7792453c662fb8184572b91075" |
19 | 22 | ||