summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin@buglabs.net>2009-11-02 20:50:10 +0100
committerMarcin Juszkiewicz <marcin@buglabs.net>2009-11-02 20:50:10 +0100
commit39bb1e9235e7373dad9afa30fda792c0581826a4 (patch)
treed0059e0263c31fdfffbba6f90cae23b28c333ccc
parent7688bca5df201664460adf31a2168b94883d4373 (diff)
downloadpoky-39bb1e9235e7373dad9afa30fda792c0581826a4.tar.gz
gcc 3.4.4: fixed Ubuntu 9.10 build
open() require 3 arguments now. Signed-off-by: Marcin Juszkiewicz <marcin@buglabs.net>
-rw-r--r--meta/packages/gcc/gcc-3.4.4/hrw-open-needs-3-args.patch13
-rw-r--r--meta/packages/gcc/gcc_3.4.4.bb5
2 files changed, 16 insertions, 2 deletions
diff --git a/meta/packages/gcc/gcc-3.4.4/hrw-open-needs-3-args.patch b/meta/packages/gcc/gcc-3.4.4/hrw-open-needs-3-args.patch
new file mode 100644
index 0000000000..8feb5edff0
--- /dev/null
+++ b/meta/packages/gcc/gcc-3.4.4/hrw-open-needs-3-args.patch
@@ -0,0 +1,13 @@
1Index: gcc-3.4.4/gcc/collect2.c
2===================================================================
3--- gcc-3.4.4.orig/gcc/collect2.c 2009-11-02 20:40:02.874934378 +0100
4+++ gcc-3.4.4/gcc/collect2.c 2009-11-02 20:41:12.458939528 +0100
5@@ -1534,7 +1534,7 @@
6 if (redir)
7 {
8 /* Open response file. */
9- redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT);
10+ redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT, 0666);
11
12 /* Duplicate the stdout and stderr file handles
13 so they can be restored later. */
diff --git a/meta/packages/gcc/gcc_3.4.4.bb b/meta/packages/gcc/gcc_3.4.4.bb
index 69a00582a8..49a47c03dc 100644
--- a/meta/packages/gcc/gcc_3.4.4.bb
+++ b/meta/packages/gcc/gcc_3.4.4.bb
@@ -1,4 +1,4 @@
1PR = "r6" 1PR = "r7"
2DESCRIPTION = "The GNU cc and gcc C compilers." 2DESCRIPTION = "The GNU cc and gcc C compilers."
3HOMEPAGE = "http://www.gnu.org/software/gcc/" 3HOMEPAGE = "http://www.gnu.org/software/gcc/"
4SECTION = "devel" 4SECTION = "devel"
@@ -22,7 +22,8 @@ SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \
22 file://GCC3.4.0VisibilityPatch.diff;patch=1 \ 22 file://GCC3.4.0VisibilityPatch.diff;patch=1 \
23 file://15342.patch;patch=1 \ 23 file://15342.patch;patch=1 \
24 file://jarfix.patch;patch=1 \ 24 file://jarfix.patch;patch=1 \
25 file://always-fixincperm.patch;patch=1" 25 file://always-fixincperm.patch;patch=1 \
26 file://hrw-open-needs-3-args.patch"
26 27
27SRC_URI += "file://gcc34-configure.in.patch;patch=1" 28SRC_URI += "file://gcc34-configure.in.patch;patch=1"
28SRC_URI += "file://gcc34-thumb-support.patch;patch=1" 29SRC_URI += "file://gcc34-thumb-support.patch;patch=1"