[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dh-make-perl can't find Makefile.PL though it exists




On Sep 5, 2007, at 6:34 PM, Frank Lichtenheld wrote:

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}; }

Yeah, I saw that. I have to agree with you, this is a strange way to declare a license.

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.

Right you are. It built a deb. Now to run lintian on it. :)

	Jeremiah



Reply to: