On Wed, Sep 05, 2007 at 02:46:34PM +0200, Jeremiah Foster wrote:
Is this a bug?
I would argue it is not. The Makefile.PL of XML::XPathEngine
is just evil... It contains this code:
unless( `$^X -n -e'print if( m{license\\s*:\\s*perl})' Makefile`)
{ system $^X . q{ -p -i -e's{^((.*)distribution_type:module(.*))}
{$1\n$2license: perl$3}m' Makefile}; }
I guess that the module in question (Module::Depends::Intrusive) tries
to load the Makefile.PL without actually creating Makefile which leads
the code quoted above to fail which leads to the error you see.
You can fix that by either adding 1; at the end of Makefile.PL or just
uncommenting the failing code. If you run dh-make-perl again after
doing
that it will work just fine.