Package: cdbs
Version: 0.4.52
Severity: normal
Tags: patch

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
DEB_MAKEMAKER_INVOKE

The patch in attach solves this problem.
--- 1/class/perlmodule.mk.in	2007-08-13 15:58:16.000000000 +0400
+++ 1/class/perlmodule.mk.in	2008-05-19 15:06:23.000000000 +0400
@@ -43,6 +45,6 @@
 
 common-configure-arch common-configure-indep:: Makefile
 Makefile:
-	(cd $(DEB_BUILDDIR) && $(DEB_MAKEMAKER_INVOKE) $(DEB_MAKEMAKER_USER_FLAGS) )
+	(cd $(DEB_BUILDDIR) && $(DEB_MAKEMAKER_INVOKE) )
 
 endif
--- 1/class/perlmodule-vars.mk.in	2007-10-16 12:15:33.000000000 +0400
+++ 1/class/perlmodule-vars.mk.in	2008-05-19 15:04:40.000000000 +0400
@@ -36,7 +38,7 @@
 DEB_MAKEMAKER_PACKAGE := $(firstword $(shell $(_cdbs_scripts_path)/list-packages))
 endif
 
-DEB_MAKEMAKER_INVOKE = /usr/bin/perl Makefile.PL INSTALLDIRS=vendor
+DEB_MAKEMAKER_INVOKE = /usr/bin/perl Makefile.PL $(DEB_MAKEMAKER_USER_FLAGS) INSTALLDIRS=vendor
 
 # Set some MakeMaker defaults
 DEB_MAKE_BUILD_TARGET = all

Attachment: signature.asc
Description: Digital signature

Reply via email to