diff options
-rw-r--r-- | meta/recipes-extended/byacc/byacc.inc | 4 | ||||
-rw-r--r-- | meta/recipes-extended/byacc/byacc/byacc-open.patch | 13 |
2 files changed, 16 insertions, 1 deletions
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" diff --git a/meta/recipes-extended/byacc/byacc/byacc-open.patch b/meta/recipes-extended/byacc/byacc/byacc-open.patch new file mode 100644 index 0000000000..9160543400 --- /dev/null +++ b/meta/recipes-extended/byacc/byacc/byacc-open.patch @@ -0,0 +1,13 @@ +diff --git a/main.c b/main.c +index 620ce3f..82071a4 100644 +--- a/main.c ++++ b/main.c +@@ -526,7 +526,7 @@ my_mkstemp(char *temp) + } + if ((name = tempnam(dname, fname)) != 0) + { +- fd = open(name, O_CREAT | O_EXCL | O_RDWR); ++ fd = open(name, O_CREAT | O_EXCL | O_RDWR, 0666); + strcpy(temp, name); + } + else |