[Build-common-hackers] Bug#481893: Bug#481893: in some cases it is impossible to input options for Makefile.PL

Jonas Smedegaard dr at jones.dk
Wed Aug 26 07:24:48 UTC 2009

package cdbs
tags 481893 confirmed,pending

On Mon, May 19, 2008 at 03:30:12PM +0400, Dmitry E. Oboukhov wrote:
>Some  Makefile.PL  disassemble	options  with  the  help  of
>Getopt::Std module, meanwhile if options are written in  the
>end of command line, they will be ignored (because they must
>be declared before arguments).
>So the following construction (DEB_MAKEMAKER_USER_FLAGS = -n):
>perl Makefile.PL INSTALLDIRS=vendor -n
>doesn't work,
>but is impossible to receive the working construction
>perl Makefile.PL -n INSTALLDIRS=vendor
>with the help of cdbs without redefining the variable
>The patch in attach solves this problem.

Your proposed patch (moving DEB_MAKEMAKER_USER_FLAGS from perlmodule.mk 
to perlmodule-vars.mk) is sane in principle, but causes problems with 
packages both setting DEB_MAKEMAKER_USER_FLAGS and overriding 
DEB_MAKEMAKER_INVOKE: their user flags will silently get ignored.

Oh well - that's really a small corner case, I guess: let's just hope 
that the few users overriding DEB_MAKEMAKER_INVOKE include needed 
options their too.

Kind regards, and sorry for the extreme response time,

 - Jonas

* Jonas Smedegaard - idealist og Internet-arkitekt
* Tlf.: +45 40843136  Website: http://dr.jones.dk/

  [x] quote me freely  [ ] ask before reusing  [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/build-common-hackers/attachments/20090826/c237c3da/attachment.pgp>

More information about the Build-common-hackers mailing list