diff options
-rw-r--r-- | meta/recipes-devtools/insserv/files/161_bts777914_fix_undeclared_identifier.patch | 36 | ||||
-rw-r--r-- | meta/recipes-devtools/insserv/insserv_1.14.0.bb | 1 |
2 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-devtools/insserv/files/161_bts777914_fix_undeclared_identifier.patch b/meta/recipes-devtools/insserv/files/161_bts777914_fix_undeclared_identifier.patch new file mode 100644 index 0000000000..6ee9532a6b --- /dev/null +++ b/meta/recipes-devtools/insserv/files/161_bts777914_fix_undeclared_identifier.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | insserv (1.14.0-5.1) UNRELEASED; urgency=low | ||
4 | |||
5 | * Non-maintainer upload. | ||
6 | * moving definition of "extension" in listing.h outside of | ||
7 | an if loop with condition related to __STDC_VERSION__. | ||
8 | * I observed that this gets build with gcc-4.9.2, as for gcc | ||
9 | __STDC_VERSION__ is not defined. | ||
10 | * I got these error while using clang to build this package. | ||
11 | * I tested it with clang-3.5(__STDC_VERSION__ 199901L) and | ||
12 | clang 3.7(__STDC_VERSION__ 201112L) and getting same error | ||
13 | described in in Bug #777914. | ||
14 | |||
15 | -- Mohit Bhakkad <mohit.bhakkad@gmail.com> Sat, 04 Apr 2015 19:14:48 +0000 | ||
16 | |||
17 | insserv (1.14.0-5) unstable; urgency=low | ||
18 | |||
19 | * Add +mountall-bootclean to $local_fs virtual facility definition in | ||
20 | Index: insserv-1.14.0/listing.h | ||
21 | =================================================================== | ||
22 | --- insserv-1.14.0.orig/listing.h | ||
23 | +++ insserv-1.14.0/listing.h | ||
24 | @@ -47,9 +47,9 @@ typedef unsigned int uint; | ||
25 | # ifndef asm | ||
26 | # define asm __asm__ | ||
27 | # endif | ||
28 | -# ifndef extension | ||
29 | -# define extension __extension__ | ||
30 | -# endif | ||
31 | +#endif | ||
32 | +#ifndef extension | ||
33 | +# define extension __extension__ | ||
34 | #endif | ||
35 | #ifndef attribute | ||
36 | # define attribute(attr) __attribute__(attr) | ||
diff --git a/meta/recipes-devtools/insserv/insserv_1.14.0.bb b/meta/recipes-devtools/insserv/insserv_1.14.0.bb index 4a33e16912..b66e98b49f 100644 --- a/meta/recipes-devtools/insserv/insserv_1.14.0.bb +++ b/meta/recipes-devtools/insserv/insserv_1.14.0.bb | |||
@@ -11,6 +11,7 @@ PR = "r1" | |||
11 | SRC_URI = "ftp://ftp.suse.com/pub/projects/init/${BPN}-${PV}.tar.bz2 \ | 11 | SRC_URI = "ftp://ftp.suse.com/pub/projects/init/${BPN}-${PV}.tar.bz2 \ |
12 | file://makefile.patch \ | 12 | file://makefile.patch \ |
13 | file://disable_runtests.patch \ | 13 | file://disable_runtests.patch \ |
14 | file://161_bts777914_fix_undeclared_identifier.patch \ | ||
14 | file://insserv.conf \ | 15 | file://insserv.conf \ |
15 | file://run-ptest \ | 16 | file://run-ptest \ |
16 | " | 17 | " |