[oe-commits] Andreas Oberritter : gcc: fix missing mode flags when opening response file

GIT User account git at amethyst.openembedded.net
Tue Oct 21 10:48:52 UTC 2008


Module: openembedded.git
Branch: org.openembedded.dreambox
Commit: 8184cb7dd3ce2b47ca66e9645d27a22acaa369b1
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=8184cb7dd3ce2b47ca66e9645d27a22acaa369b1

Author: Andreas Oberritter <obi at opendreambox.org>
Date:   Sat Oct 18 17:31:59 2008 +0200

gcc: fix missing mode flags when opening response file

---

 .../gcc-3.4.4/libstdc++-v3-open_missing_mode.patch |   13 +++++++++++++
 packages/gcc/gcc-cross_3.4.4.bb                    |    2 +-
 packages/gcc/gcc_3.4.4.bb                          |    3 ++-
 3 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/packages/gcc/gcc-3.4.4/libstdc++-v3-open_missing_mode.patch b/packages/gcc/gcc-3.4.4/libstdc++-v3-open_missing_mode.patch
new file mode 100644
index 0000000..3d674c8
--- /dev/null
+++ b/packages/gcc/gcc-3.4.4/libstdc++-v3-open_missing_mode.patch
@@ -0,0 +1,13 @@
+from https://hardened.gentooexperimental.org/secure/raw-attachment/ticket/29/libstdc%2B%2B-v3-open_missing_mode.patch
+diff -Nru /var/tmp/portage/sys-libs/libstdc++-v3-3.3.6/work/gcc-3.3.6/gcc/collect2.c /root/hardened/gcc-3.3.6/gcc/collect2.c
+--- gcc-3.3.6/gcc/collect2.c	2003-12-08 20:02:39.000000000 +0100
++++ gcc-3.3.6/gcc/collect2.c	2008-06-19 01:04:21.000000000 +0200
+@@ -1572,7 +1572,7 @@
+   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_IRUSR | S_IWUSR);
+ 
+       /* Duplicate the stdout and stderr file handles
+ 	 so they can be restored later.  */
diff --git a/packages/gcc/gcc-cross_3.4.4.bb b/packages/gcc/gcc-cross_3.4.4.bb
index ef67936..316d067 100644
--- a/packages/gcc/gcc-cross_3.4.4.bb
+++ b/packages/gcc/gcc-cross_3.4.4.bb
@@ -5,7 +5,7 @@ inherit cross
 FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gcc-${PV}"
 # NOTE: split PR.  If the main .oe changes something that affects its *build*
 # remember to increment this one too.
-PR = "r3"
+PR = "r4"
 
 DEPENDS = "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}libc-for-gcc"
 PROVIDES = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++"
diff --git a/packages/gcc/gcc_3.4.4.bb b/packages/gcc/gcc_3.4.4.bb
index fece12c..1ccf08b 100644
--- a/packages/gcc/gcc_3.4.4.bb
+++ b/packages/gcc/gcc_3.4.4.bb
@@ -1,4 +1,4 @@
-PR = "r5"
+PR = "r6"
 DESCRIPTION = "The GNU cc and gcc C compilers."
 HOMEPAGE = "http://www.gnu.org/software/gcc/"
 SECTION = "devel"
@@ -29,5 +29,6 @@ SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \
 SRC_URI += "file://gcc34-configure.in.patch;patch=1"
 SRC_URI += "file://gcc34-thumb-support.patch;patch=1"
 SRC_URI_append_fail-fast = " file://zecke-no-host-includes.patch;patch=1 "
+SRC_URI += "file://libstdc++-v3-open_missing_mode.patch;patch=1"
 
 require gcc3-build.inc





More information about the Openembedded-commits mailing list