diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2014-01-21 18:22:21 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-21 10:33:08 +0000 |
commit | ed9dca641707fe8ee109317194308b7aa87f1595 (patch) | |
tree | 07c998f224c864bd18421ea3781b002fac4d4ce4 /meta | |
parent | c81d3ad1e3e3cc4cb18ca520b49c147edae23cd8 (diff) | |
download | poky-ed9dca641707fe8ee109317194308b7aa87f1595.tar.gz |
guile: don't use the identifier 'noreturn'
Fix the build error of autogen-native which depends on guile-native:
ysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:40:24: error: expected ')' before '__attribute__'
sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:40:24: error: expected ',' or ';' before ')' token
sysroots/x86_64-linux/usr/include/guile/2.0/libguile/error.h:42:27: error: expected ')' before '__attribute__'
[YOCTO #5743]
(From OE-Core rev: 05d226bee199e9d45f0bb6143d3a78f3f2e93186)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/guile/files/guile_2.0.9_fix_noreturn.patch | 65 | ||||
-rw-r--r-- | meta/recipes-devtools/guile/guile_2.0.9.bb | 1 |
2 files changed, 66 insertions, 0 deletions
diff --git a/meta/recipes-devtools/guile/files/guile_2.0.9_fix_noreturn.patch b/meta/recipes-devtools/guile/files/guile_2.0.9_fix_noreturn.patch new file mode 100644 index 0000000000..3f65dce72c --- /dev/null +++ b/meta/recipes-devtools/guile/files/guile_2.0.9_fix_noreturn.patch | |||
@@ -0,0 +1,65 @@ | |||
1 | From 36c40440078c005cd5e239cca487d29f6f60007d Mon Sep 17 00:00:00 2001 | ||
2 | From: Mark H Weaver <mhw@netris.org> | ||
3 | Date: Mon, 4 Nov 2013 19:41:52 -0500 | ||
4 | Subject: [PATCH] Don't use the identifier 'noreturn'. | ||
5 | |||
6 | Fixes <http://bugs.gnu.org/15798>. | ||
7 | Reported by Matt Sicker <boards@gmail.com>. | ||
8 | |||
9 | * libguile/__scm.h (SCM_NORETURN): Use ((__noreturn__)) instead of | ||
10 | ((noreturn)). | ||
11 | |||
12 | * libguile/throw.h (scm_ithrow): Rename formal parameter from 'noreturn' | ||
13 | to 'no_return'. | ||
14 | |||
15 | * libguile/throw.c (scm_ithrow): Rename formal parameter from 'noreturn' | ||
16 | to 'no_return'. | ||
17 | --- | ||
18 | libguile/__scm.h | 2 +- | ||
19 | libguile/throw.c | 2 +- | ||
20 | libguile/throw.h | 2 +- | ||
21 | 3 files changed, 3 insertions(+), 3 deletions(-) | ||
22 | |||
23 | Upstream-Status: Backport | ||
24 | |||
25 | diff --git a/libguile/__scm.h b/libguile/__scm.h | ||
26 | index ed35d53..a0b02b6 100644 | ||
27 | --- a/libguile/__scm.h | ||
28 | +++ b/libguile/__scm.h | ||
29 | @@ -77,7 +77,7 @@ | ||
30 | * 1) int foo (char arg) SCM_NORETURN; | ||
31 | */ | ||
32 | #ifdef __GNUC__ | ||
33 | -#define SCM_NORETURN __attribute__ ((noreturn)) | ||
34 | +#define SCM_NORETURN __attribute__ ((__noreturn__)) | ||
35 | #else | ||
36 | #define SCM_NORETURN | ||
37 | #endif | ||
38 | diff --git a/libguile/throw.c b/libguile/throw.c | ||
39 | index 9c29351..7fc9edf 100644 | ||
40 | --- a/libguile/throw.c | ||
41 | +++ b/libguile/throw.c | ||
42 | @@ -436,7 +436,7 @@ scm_handle_by_throw (void *handler_data SCM_UNUSED, SCM tag, SCM args) | ||
43 | } | ||
44 | |||
45 | SCM | ||
46 | -scm_ithrow (SCM key, SCM args, int noreturn SCM_UNUSED) | ||
47 | +scm_ithrow (SCM key, SCM args, int no_return SCM_UNUSED) | ||
48 | { | ||
49 | return scm_throw (key, args); | ||
50 | } | ||
51 | diff --git a/libguile/throw.h b/libguile/throw.h | ||
52 | index 6cf6790..62592d2 100644 | ||
53 | --- a/libguile/throw.h | ||
54 | +++ b/libguile/throw.h | ||
55 | @@ -79,7 +79,7 @@ SCM_API int scm_exit_status (SCM args); | ||
56 | SCM_API SCM scm_catch_with_pre_unwind_handler (SCM tag, SCM thunk, SCM handler, SCM lazy_handler); | ||
57 | SCM_API SCM scm_catch (SCM tag, SCM thunk, SCM handler); | ||
58 | SCM_API SCM scm_with_throw_handler (SCM tag, SCM thunk, SCM handler); | ||
59 | -SCM_API SCM scm_ithrow (SCM key, SCM args, int noreturn); | ||
60 | +SCM_API SCM scm_ithrow (SCM key, SCM args, int no_return); | ||
61 | |||
62 | SCM_API SCM scm_throw (SCM key, SCM args); | ||
63 | SCM_INTERNAL void scm_init_throw (void); | ||
64 | -- | ||
65 | 1.7.2.5 | ||
diff --git a/meta/recipes-devtools/guile/guile_2.0.9.bb b/meta/recipes-devtools/guile/guile_2.0.9.bb index 9845682c0e..e1504bbdfa 100644 --- a/meta/recipes-devtools/guile/guile_2.0.9.bb +++ b/meta/recipes-devtools/guile/guile_2.0.9.bb | |||
@@ -19,6 +19,7 @@ SRC_URI = "${GNU_MIRROR}/guile/guile-${PV}.tar.xz \ | |||
19 | file://opensuse/guile-64bit.patch \ | 19 | file://opensuse/guile-64bit.patch \ |
20 | file://guile_2.0.6_fix_sed_error.patch \ | 20 | file://guile_2.0.6_fix_sed_error.patch \ |
21 | file://arm_endianness.patch \ | 21 | file://arm_endianness.patch \ |
22 | file://guile_2.0.9_fix_noreturn.patch \ | ||
22 | " | 23 | " |
23 | 24 | ||
24 | # file://debian/0001-Change-guile-to-guile-X.Y-for-info-pages.patch | 25 | # file://debian/0001-Change-guile-to-guile-X.Y-for-info-pages.patch |