]> code.ossystems Code Review - openembedded-core.git/commitdiff
byacc: add missing patch header
authorRoss Burton <ross.burton@intel.com>
Fri, 25 Sep 2015 13:35:43 +0000 (14:35 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 28 Sep 2015 10:58:23 +0000 (11:58 +0100)
meta/recipes-extended/byacc/byacc/byacc-open.patch

index 91605434009073fc1c799f33609be876f4ff61d2..005831130b3311d738fa4fa9a68fc324d04d2ca7 100644 (file)
@@ -1,3 +1,15 @@
+Ubuntu defaults to passing _FORTIFY_SOURCE=2 which breaks byacc as it doesn't
+pass enough arguments to open():
+
+ inlined from 'open_tmpfile' at byacc-20150711/main.c:588:5:
+ /usr/include/x86_64-linux-gnu/bits/fcntl2.h:50:24: error: call to '__open_missing_mode' declared with attribute error:
+ open with O_CREAT in second argument needs 3 arguments
+
+Add a mode of 0666 to fix this.
+
+Upstream-Status: Pending
+Signed-off-by: Ross Burton <ross.burton@intel.com>
+
 diff --git a/main.c b/main.c
 index 620ce3f..82071a4 100644
 --- a/main.c