[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#720263: gcc-4.7: FTBFS in jessie (the distribution isn't listed)



Package: gcc-4.7
Version: 4.7.3-4
Severity: normal
Tags: patch

Dear Maintainer,

(Keith, Wookey, this might explain the patch failures we were seeing
at DC13.)

gcc-4.7 fails to build in jessie because jessie isn't listed in the
various tests against distribution names. The attached patch fixes
this, and also drops a FIXME related to adding sid (and adds sid of
course).

Given that builds are supposed to target sid, and gcc-4.7 builds fine
there, I'm filing this at severity normal.

Regards,

Stephen


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (200, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.10-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gcc-4.7 depends on:
ii  binutils        2.22-8
ii  cpp-4.7         4.7.3-4
ii  gcc-4.7-base    4.7.3-4
ii  libc6           2.17-92
ii  libcloog-ppl1   0.16.1-3
ii  libgcc-4.7-dev  4.7.3-4
ii  libgmp10        2:5.1.2+dfsg-2
ii  libgmpxx4ldbl   2:5.1.2+dfsg-2
ii  libmpc3         1.0.1-1
ii  libmpfr4        3.1.1-1
ii  libppl-c4       1:1.0-7
ii  libppl12        1:1.0-7
ii  zlib1g          1:1.2.8.dfsg-1

Versions of packages gcc-4.7 recommends:
ii  libc6-dev  2.17-92

Versions of packages gcc-4.7 suggests:
pn  binutils-gold        <none>
pn  gcc-4.7-doc          <none>
pn  gcc-4.7-locales      <none>
pn  gcc-4.7-multilib     <none>
pn  libgcc1-dbg          <none>
pn  libgomp1-dbg         <none>
pn  libitm1-dbg          <none>
pn  libmudflap0-4.7-dev  <none>
pn  libmudflap0-dbg      <none>
pn  libquadmath0-dbg     <none>

-- no debconf information
diff -urN gcc-4.7-4.7.3/debian/rules2 gcc-4.7-4.7.3-fixed/debian/rules2
--- gcc-4.7-4.7.3/debian/rules2	2013-08-19 22:45:14.000000000 +0200
+++ gcc-4.7-4.7.3-fixed/debian/rules2	2013-08-19 22:40:11.387421517 +0200
@@ -454,7 +454,7 @@
 ifneq (,$(filter $(DEB_TARGET_ARCH), amd64 i386 kfreebsd-i386 kfreebsd-amd64))
   ifneq (,$(filter $(distrelease),etch lenny dapper hardy))
     CONFARGS += --with-arch-32=i486
-  else ifneq (,$(filter $(distrelease),squeeze wheezy sid jaunty karmic lucid))
+  else ifneq (,$(filter $(distrelease),squeeze wheezy jessie sid jaunty karmic lucid))
     CONFARGS += --with-arch-32=i586
   else
     CONFARGS += --with-arch-32=i686
diff -urN gcc-4.7-4.7.3/debian/rules.defs gcc-4.7-4.7.3-fixed/debian/rules.defs
--- gcc-4.7-4.7.3/debian/rules.defs	2013-08-19 22:45:14.000000000 +0200
+++ gcc-4.7-4.7.3-fixed/debian/rules.defs	2013-08-19 22:40:53.258842431 +0200
@@ -965,8 +965,7 @@
 # cloog backend
 ifneq (,$(filter $(distrelease),lenny etch squeeze dapper hardy jaunty karmic lucid maverick))
   cloog_backend = ppl-0.10
-# FIXME: sid currently identifies itself as wheezy, add it here after the release
-else ifneq (,$(filter $(distrelease),wheezy natty oneiric precise quantal))
+else ifneq (,$(filter $(distrelease),wheezy jessie sid natty oneiric precise quantal))
   cloog_backend = ppl-0.11
 else
   cloog_backend = ppl-1.0
@@ -1160,7 +1159,7 @@
 # multilib
 biarch_map := i686=x86_64 powerpc=powerpc64 sparc=sparc64 sparc64=sparc s390=s390x s390x=s390 \
 		x86_64=i686 powerpc64=powerpc mips=mips64 mipsel=mips64el
-ifeq (,$(filter $(distrelease),lenny etch squeeze wheezy sid dapper hardy jaunty karmic lucid))
+ifeq (,$(filter $(distrelease),lenny etch squeeze wheezy jessie sid dapper hardy jaunty karmic lucid))
   biarch_map := $(subst i686=,i486=,$(biarch_map))
 endif
 ifeq ($(distribution),Ubuntu)
diff -urN gcc-4.7-4.7.3/debian/rules.patch gcc-4.7-4.7.3-fixed/debian/rules.patch
--- gcc-4.7-4.7.3/debian/rules.patch	2013-08-19 22:45:14.000000000 +0200
+++ gcc-4.7-4.7.3-fixed/debian/rules.patch	2013-08-19 22:39:48.003744948 +0200
@@ -297,7 +297,7 @@
 debian_patches += gcc-powerpc-undef
 debian_patches += gcc-multilib-multiarch
 
-ifeq (,$(filter $(distrelease),lenny squeeze wheezy sid experimental dapper hardy intrepid jaunty karmic lucid maverick))
+ifeq (,$(filter $(distrelease),lenny squeeze wheezy jessie sid experimental dapper hardy intrepid jaunty karmic lucid maverick))
   debian_patches += gcc-as-needed
 endif
 debian_patches += mips-fix-loongson2f-nop

Reply to: