]> git.openpandora.org Git - openembedded.git/commitdiff
gcc: fix open() with O_CREATE for version 3.4.3 and 3.4.6
authorwoglinde <heinold@inf.fu-berlin.de>
Sun, 2 Nov 2008 17:34:21 +0000 (18:34 +0100)
committerwoglinde <heinold@inf.fu-berlin.de>
Sun, 2 Nov 2008 17:34:21 +0000 (18:34 +0100)
* 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
packages/gcc/gcc-3.4.4/gcc-posix.patch [new file with mode: 0644]
packages/gcc/gcc-3.4.6.inc
packages/gcc/gcc-3.4.6/gcc-posix.patch [new file with mode: 0644]
packages/gcc/gcc-cross-sdk_3.4.4.bb
packages/gcc/gcc-cross_3.4.4.bb
packages/gcc/gcc-native_3.4.4.bb
packages/gcc/gcc-native_3.4.6.bb
packages/gcc/gcc_3.4.4.bb

index 34204f10fae953419e9010d8a828aa14b6475f1a..0b5b714e09914c069ef896c58254495b70f28a0c 100644 (file)
@@ -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 (file)
index 0000000..99f813e
--- /dev/null
@@ -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.  */
index 1afd7a22cb2fef0072a87c96e711024147332ece..b1f686b3652fee164ef902512e90788392731166 100644 (file)
@@ -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 (file)
index 0000000..99f813e
--- /dev/null
@@ -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.  */
index b00c86617ddb399ccff263bd2e3a57670eff5ce1..7d78ef44d5039ae2f3f525b1cb25589b0e1e0784 100644 (file)
@@ -1,4 +1,4 @@
-PR = "r5"
+PR = "r6"
 
 require gcc-${PV}.inc
 require gcc-cross-sdk.inc
index 515b41628c4d0587e66db32ee5108646a31fa455..e2b20df484f02bce1fd394b8c74a0f76d867204a 100644 (file)
@@ -1,4 +1,4 @@
-PR = "r11"
+PR = "r12"
 
 require gcc-${PV}.inc
 require gcc-cross.inc
index 5f39f1bbb3455a3fc3235209b5d894f36211e895..c3f8106d3a07e04d17da61930c7fc6f4826cf57d 100644 (file)
@@ -1,4 +1,4 @@
-PR = "r8"
+PR = "r9"
 
 require gcc-${PV}.inc
 require gcc-configure-target.inc
index c3f8106d3a07e04d17da61930c7fc6f4826cf57d..be84e4a0d0bf7214103754b77216d857d7237190 100644 (file)
@@ -1,4 +1,4 @@
-PR = "r9"
+PR = "r10"
 
 require gcc-${PV}.inc
 require gcc-configure-target.inc
index 5bc37610681c0c76b6d812606cda7f5e2f98504f..43d55fa6014b2454e8368551da68f31613161668 100644 (file)
@@ -1,4 +1,4 @@
-PR = "r10"
+PR = "r11"
 
 require gcc-${PV}.inc
 require gcc-configure-target.inc