From f9f1643eadd6a812904e36a1397cf66ce58ff493 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 26 Aug 2015 21:32:45 +0100 Subject: byacc: fix compilation on Ubuntu 14.04 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. (From OE-Core rev: f906c5eb722de07eb09858fd058eb7e20103df71) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/recipes-extended/byacc/byacc.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'meta/recipes-extended/byacc/byacc.inc') diff --git a/meta/recipes-extended/byacc/byacc.inc b/meta/recipes-extended/byacc/byacc.inc index fae9e2504a..f9f8d6b5f0 100644 --- a/meta/recipes-extended/byacc/byacc.inc +++ b/meta/recipes-extended/byacc/byacc.inc @@ -5,7 +5,9 @@ programming language." SECTION = "devel" LICENSE = "PD" -SRC_URI = "ftp://invisible-island.net/byacc/byacc-${PV}.tgz" +SRC_URI = "ftp://invisible-island.net/byacc/byacc-${PV}.tgz \ + file://byacc-open.patch" + EXTRA_OECONF += "--program-transform-name='s,^,b,'" BBCLASSEXTEND = "native" -- cgit v1.2.3-54-g00ecf