diff options
Diffstat (limited to 'meta/recipes-extended')
-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." | |||
5 | SECTION = "devel" | 5 | SECTION = "devel" |
6 | LICENSE = "PD" | 6 | LICENSE = "PD" |
7 | 7 | ||
8 | SRC_URI = "ftp://invisible-island.net/byacc/byacc-${PV}.tgz" | 8 | SRC_URI = "ftp://invisible-island.net/byacc/byacc-${PV}.tgz \ |
9 | file://byacc-open.patch" | ||
10 | |||
9 | EXTRA_OECONF += "--program-transform-name='s,^,b,'" | 11 | EXTRA_OECONF += "--program-transform-name='s,^,b,'" |
10 | 12 | ||
11 | BBCLASSEXTEND = "native" | 13 | 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 @@ | |||
1 | diff --git a/main.c b/main.c | ||
2 | index 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 | ||