Your message dated Thu, 05 May 2011 21:47:21 +0000
with message-id <[email protected]>
and subject line Bug#620158: fixed in gcc-3.3 1:3.3.6ds1-23
has caused the Debian Bug report #620158,
regarding gcc-3.3 fails to build with -D_FORTIFY_SOURCE=2
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
620158: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=620158
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: gcc-3.3
Version: 1:3.3.6ds1-22
Severity: wishlist
User: [email protected]
Usertags: origin-ubuntu natty ubuntu-patch
Tags: patch
gcc-3.3 fails to build with -D_FORTIFY_SOURCE=2 (which is a default
compiler flag on Ubuntu) as it contains a open() call with O_CREAT but
doesn't specifiy the file permissions.
Attaching the patch that I have applied to the Ubuntu package.
diff -u gcc-3.3-3.3.6ds1/debian/rules.patch gcc-3.3-3.3.6ds1/debian/rules.patch
--- gcc-3.3-3.3.6ds1/debian/rules.patch
+++ gcc-3.3-3.3.6ds1/debian/rules.patch
@@ -38,6 +38,7 @@
i386-mtune \
link-libs \
gcc-mips-update \
+ collect2-open \
ifeq ($(GFDL_INVARIANT_FREE),yes)
debian_patches += \
--- gcc-3.3-3.3.6ds1.orig/debian/patches/collect2-open.dpatch
+++ gcc-3.3-3.3.6ds1/debian/patches/collect2-open.dpatch
@@ -0,0 +1,43 @@
+#! /bin/sh -e
+
+# DP: Provide required permissions for newly created file.
+# DP: Call only used for temporary ldout file, thus using mode 0600.
+# DP:
+# DP: https://bugs.gentoo.org/256638
+# DP:
+# DP: 2009-01-30 Martin von Gagern
+
+dir=
+if [ $# -eq 3 -a "$2" = '-d' ]; then
+ pdir="-d $3"
+ dir="$3/"
+elif [ $# -ne 1 ]; then
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+fi
+case "$1" in
+ -patch)
+ patch $pdir -f --no-backup-if-mismatch -p1 < $0
+ cd ${dir}gcc && autoconf2.13
+ ;;
+ -unpatch)
+ patch $pdir -f --no-backup-if-mismatch -R -p1 < $0
+ rm -f ${dir}gcc/configure
+ ;;
+ *)
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+esac
+exit 0
+
+--- gcc-3.4.6/gcc/collect2.c
++++ gcc-3.4.6/gcc/collect2.c
+@@ -1540,7 +1540,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_IRUSR | S_IWUSR);
+
+ /* Duplicate the stdout and stderr file handles
+ so they can be restored later. */
--- End Message ---
--- Begin Message ---
Source: gcc-3.3
Source-Version: 1:3.3.6ds1-23
We believe that the bug you reported is fixed in the latest version of
gcc-3.3, which is due to be installed in the Debian FTP archive:
gcc-3.3_3.3.6ds1-23.diff.gz
to main/g/gcc-3.3/gcc-3.3_3.3.6ds1-23.diff.gz
gcc-3.3_3.3.6ds1-23.dsc
to main/g/gcc-3.3/gcc-3.3_3.3.6ds1-23.dsc
libstdc++5_3.3.6-23_amd64.deb
to main/g/gcc-3.3/libstdc++5_3.3.6-23_amd64.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Philipp Kern <[email protected]> (supplier of updated gcc-3.3 package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Thu, 05 May 2011 23:01:54 +0200
Source: gcc-3.3
Binary: libstdc++5
Architecture: source amd64
Version: 1:3.3.6ds1-23
Distribution: unstable
Urgency: low
Maintainer: Debian GCC Maintainers <[email protected]>
Changed-By: Philipp Kern <[email protected]>
Description:
libstdc++5 - The GNU Standard C++ Library v3
Closes: 620158
Changes:
gcc-3.3 (1:3.3.6ds1-23) unstable; urgency=low
.
* Fix FTBFS with -D_FORTIFY_SOURCE=2. (Closes: #620158)
Checksums-Sha1:
33ed7605825d7285a0c7b08e7b90b1d8b4b16698 1840 gcc-3.3_3.3.6ds1-23.dsc
2367f1e8f357bb56d12b0234c8559ff1328f89e8 389737 gcc-3.3_3.3.6ds1-23.diff.gz
7d3bf0d99d3a72524599730a2e3b333b2d5164f7 308328 libstdc++5_3.3.6-23_amd64.deb
Checksums-Sha256:
622c298626ddb7f603679d0ea8ea1cb1067bbc6f4bda9135beff532c43a03298 1840
gcc-3.3_3.3.6ds1-23.dsc
8bb1f0fc81d87243876ffa611fa0538d7b06b56a978ccbba2156a87abf184ac3 389737
gcc-3.3_3.3.6ds1-23.diff.gz
517ceb7c9b9ca024460fe9bdd8d5d6be61f2bbe6259ec81b6c7e7fc42a8beb19 308328
libstdc++5_3.3.6-23_amd64.deb
Files:
2c9afda9b7b9a0bbc42c24bc72f2822f 1840 devel optional gcc-3.3_3.3.6ds1-23.dsc
b955fdeea1369c1190fc9fa35e95394b 389737 devel optional
gcc-3.3_3.3.6ds1-23.diff.gz
3250c0a731d868935caa4c8e9f4c4e59 308328 libs optional
libstdc++5_3.3.6-23_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEARECAAYFAk3DGW4ACgkQ7Ro5M7LPzdgLdgCghMsIVwu+8d0eckkUIOByxloS
d3gAn3la03Klq8KR4RW0lx0i5d9431uw
=6t5M
-----END PGP SIGNATURE-----
--- End Message ---