Subject: | --destdir broken in 0.31? |
I just tried to upgrade the debian package to 0.31, and the build failed:
Show quoted text
>-->snip-->
dh build
dh_testdir
dh_auto_configure
perl Build.PL --installdirs vendor --config "optimize=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2" --config "ld=cc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wl,-z,relro"
Creating new 'Build' script for 'Module-Build-Tiny' version '0.031'
dh_auto_build
perl Build
cp lib/Module/Build/Tiny.pm blib/lib/Module/Build/Tiny.pm
dh_auto_test
perl Build test
t/00-compile.t .......... ok
t/release-pod-syntax.t .. skipped: these tests are for release candidate testing
t/simple.t .............. ok
All tests successful.
Files=3, Tests=22, 1 wallclock secs ( 0.02 usr 0.01 sys + 0.30 cusr 0.02 csys = 0.35 CPU)
Result: PASS
fakeroot debian/rules binary
dh binary
dh_testroot
dh_prep
rm -f debian/libmodule-build-tiny-perl.substvars
rm -f debian/libmodule-build-tiny-perl.*.debhelper
rm -rf debian/libmodule-build-tiny-perl/
dh_auto_install
install -d debian/libmodule-build-tiny-perl
perl Build install --destdir /tmp/buildd/libmodule-build-tiny-perl-0.031/debian/libmodule-build-tiny-perl --create_packlist 0
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/usr/local/man/man3'
mkdir /usr/local/man/man3: Permission denied at /usr/share/perl/5.18/ExtUtils/Install.pm line 469.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
at lib/Module/Build/Tiny.pm line 110.
dh_auto_install: perl Build install --destdir /tmp/buildd/libmodule-build-tiny-perl-0.031/debian/libmodule-build-tiny-perl --create_packlist 0 returned exit code 13
make: *** [binary] Error 13
<--snip<--<
Looks like --destdir $temporarybuildir is ignored?
Data::Dumper'ing %opts in the Build() after the (new) GetOptionsFromArray line outputs nothing (whereas with 0.30 it contains the expected values for all stages).
Cheers,
gregor