summaryrefslogtreecommitdiffstats
path: root/package/acl
diff options
context:
space:
mode:
authorHollis Blanchard <hollis_blanchard@mentor.com>2018-07-30 15:02:18 -0700
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-07-31 21:50:03 +0200
commita957cdfbb69d094cf17909eee64cd11dafdc84ab (patch)
tree6f71ffdf80157989c5c60a7ef7cd7ec1c0b8d745 /package/acl
parentf910320143c12b9bed27733640e4c5441afe0f32 (diff)
downloadbuildroot-a957cdfbb69d094cf17909eee64cd11dafdc84ab.tar.gz
buildroot-a957cdfbb69d094cf17909eee64cd11dafdc84ab.zip
acl: build fix with GCC 4.4.7
The acl source code uses pragmas inside functions, which is not supported by gcc 4.4, still in use in older distributions. This commit adds a patch that drops such pragma. Indeed, this acl is not built with -Werror, the warning removals are not that important. Signed-off-by: Hollis Blanchard <hollis_blanchard@mentor.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/acl')
-rw-r--r--package/acl/0001-Build-with-old-GCC-versions.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/package/acl/0001-Build-with-old-GCC-versions.patch b/package/acl/0001-Build-with-old-GCC-versions.patch
new file mode 100644
index 0000000000..a05ff5d9d3
--- /dev/null
+++ b/package/acl/0001-Build-with-old-GCC-versions.patch
@@ -0,0 +1,32 @@
+From a42519dceef0493ece45538375ae1791313f16d3 Mon Sep 17 00:00:00 2001
+From: Hollis Blanchard <hollis_blanchard@mentor.com>
+Date: Mon, 30 Jul 2018 14:29:46 -0700
+Subject: [PATCH] Remove pragmas inside functions
+
+GCC 4.4.7, as found in RHEL6, reports:
+ libacl/acl_from_text.c:307: error: #pragma GCC diagnostic not allowed inside functions
+
+Signed-off-by: Hollis Blanchard <hollis_blanchard@mentor.com>
+---
+ libacl/acl_from_text.c | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/libacl/acl_from_text.c b/libacl/acl_from_text.c
+index 09790c9..fb6bc07 100644
+--- a/libacl/acl_from_text.c
++++ b/libacl/acl_from_text.c
+@@ -304,11 +304,8 @@ parse_acl_entry(const char **text_p, acl_t *acl_p)
+ create_entry:
+ if (acl_create_entry(acl_p, &entry_d) != 0)
+ return -1;
+-#pragma GCC diagnostic push
+-#pragma GCC diagnostic ignored "-Waddress"
+ if (acl_copy_entry(entry_d, int2ext(&entry_obj)) != 0)
+ return -1;
+-#pragma GCC diagnostic pop
+ return 0;
+
+ fail:
+--
+2.13.0
+
OpenPOWER on IntegriCloud