From c857e94fbfc6228eb62415c816b5b81b9806c2f5 Mon Sep 17 00:00:00 2001 From: John Williams Date: Mon, 11 Mar 2013 22:50:12 -0700 Subject: Remove -wno-vla to build on ancient RHEL Signed-off-by: John Williams --- recipes-devtools/dpkg/dpkg_1.15.8.7.bbappend | 6 ++++++ recipes-devtools/dpkg/files/no-vla-warning.patch | 12 ++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 recipes-devtools/dpkg/dpkg_1.15.8.7.bbappend create mode 100644 recipes-devtools/dpkg/files/no-vla-warning.patch diff --git a/recipes-devtools/dpkg/dpkg_1.15.8.7.bbappend b/recipes-devtools/dpkg/dpkg_1.15.8.7.bbappend new file mode 100644 index 00000000..dc66de5f --- /dev/null +++ b/recipes-devtools/dpkg/dpkg_1.15.8.7.bbappend @@ -0,0 +1,6 @@ +PRINC = "1" + +FILESEXTRAPATHS_prepend := "${THISDIR}/files" + +SRC_URI += "file://no-vla-warning.patch" + diff --git a/recipes-devtools/dpkg/files/no-vla-warning.patch b/recipes-devtools/dpkg/files/no-vla-warning.patch new file mode 100644 index 00000000..1539d8de --- /dev/null +++ b/recipes-devtools/dpkg/files/no-vla-warning.patch @@ -0,0 +1,12 @@ +diff -Naur dpkg-1.15.8.7/m4/dpkg-compiler.m4 tmp/m4/dpkg-compiler.m4 +--- dpkg-1.15.8.7/m4/dpkg-compiler.m4 2010-12-19 17:25:34.000000000 -0800 ++++ tmp/m4/dpkg-compiler.m4 2013-03-11 22:27:10.000000000 -0700 +@@ -13,7 +13,7 @@ + + WFLAGS="-Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers \ + -Wmissing-declarations -Wmissing-format-attribute \ +- -Wvla -Winit-self -Wwrite-strings -Wcast-align -Wshadow" ++ -Winit-self -Wwrite-strings -Wcast-align -Wshadow" + WCFLAGS="-Wdeclaration-after-statement -Wnested-externs -Wbad-function-cast \ + -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition" + # Temporarily here until #542031 gets fixed in ncurses -- cgit v1.2.3-54-g00ecf