[oe-commits] woglinde : gcc: fix open() with O_CREATE for version 3.4.3 and 3.4.6

GIT User account git at amethyst.openembedded.net
Sun Nov 2 17:39:16 UTC 2008


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 8b2452efc012786d33b4b1d702e2c7c593aecc7c
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=8b2452efc012786d33b4b1d702e2c7c593aecc7c

Author: woglinde <heinold at inf.fu-berlin.de>
Date:   Sun Nov  2 18:34:21 2008 +0100

gcc: fix open() with O_CREATE for version 3.4.3 and 3.4.6
* on ubuntu the compiler starting with intreprid yells
  at using open() with O_CREATE and not settinge a
  proper filecreationmask
* closes bug 4626 reported by Vladimir Bondar with
  a modified patch
* bump PR on all .bb which are needing it

---

 packages/gcc/gcc-3.4.4.inc             |    1 +
 packages/gcc/gcc-3.4.4/gcc-posix.patch |   11 +++++++++++
 packages/gcc/gcc-3.4.6.inc             |    1 +
 packages/gcc/gcc-3.4.6/gcc-posix.patch |   11 +++++++++++
 packages/gcc/gcc-cross-sdk_3.4.4.bb    |    2 +-
 packages/gcc/gcc-cross_3.4.4.bb        |    2 +-
 packages/gcc/gcc-native_3.4.4.bb       |    2 +-
 packages/gcc/gcc-native_3.4.6.bb       |    2 +-
 packages/gcc/gcc_3.4.4.bb              |    2 +-
 9 files changed, 29 insertions(+), 5 deletions(-)

diff --git a/packages/gcc/gcc-3.4.4.inc b/packages/gcc/gcc-3.4.4.inc
index 34204f1..0b5b714 100644
--- a/packages/gcc/gcc-3.4.4.inc
+++ b/packages/gcc/gcc-3.4.4.inc
@@ -22,5 +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 \
 	   "
 SRC_URI_append_fail-fast = " file://zecke-no-host-includes.patch;patch=1 "
diff --git a/packages/gcc/gcc-3.4.4/gcc-posix.patch b/packages/gcc/gcc-3.4.4/gcc-posix.patch
new file mode 100644
index 0000000..99f813e
--- /dev/null
+++ b/packages/gcc/gcc-3.4.4/gcc-posix.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/packages/gcc/gcc-3.4.6.inc b/packages/gcc/gcc-3.4.6.inc
index 1afd7a2..b1f686b 100644
--- a/packages/gcc/gcc-3.4.6.inc
+++ b/packages/gcc/gcc-3.4.6.inc
@@ -16,6 +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://gcc4-mtune-compat.patch;patch=1"
 
 SRC_URI += "file://gcc34-configure.in.patch;patch=1"
diff --git a/packages/gcc/gcc-3.4.6/gcc-posix.patch b/packages/gcc/gcc-3.4.6/gcc-posix.patch
new file mode 100644
index 0000000..99f813e
--- /dev/null
+++ b/packages/gcc/gcc-3.4.6/gcc-posix.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/packages/gcc/gcc-cross-sdk_3.4.4.bb b/packages/gcc/gcc-cross-sdk_3.4.4.bb
index b00c866..7d78ef4 100644
--- a/packages/gcc/gcc-cross-sdk_3.4.4.bb
+++ b/packages/gcc/gcc-cross-sdk_3.4.4.bb
@@ -1,4 +1,4 @@
-PR = "r5"
+PR = "r6"
 
 require gcc-${PV}.inc
 require gcc-cross-sdk.inc
diff --git a/packages/gcc/gcc-cross_3.4.4.bb b/packages/gcc/gcc-cross_3.4.4.bb
index 515b416..e2b20df 100644
--- a/packages/gcc/gcc-cross_3.4.4.bb
+++ b/packages/gcc/gcc-cross_3.4.4.bb
@@ -1,4 +1,4 @@
-PR = "r11"
+PR = "r12"
 
 require gcc-${PV}.inc
 require gcc-cross.inc
diff --git a/packages/gcc/gcc-native_3.4.4.bb b/packages/gcc/gcc-native_3.4.4.bb
index 5f39f1b..c3f8106 100644
--- a/packages/gcc/gcc-native_3.4.4.bb
+++ b/packages/gcc/gcc-native_3.4.4.bb
@@ -1,4 +1,4 @@
-PR = "r8"
+PR = "r9"
 
 require gcc-${PV}.inc
 require gcc-configure-target.inc
diff --git a/packages/gcc/gcc-native_3.4.6.bb b/packages/gcc/gcc-native_3.4.6.bb
index c3f8106..be84e4a 100644
--- a/packages/gcc/gcc-native_3.4.6.bb
+++ b/packages/gcc/gcc-native_3.4.6.bb
@@ -1,4 +1,4 @@
-PR = "r9"
+PR = "r10"
 
 require gcc-${PV}.inc
 require gcc-configure-target.inc
diff --git a/packages/gcc/gcc_3.4.4.bb b/packages/gcc/gcc_3.4.4.bb
index 5bc3761..43d55fa 100644
--- a/packages/gcc/gcc_3.4.4.bb
+++ b/packages/gcc/gcc_3.4.4.bb
@@ -1,4 +1,4 @@
-PR = "r10"
+PR = "r11"
 
 require gcc-${PV}.inc
 require gcc-configure-target.inc





More information about the Openembedded-commits mailing list