Your message dated Tue, 15 Mar 2011 23:02:41 +0000
with message-id <[email protected]>
and subject line Bug#599933: fixed in perl 5.10.1-18
has caused the Debian Bug report #599933,
regarding perl: fails to build with GCC 4.5
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.)


-- 
599933: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=599933
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: perl
Version: 5.10.1-15
Severity: important
Tags: patch
User: [email protected]
Usertags: origin-ubuntu ubuntu-patch natty

Ubuntu recently switched to GCC 4.5, and we quickly found that Perl
failed to build with it.  Here's the build log:

  
http://launchpadlibrarian.net/57494704/buildlog_ubuntu-natty-i386.perl_5.10.1-15ubuntu1_FAILEDTOBUILD.txt.gz

It ends as follows:

  # Verify that the headers are usable
  for ph in `< /build/buildd/perl-5.10.1/debian/headers sed -e 's/\.h$/.ph/'`; 
do \
                  if [ ! -f 
/build/buildd/perl-5.10.1/debian/tmp/usr/lib/perl/5.10/$ph ]; then \
                          echo "$ph: missing"; else \
                  /build/buildd/perl-5.10.1/perl.static -I 
/build/buildd/perl-5.10.1/debian/tmp/usr/lib/perl/5.10 -I 
/build/buildd/perl-5.10.1/debian/tmp/usr/share/perl/5.10 -e \
                          "print '"$ph": '; require '"$ph"'; print \"ok\n\";" \
                                  || exit 1; \
                  fi; \
          done
  Illegal declaration of subroutine main::__INT16_C at 
/build/buildd/perl-5.10.1/debian/tmp/usr/lib/perl/5.10/_h2ph_pre.ph line 162.
  Compilation failed in require at 
/build/buildd/perl-5.10.1/debian/tmp/usr/lib/perl/5.10/asm/termios.ph line 1.
  Compilation failed in require at -e line 1.
  asm/termios.ph: make: *** [install-stamp] Error 1

I hunted around a bit and tracked down
http://perl5.git.perl.org/perl.git/commit/8d66b3f930dc6d88b524d103e304308ae73a46e7,
which fixes this problem (although the commit message is uninformative).
Attached please find a patch to incorporate this.

Thanks,

