Subject: | Module::Build::Tiny and destdir |
As mentioned in the Module::Build::Tiny docs, the destdir parameter should be --destdir:
Module::Build has an extremely permissive way of argument
handling, Module::Build::Tiny only supports a (sane) subset of
that. In particular, ./Build destdir=/foo does not work, you will
need to pass it as ./Build --destdir=/foo.
Untested patch attached which should resolve this.
cheers,
Tom
Subject: | module-build-tiny.patch |
diff -uNPr CPANPLUS-Dist-Deb-0.12-original/lib/CPANPLUS/Dist/Deb/Constants.pm CPANPLUS-Dist-Deb-0.12-ateoBt/lib/CPANPLUS/Dist/Deb/Constants.pm
--- CPANPLUS-Dist-Deb-0.12-original/lib/CPANPLUS/Dist/Deb/Constants.pm 2007-07-05 14:47:30.000000000 +0100
+++ CPANPLUS-Dist-Deb-0.12-ateoBt/lib/CPANPLUS/Dist/Deb/Constants.pm 2013-10-01 11:49:46.391556781 +0100
@@ -591,7 +591,7 @@
dh_testroot
dh_clean -d -k
- $(PERL) $(BUILD) install destdir=$(TMP)
+ $(PERL) $(BUILD) install --destdir=$(TMP)
-find . -type f | grep '/perllocal.pod$$' | xargs rm -f
# due to a bug in M::B, the .packlist file is written to
@@ -692,7 +692,7 @@
dh_clean -d -k
# Add here commands to install the package into debian/tmp.
- $(PERL) $(BUILD) install destdir=$(TMP)
+ $(PERL) $(BUILD) install --destdir=$(TMP)
-find . -type f | grep '/perllocal.pod$$' | xargs rm -f
# due to a bug in M::B, the .packlist file is written to