From 3628be8901b747558b219d55b370a1f20e1dce5f Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Thu, 30 Apr 2009 08:37:18 -0700 Subject: gcc-3.4.x: Rename gcc-posix.patch to gcc-posix-open-fix.patch, put in files/ --- recipes/gcc/files/gcc-posix-open-fix.patch | 11 +++++++++++ recipes/gcc/gcc-3.4.4.inc | 2 +- recipes/gcc/gcc-3.4.4/gcc-posix.patch | 11 ----------- recipes/gcc/gcc-3.4.6.inc | 2 +- recipes/gcc/gcc-3.4.6/gcc-posix.patch | 11 ----------- 5 files changed, 13 insertions(+), 24 deletions(-) create mode 100644 recipes/gcc/files/gcc-posix-open-fix.patch delete mode 100644 recipes/gcc/gcc-3.4.4/gcc-posix.patch delete mode 100644 recipes/gcc/gcc-3.4.6/gcc-posix.patch diff --git a/recipes/gcc/files/gcc-posix-open-fix.patch b/recipes/gcc/files/gcc-posix-open-fix.patch new file mode 100644 index 0000000000..99f813e866 --- /dev/null +++ b/recipes/gcc/files/gcc-posix-open-fix.patch @@ -0,0 +1,11 @@ +--- gcc-3.4.6/gcc/collect2.c 2008-10-04 18:17:17.796750393 +0400 ++++ gcc-3.4.6/gcc/collect2.new 2008-10-04 18:24:10.120748711 +0400 +@@ -1534,7 +1534,7 @@ collect_execute (const char *prog, char + if (redir) + { + /* Open response file. */ +- redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT); ++ redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT, S_IWUSR); + + /* Duplicate the stdout and stderr file handles + so they can be restored later. */ diff --git a/recipes/gcc/gcc-3.4.4.inc b/recipes/gcc/gcc-3.4.4.inc index 0b5b714e09..2bed5f8959 100644 --- a/recipes/gcc/gcc-3.4.4.inc +++ b/recipes/gcc/gcc-3.4.4.inc @@ -22,6 +22,6 @@ SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \ file://gcc34-configure.in.patch;patch=1 \ file://gcc34-thumb-support.patch;patch=1 \ file://gcc-cross-fixincl.patch;patch=1 \ - file://gcc-posix.patch;patch=1 \ + file://gcc-posix-open-fix.patch;patch=1 \ " SRC_URI_append_fail-fast = " file://zecke-no-host-includes.patch;patch=1 " diff --git a/recipes/gcc/gcc-3.4.4/gcc-posix.patch b/recipes/gcc/gcc-3.4.4/gcc-posix.patch deleted file mode 100644 index 99f813e866..0000000000 --- a/recipes/gcc/gcc-3.4.4/gcc-posix.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- gcc-3.4.6/gcc/collect2.c 2008-10-04 18:17:17.796750393 +0400 -+++ gcc-3.4.6/gcc/collect2.new 2008-10-04 18:24:10.120748711 +0400 -@@ -1534,7 +1534,7 @@ collect_execute (const char *prog, char - if (redir) - { - /* Open response file. */ -- redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT); -+ redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT, S_IWUSR); - - /* Duplicate the stdout and stderr file handles - so they can be restored later. */ diff --git a/recipes/gcc/gcc-3.4.6.inc b/recipes/gcc/gcc-3.4.6.inc index b1f686b365..faab40623e 100644 --- a/recipes/gcc/gcc-3.4.6.inc +++ b/recipes/gcc/gcc-3.4.6.inc @@ -16,7 +16,7 @@ SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \ file://always-fixincperm.patch;patch=1 \ file://GCOV_PREFIX_STRIP-cross-profile_3.4.patch;patch=1 \ file://zecke-xgcc-cpp.patch;patch=1 \ - file://gcc-posix.patch;patch=1 \ + file://gcc-posix-open-fix.patch;patch=1 \ file://gcc4-mtune-compat.patch;patch=1" SRC_URI += "file://gcc34-configure.in.patch;patch=1" diff --git a/recipes/gcc/gcc-3.4.6/gcc-posix.patch b/recipes/gcc/gcc-3.4.6/gcc-posix.patch deleted file mode 100644 index 99f813e866..0000000000 --- a/recipes/gcc/gcc-3.4.6/gcc-posix.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- gcc-3.4.6/gcc/collect2.c 2008-10-04 18:17:17.796750393 +0400 -+++ gcc-3.4.6/gcc/collect2.new 2008-10-04 18:24:10.120748711 +0400 -@@ -1534,7 +1534,7 @@ collect_execute (const char *prog, char - if (redir) - { - /* Open response file. */ -- redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT); -+ redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT, S_IWUSR); - - /* Duplicate the stdout and stderr file handles - so they can be restored later. */ -- cgit 1.2.3-korg