Package: perl
Version: 5.10.1-12
Severity: minor
Tags: patch
User: [email protected]
Usertags: maverick origin-ubuntu
Hi
While rebuilding Ubuntu main with a gcc-4.4 package patched with the
Linaro GCC diff, Matthias Klose found that perl would FTBFS. This is
due to a pickier pre-processor (well, gcc -E) failing on missing
#includes. See
https://bugs.launchpad.net/ubuntu/+source/perl/+bug/600951 for the
details.
Paul Brook did the analysis and provided the attached fix which I
believe will be needed for GCC 4.5.
This seems to apply fine against Debian's perl.git.
Thanks!
--
Loïc Minier
=== modified file 'debian/config.debian'
--- debian/config.debian 2010-05-04 16:32:38 +0000
+++ debian/config.debian 2010-07-12 09:50:27 +0000
@@ -2,7 +2,8 @@
eval $(echo '#include "./patchlevel.h"
SETver=PERL_REVISION.PERL_VERSION;
-SETsubver= PERL_SUBVERSION' | gcc -E - | sed -n '/^SET/{s///;s/ //gp;}')
+SETsubver= PERL_SUBVERSION' | gcc -E -DPERL_PATCHLEVEL_H_IMPLICIT - \
+| sed -n '/^SET/{s///;s/ //gp;}')
fullver="$ver.$subver"
nextver="$ver."$(($subver+1))