diff -Nru perl-5.14.2/debian/changelog perl-5.14.2/debian/changelog --- perl-5.14.2/debian/changelog 2013-03-07 17:08:49.000000000 +0000 +++ perl-5.14.2/debian/changelog 2013-03-12 20:26:51.000000000 +0000 @@ -1,3 +1,11 @@ +perl (5.14.2-20+rpi1) wheezy-staging; urgency=low + + * switch to gcc-4.7 to avoid ICE + * Hack config.pm, Config_heavy.pl and CORE/config.h so perl related stuff is + built with the regular system compiler rather than explicitly with gcc 4.7. + + -- Peter Michael Green Wed, 20 Feb 2013 01:14:21 +0000 + perl (5.14.2-20) unstable; urgency=low * Fix an Encode memory leak that occurred in the UTF-8 encoding. diff -Nru perl-5.14.2/debian/config.debian perl-5.14.2/debian/config.debian --- perl-5.14.2/debian/config.debian 2013-03-07 17:01:37.000000000 +0000 +++ perl-5.14.2/debian/config.debian 2013-03-12 20:26:54.000000000 +0000 @@ -94,6 +94,7 @@ eval /bin/bash Configure \ -Dusethreads \ -Duselargefiles \ + -Dcc=gcc-4.7 \ -Dccflags=\'$ccflags\' \ -Dldflags=\'$ldflags\' \ -Dlddlflags=\'-shared $ldflags\' \ diff -Nru perl-5.14.2/debian/control perl-5.14.2/debian/control --- perl-5.14.2/debian/control 2013-03-07 17:02:52.000000000 +0000 +++ perl-5.14.2/debian/control 2013-03-12 20:26:54.000000000 +0000 @@ -7,7 +7,7 @@ Homepage: http://dev.perl.org/perl5/ Build-Depends: file, cpio (>= 2.6-5), libdb-dev, libgdbm-dev, netbase [!hurd-any], gcc (>= 4:4.2), procps [!hurd-any], zlib1g-dev | libz-dev, libbz2-dev, - dpkg-dev (>= 1.16.0) + dpkg-dev (>= 1.16.0), gcc-4.7 Build-Conflicts: libterm-readline-gnu-perl (<< 1.17), libfile-sharedir-perl Vcs-Git: git://anonscm.debian.org/perl/perl.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=perl/perl.git diff -Nru perl-5.14.2/debian/rules perl-5.14.2/debian/rules --- perl-5.14.2/debian/rules 2013-03-07 17:01:37.000000000 +0000 +++ perl-5.14.2/debian/rules 2013-03-12 20:26:54.000000000 +0000 @@ -435,6 +435,12 @@ (cd $(build)/$$p; find usr -type f -print | xargs -r md5sum) \ >$(build)/$$p/DEBIAN/md5sums; \ done + + #hack: set c compiler back to cc in installed config files + sed -i s/gcc-4.7/cc/ $(build)/perl-base/usr/lib/perl/5.14.2/Config.pm + sed -i s/gcc-4.7/cc/ $(build)/perl-base/usr/lib/perl/5.14.2/Config_heavy.pl + sed -i s/gcc-4.7/cc/ $(build)/perl/usr/lib/perl/5.14.2/CORE/config.h + # dpkg-shlibdeps needs to be run only after all the shlibs are present for p in `./perl.static -l -00ne 'print $$1 if /^Architecture:\s+any/m \ and /^Package:\s+(.*)/m' debian/control`; \