diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2014-02-25 17:44:05 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-25 17:53:59 +0000 |
commit | a76ac7816931cf67beb36928c279ee9cd1fb7c0d (patch) | |
tree | 60eaf51cf59e16b4c3026580016fa5a8a088f350 /meta/recipes-devtools/dpkg | |
parent | da93a41189d5d16e5976b5cf74351d55306e0f9e (diff) | |
download | poky-a76ac7816931cf67beb36928c279ee9cd1fb7c0d.tar.gz |
dpkg-compiler.m4: remove -Wvla (fix build on CentOS 5.8)
Remove the -Wvla flag from the set of compiler warning flags, since gcc
on old host systems such as CentOS 5.8 doesn't support it, and it
causes a build error for dpkg-native.
(From OE-Core rev: 736ef878570ebe60845da88094907ad28f7b50ff)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/dpkg')
-rw-r--r-- | meta/recipes-devtools/dpkg/dpkg/no-vla-warning.patch | 32 | ||||
-rw-r--r-- | meta/recipes-devtools/dpkg/dpkg_1.17.4.bb | 1 |
2 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg/no-vla-warning.patch b/meta/recipes-devtools/dpkg/dpkg/no-vla-warning.patch new file mode 100644 index 0000000000..0e57dbc7fc --- /dev/null +++ b/meta/recipes-devtools/dpkg/dpkg/no-vla-warning.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From e94474d805377d67c8b09664a602f20969e12b8a Mon Sep 17 00:00:00 2001 | ||
2 | From: Robert Yang <liezhi.yang@windriver.com> | ||
3 | Date: Thu, 23 Jan 2014 04:17:23 -0500 | ||
4 | Subject: [PATCH] dpkg-compiler.m4: remove -Wvla | ||
5 | |||
6 | Remove the -Wvla flag from the set of compiler warning flags, since gcc | ||
7 | on old host systems such as CentOS 5.8 doesn't support it, and it | ||
8 | causes a build error for dpkg-native. | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Signed-off-by: Donn Seeley <donn.seeley@windriver.com> | ||
13 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
14 | --- | ||
15 | m4/dpkg-compiler.m4 | 1 - | ||
16 | 1 file changed, 1 deletion(-) | ||
17 | |||
18 | diff --git a/m4/dpkg-compiler.m4 b/m4/dpkg-compiler.m4 | ||
19 | index f1c760b..500b5ad 100644 | ||
20 | --- a/m4/dpkg-compiler.m4 | ||
21 | +++ b/m4/dpkg-compiler.m4 | ||
22 | @@ -72,7 +72,6 @@ if test "x$enable_compiler_warnings" = "xyes"; then | ||
23 | DPKG_WARNING_ALL([-Wformat-security]) | ||
24 | DPKG_WARNING_ALL([-Wpointer-arith]) | ||
25 | DPKG_WARNING_ALL([-Wlogical-op]) | ||
26 | - DPKG_WARNING_ALL([-Wvla]) | ||
27 | DPKG_WARNING_ALL([-Winit-self]) | ||
28 | DPKG_WARNING_ALL([-Wwrite-strings]) | ||
29 | DPKG_WARNING_ALL([-Wcast-align]) | ||
30 | -- | ||
31 | 1.7.10.4 | ||
32 | |||
diff --git a/meta/recipes-devtools/dpkg/dpkg_1.17.4.bb b/meta/recipes-devtools/dpkg/dpkg_1.17.4.bb index 5e407ba2b2..5507352a27 100644 --- a/meta/recipes-devtools/dpkg/dpkg_1.17.4.bb +++ b/meta/recipes-devtools/dpkg/dpkg_1.17.4.bb | |||
@@ -11,6 +11,7 @@ SRC_URI += "file://noman.patch \ | |||
11 | file://arch_pm.patch \ | 11 | file://arch_pm.patch \ |
12 | file://dpkg-configure.service \ | 12 | file://dpkg-configure.service \ |
13 | file://glibc2.5-sync_file_range.patch \ | 13 | file://glibc2.5-sync_file_range.patch \ |
14 | file://no-vla-warning.patch \ | ||
14 | " | 15 | " |
15 | 16 | ||
16 | SRC_URI[md5sum] = "cc25086e1e3bd9512a95f14cfe9002e1" | 17 | SRC_URI[md5sum] = "cc25086e1e3bd9512a95f14cfe9002e1" |