Bug#684070: libxml-libxml-perl: lack of error handling in build process means that if there is a problem broken packages are built (rather than a build failure)

Alessandro Ghedini al3xbio at gmail.com
Tue Aug 7 17:59:54 UTC 2012


On Tue, Aug 07, 2012 at 07:18:18PM +0200, gregor herrmann wrote:
> # -------------------------------------------------------------------------- #
> # test if the libraries are really installed!
> unless (have_library("xml2") or have_library("libxml2")) {
>     print STDERR <<"DEATH";
> libxml2, zlib, and/or the Math library (-lm) have not been found.
> Try setting LIBS and INC values on the command line
> Or get libxml2 from 
>   http://xmlsoft.org/
> If you install via RPMs, make sure you also install the -devel
> RPMs, as this is where the headers (.h files) are.
> 
> Also, you may try to run perl Makefile.PL with the DEBUG=1 parameter
> to see the exact reason why the detection of libxml2 installation
> failed or why Makefile.PL was not able to compile a test program.
> DEATH
> exit 0; # 0 recommended by http://cpantest.grango.org (Notes for CPAN Authors)
> }
> # -------------------------------------------------------------------------- #
> 
> I'm not sure I share this recommendation (for Debian) ...

This is also what happens when using Devel::CheckLib's check_lib_or_exit().
Should we fix the packages that use it too?

(list of "fix candidate" packages coming soon)

Cheers

-- 
perl -E '$_=q;$/= @{[@_]};and s;\S+;<inidehG ordnasselA>;eg;say~~reverse'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20120807/97f67825/attachment-0001.pgp>


More information about the pkg-perl-maintainers mailing list