summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-extended/byacc/byacc.inc4
-rw-r--r--meta/recipes-extended/byacc/byacc/byacc-open.patch13
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."
5SECTION = "devel" 5SECTION = "devel"
6LICENSE = "PD" 6LICENSE = "PD"
7 7
8SRC_URI = "ftp://invisible-island.net/byacc/byacc-${PV}.tgz" 8SRC_URI = "ftp://invisible-island.net/byacc/byacc-${PV}.tgz \
9 file://byacc-open.patch"
10
9EXTRA_OECONF += "--program-transform-name='s,^,b,'" 11EXTRA_OECONF += "--program-transform-name='s,^,b,'"
10 12
11BBCLASSEXTEND = "native" 13BBCLASSEXTEND = "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 @@
1diff --git a/main.c b/main.c
2index 620ce3f..82071a4 100644
3--- a/main.c
4+++ b/main.c
5@@ -526,7 +526,7 @@ my_mkstemp(char *temp)
6 }
7 if ((name = tempnam(dname, fname)) != 0)
8 {
9- fd = open(name, O_CREAT | O_EXCL | O_RDWR);
10+ fd = open(name, O_CREAT | O_EXCL | O_RDWR, 0666);
11 strcpy(temp, name);
12 }
13 else