-- 
Colin Watson                                       [[email protected]]
  * Apply upstream patch from Robin Barker
    (http://perl5.git.perl.org/perl.git/commit/8d66b3f930dc6d88b524d103e304308ae73a46e7)
    to fix h2ph header generation with GCC 4.5.

diff -Nru perl-5.10.1/debian/patches/fixes/h2ph-gcc-4.5.diff perl-5.10.1/debian/patches/fixes/h2ph-gcc-4.5.diff
--- perl-5.10.1/debian/patches/fixes/h2ph-gcc-4.5.diff	1970-01-01 01:00:00.000000000 +0100
+++ perl-5.10.1/debian/patches/fixes/h2ph-gcc-4.5.diff	2010-10-12 15:07:33.000000000 +0100
@@ -0,0 +1,96 @@
+Author: Robin Barker <[email protected]>
+Subject: Fix h2ph and test
+ Needed to build with GCC 4.5.
+Origin: upstream, http://perl5.git.perl.org/perl.git/commit/8d66b3f930dc6d88b524d103e304308ae73a46e7
+
+Index: b/lib/h2ph.t
+===================================================================
+--- a/lib/h2ph.t
++++ b/lib/h2ph.t
+@@ -18,7 +18,7 @@
+     exit 0;
+ }
+ 
+-plan(4);
++plan(5);
+ 
+ # quickly compare two text files
+ sub txt_compare {
+@@ -41,8 +41,16 @@
+                    stderr => 1 );
+ like( $result, qr/syntax OK$/, "output compiles");
+ 
++$result = runperl( progfile => '_h2ph_pre.ph',
++                   switches => ['-c'],
++                   stderr => 1 );
++like( $result, qr/syntax OK$/, "preamble compiles");
++
+ $result = runperl( switches => ["-w"], 
+-                   prog => '$SIG{__WARN__} = sub { die $_[0] }; require q(lib/h2ph.pht);');
++                   stderr => 1,
++                   prog => <<'PROG' );
++$SIG{__WARN__} = sub { die $_[0] }; require q(lib/h2ph.pht);
++PROG
+ is( $result, '', "output free of warnings" );
+ 
+ # cleanup
+Index: b/utils/h2ph.PL
+===================================================================
+--- a/utils/h2ph.PL
++++ b/utils/h2ph.PL
+@@ -401,7 +401,10 @@
+ exit $Exit;
+ 
+ sub expr {
+-    $new = '"(assembly code)"' and return if /\b__asm__\b/; # freak out.
++    if (/\b__asm__\b/) {	# freak out
++	$new = '"(assembly code)"';
++	return
++    }
+     my $joined_args;
+     if(keys(%curargs)) {
+ 	$joined_args = join('|', keys(%curargs));
+@@ -764,7 +767,7 @@
+ sub build_preamble_if_necessary
+ {
+     # Increment $VERSION every time this function is modified:
+-    my $VERSION     = 2;
++    my $VERSION     = 3;
+     my $preamble    = "$Dest_dir/_h2ph_pre.ph";
+ 
+     # Can we skip building the preamble file?
+@@ -792,7 +795,16 @@
+ 		# parenthesized value:  d=(v)
+ 		$define{$_} = $1;
+ 	    }
+-	    if ($define{$_} =~ /^([+-]?(\d+)?\.\d+([eE][+-]?\d+)?)[FL]?$/) {
++	    if (/^(\w+)\((\w)\)$/) {
++		my($macro, $arg) = ($1, $2);
++		my $def = $define{$_};
++		$def =~ s/$arg/\$\{$arg\}/g;
++		print PREAMBLE <<DEFINE;
++unless (defined &$macro) { sub $macro(\$) { my (\$$arg) = \@_; \"$def\" } }
++
++DEFINE
++	    } elsif
++		($define{$_} =~ /^([+-]?(\d+)?\.\d+([eE][+-]?\d+)?)[FL]?$/) {
+ 		# float:
+ 		print PREAMBLE
+ 		    "unless (defined &$_) { sub $_() { $1 } }\n\n";
+@@ -801,8 +813,14 @@
+ 		print PREAMBLE
+ 		    "unless (defined &$_) { sub $_() { $1 } }\n\n";
+ 	    } elsif ($define{$_} =~ /^\w+$/) {
+-		print PREAMBLE
+-		    "unless (defined &$_) { sub $_() { &$define{$_} } }\n\n";
++		my $def = $define{$_};
++		if ($isatype{$def}) {
++		  print PREAMBLE
++		    "unless (defined &$_) { sub $_() { \"$def\" } }\n\n";
++		} else {
++		  print PREAMBLE
++		    "unless (defined &$_) { sub $_() { &$def } }\n\n";
++	        }
+ 	    } else {
+ 		print PREAMBLE
+ 		    "unless (defined &$_) { sub $_() { \"",
diff -Nru perl-5.10.1/debian/patches/series perl-5.10.1/debian/patches/series
--- perl-5.10.1/debian/patches/series	2010-10-06 19:46:31.000000000 +0100
+++ perl-5.10.1/debian/patches/series	2010-10-12 15:05:43.000000000 +0100
@@ -44,4 +44,5 @@
 fixes/fcgi-test.diff -p1
 fixes/hurd-ccflags.diff -p1
 debian/squelch-locale-warnings.diff -p1
+fixes/h2ph-gcc-4.5.diff
 patchlevel -p1

--- End Message ---
--- Begin Message ---
Source: perl
Source-Version: 5.10.1-18

We believe that the bug you reported is fixed in the latest version of
perl, which is due to be installed in the Debian FTP archive:

libcgi-fast-perl_5.10.1-18_all.deb
  to main/p/perl/libcgi-fast-perl_5.10.1-18_all.deb
libperl-dev_5.10.1-18_i386.deb
  to main/p/perl/libperl-dev_5.10.1-18_i386.deb
libperl5.10_5.10.1-18_i386.deb
  to main/p/perl/libperl5.10_5.10.1-18_i386.deb
perl-base_5.10.1-18_i386.deb
  to main/p/perl/perl-base_5.10.1-18_i386.deb
perl-debug_5.10.1-18_i386.deb
  to main/p/perl/perl-debug_5.10.1-18_i386.deb
perl-doc_5.10.1-18_all.deb
  to main/p/perl/perl-doc_5.10.1-18_all.deb
perl-modules_5.10.1-18_all.deb
  to main/p/perl/perl-modules_5.10.1-18_all.deb
perl-suid_5.10.1-18_i386.deb
  to main/p/perl/perl-suid_5.10.1-18_i386.deb
perl_5.10.1-18.debian.tar.gz
  to main/p/perl/perl_5.10.1-18.debian.tar.gz
perl_5.10.1-18.dsc
  to main/p/perl/perl_5.10.1-18.dsc
perl_5.10.1-18_i386.deb
  to main/p/perl/perl_5.10.1-18_i386.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.
Dominic Hargreaves <[email protected]> (supplier of updated perl 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: Tue, 15 Mar 2011 20:59:04 +0000
Source: perl
Binary: perl-base libcgi-fast-perl perl-doc perl-modules perl-debug perl-suid 
libperl5.10 libperl-dev perl
Architecture: source all i386
Version: 5.10.1-18
Distribution: unstable
Urgency: low
Maintainer: Niko Tyni <[email protected]>
Changed-By: Dominic Hargreaves <[email protected]>
Description: 
 libcgi-fast-perl - CGI::Fast Perl module
 libperl-dev - Perl library: development files
 libperl5.10 - shared Perl library
 perl       - Larry Wall's Practical Extraction and Report Language
 perl-base  - minimal Perl system
 perl-debug - debug-enabled Perl interpreter
 perl-doc   - Perl documentation
 perl-modules - Core Perl modules
 perl-suid  - runs setuid Perl scripts
Closes: 599933 608385 617985
Changes: 
 perl (5.10.1-18) unstable; urgency=low
 .
   * Add Conflicts, Replaces, Provides for libencode-perl which is
     being packaged separately. (Closes: #608385)
   * Include information about preparing the repository for use with
     topgit in debian/README.source
   * Fix h2ph header generation with GCC 4.5. Upstream patch by Robin Barker.
     (Closes: #599933)
   * Override Lintian error wrong-path-for-interpreter for
     ./usr/share/perl/5.10.1/Class/ISA.pm which is not expected to be
     executed
   * Add Conflicts, Replaces, Provides for libfile-path-perl which is
     packaged separately (Closes: #617985)
   * Include the full text of the license statements for BSD-style
     licenses in debian/copyright, rather than the deprecated practice of
     referring to an external copy
Checksums-Sha1: 
 289d6caffc8e928c4dec1adaa53fb40aafb0f2ac 1415 perl_5.10.1-18.dsc
 1d95b560055e16a412bf5e0cd2f5acda0b0a4701 116560 perl_5.10.1-18.debian.tar.gz
 c7c865f7a9070644690bbb2d2bbf31422d0ad1a0 53294 
libcgi-fast-perl_5.10.1-18_all.deb
 82ffd1bda821d4af7fa3ff494bf4100196e836a3 7189138 perl-doc_5.10.1-18_all.deb
 8100a470c3ebab97d6b2c4ec49f385a82419a8ea 3491106 perl-modules_5.10.1-18_all.deb
 49e4cdfe039375d0e2109928d403320077e96039 979546 perl-base_5.10.1-18_i386.deb
 6723e3d40689f223f2f2c94691cab64204516eee 7446838 perl-debug_5.10.1-18_i386.deb
 b2ae23df7db2f007606dbef61caa9ee65860f10a 33056 perl-suid_5.10.1-18_i386.deb
 48f4c37740784811c800185a6f8b8a4955598ee4 631444 libperl5.10_5.10.1-18_i386.deb
 daa7b36ee2ba7f42f6e7e51f98415b840e034b26 2503094 libperl-dev_5.10.1-18_i386.deb
 3a2b558f10876dc793b69ea3b04f6a6987903766 3780260 perl_5.10.1-18_i386.deb
Checksums-Sha256: 
 184ee7006f0e0dc424b87b469280abbf35386c9d578c4d32c5d9dae455924f62 1415 
perl_5.10.1-18.dsc
 7bafc550d21f19bb8a6af4fbc6f0cd40ebf31e2a2cd4955c3c47ca5eebc90e79 116560 
perl_5.10.1-18.debian.tar.gz
 23d6dc7c2627d73b70ff981fb1b70ef41f4a3e53e7d8555f3a2f4de8b2611182 53294 
libcgi-fast-perl_5.10.1-18_all.deb
 3b7687186c554ad1fb79d9ba8ab65dc8ffeb8751af651175b3b0d3a8c63e488a 7189138 
perl-doc_5.10.1-18_all.deb
 0c2a94dfe42635c6f77b0eb68a449ec9789ec6b7d2a8357414b5784d1121dd4f 3491106 
perl-modules_5.10.1-18_all.deb
 9adeffbf75b9078e729114376d148d2781b60ccb6041cc39ecac0c14946d923b 979546 
perl-base_5.10.1-18_i386.deb
 32b09e09b0675d1c46d009870212abc07e79077dca1c17b93ec8c1e94936a30d 7446838 
perl-debug_5.10.1-18_i386.deb
 a904607df1edf3d0c51a8c7f0e966174f588ec9b3a6aa4cec0c35788e444da94 33056 
perl-suid_5.10.1-18_i386.deb
 d3130ad3485a6634ea5db5c7fcf41bbadbd8d9e2bed25bddb1a4b36671dc59ac 631444 
libperl5.10_5.10.1-18_i386.deb
 dd14ba266a70b3b3eded5cf0cfe3cca0a65d15908fd09f7c5646b5f66a1bcdf3 2503094 
libperl-dev_5.10.1-18_i386.deb
 7c35c3704938dda626e53cb13631116d6e442c0da41f326f89affdc5c891a491 3780260 
perl_5.10.1-18_i386.deb
Files: 
 c98ed13923fa1b98a9d439cc076c2f33 1415 perl standard perl_5.10.1-18.dsc
 22b9286d5f28ef678a10ef56f193ab68 116560 perl standard 
perl_5.10.1-18.debian.tar.gz
 9f4e8c2341fab62a350e7e17775a3d1e 53294 perl optional 
libcgi-fast-perl_5.10.1-18_all.deb
 92711af93faf224d4371d9f30b61e546 7189138 doc optional 
perl-doc_5.10.1-18_all.deb
 a7496f87d79765e281618187119c1686 3491106 perl standard 
perl-modules_5.10.1-18_all.deb
 67965af70959908a994189c00fd165b9 979546 perl required 
perl-base_5.10.1-18_i386.deb
 cacdcf5f8d8f131ac86df5dd62ddee81 7446838 debug extra 
perl-debug_5.10.1-18_i386.deb
 6836e552a5ded06586d74c4cdc25034d 33056 perl optional 
perl-suid_5.10.1-18_i386.deb
 2ae0855c62a7940b2ad442c7b3eff26e 631444 libs optional 
libperl5.10_5.10.1-18_i386.deb
 6b9f47d2b45ec19442db91a1b6fd6d2e 2503094 libdevel optional 
libperl-dev_5.10.1-18_i386.deb
 a8202d1a2377709a276c9bf8b7c4392e 3780260 perl standard perl_5.10.1-18_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iD8DBQFNf9/SYzuFKFF44qURAjcEAKCmnwfhNBPTCI8p5MB7uwhj1KaaRQCgrQ+L
1vUFzQOB1zUy/D225mvfm8Y=
=YyjG
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to