tags 636656 +patch thanks On Thu, Aug 04, 2011 at 10:08:06PM +0100, Dominic Hargreaves wrote: > As discussed on Debian bug #628522, this package fails to build with > perl 5.14.1 (in experimental) on i386 because $Config{ccflags} is being > overridden by local CCFLAGS options: > > PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t > Not a CODE reference at /usr/lib/perl/5.14/DynaLoader.pm line 207, <DATA> > line 206. > END failed--call queue aborted at > /build/dom-libpdl-io-hdf5-perl_0.6-1+b2-i386-L8msim/libpdl-io-hdf5-perl-0.6/blib/lib/PDL/IO/HDF5.pm > line 207, <DATA> line 206. > Compilation failed in require at t/attribPDL.t line 3, <DATA> line 206. > BEGIN failed--compilation aborted at t/attribPDL.t line 3, <DATA> line 206. > t/attribPDL.t ..... > Dubious, test returned 2 (wstat 512, 0x200) > > This bug is also discussed upstream at > <https://rt.cpan.org/Public/Bug/Display.html?id=68613>. > > Please modify the build system of this package to append $Config{ccflags} > to CCFLAGS. In most cases this will be by editing Makefile.PL.
Please find a patch attached for this issue. I will NMU this in one week's time unless you would prefer that I don't. Cheers, Dominic. -- Dominic Hargreaves | http://www.larted.org.uk/~dom/ PGP key 5178E2A5 from the.earth.li (keyserver,web,email)
diff -u libpdl-io-hdf5-perl-0.6/debian/changelog libpdl-io-hdf5-perl-0.6/debian/changelog --- libpdl-io-hdf5-perl-0.6/debian/changelog +++ libpdl-io-hdf5-perl-0.6/debian/changelog @@ -1,3 +1,11 @@ +libpdl-io-hdf5-perl (0.6-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Add $Config{ccflags} to CCFLAGS, to fix FTBFS with perl 5.14 + (Closes: #636656) + + -- Dominic Hargreaves <d...@earth.li> Sat, 20 Aug 2011 18:27:30 +0100 + libpdl-io-hdf5-perl (0.6-1) unstable; urgency=low * Initial release. (Closes: #580696: ITP: libpdl-io-hdf5-perl -- PDL diff -u libpdl-io-hdf5-perl-0.6/debian/patches/00list libpdl-io-hdf5-perl-0.6/debian/patches/00list --- libpdl-io-hdf5-perl-0.6/debian/patches/00list +++ libpdl-io-hdf5-perl-0.6/debian/patches/00list @@ -2,0 +3 @@ +30-ccflags-5.14 only in patch2: unchanged: --- libpdl-io-hdf5-perl-0.6.orig/debian/patches/30-ccflags-5.14.dpatch +++ libpdl-io-hdf5-perl-0.6/debian/patches/30-ccflags-5.14.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 30-ccflags-5.14.dpatch by Dominic Hargreaves <d...@earth.li> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Include $Config{ccflags} to fix FTBFS with perl 5.14. +## DP: #636656 + +@DPATCH@ +--- libpdl-io-hdf5-perl-0.6.orig/Makefile.PL ++++ libpdl-io-hdf5-perl-0.6/Makefile.PL +@@ -124,7 +124,7 @@ + $package = ["hdf5.pd",HDF5,PDL::IO::HDF5]; + WriteMakefile( + 'NAME' => 'PDL::IO::HDF5', +- 'CCFLAGS' => "$define_bool -g", ++ 'CCFLAGS' => "$define_bool -g $Config{ccflags}", + 'PREREQ_PM' => { PDL => 2.1 }, + 'VERSION_FROM' => 'hdf5.pd', + 'TYPEMAPS' => [&PDL_TYPEMAP()],