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

Bug#797600: lintian: FTBFS with perl 5.22 in experimental (MakeMaker changes)



Source: lintian
Version: 2.5.36.1
Severity: important
User: debian-perl@lists.debian.org
Usertags: perl-5.22-transition makemaker-prefix
Tags: sid stretch

This package FTBFS with perl 5.22.0-2, which removed support for a long-
obsolete way of overriding PREFIX when calling 'make install' with
ExtUtils::MakeMaker, as described in the lintian tag
debian-rules-makemaker-prefix-is-deprecated[1] and the Debian Perl
policy[2]:

internal error: cd /«PKGBUILDDIR»/debian/test-out/tests/rules-perl-makemaker/rules-perl-makemaker-1.0 && dpkg-buildpackage 
-rfakeroot -us -uc -d -iNEVER_MATCH_ANYTHING -INEVER_MATCH_ANYTHING --source-option=--auto-commit >/«PKGBUILDDIR»/debian/te
st-out/tests/rules-perl-makemaker/build.rules-perl-makemaker 2>&1 at t/runtests line 569 thread 8.
...

rules-perl-makemaker: dh_installdirs
rules-perl-makemaker: /usr/bin/make install PREFIX=/«PKGBUILDDIR»/debian/test-out/tests/rules-perl-makemaker/rules-perl-makemaker-1.0/debian/rules-perl-makemaker/usr
rules-perl-makemaker: make[2]: Entering directory '/«PKGBUILDDIR»/debian/test-out/tests/rules-perl-makemaker/rules-perl-makemaker-1.0'
rules-perl-makemaker: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
rules-perl-makemaker: ERROR: Can't create '/usr/share/perl5'
rules-perl-makemaker: Do not have write permissions on '/usr/share/perl5'
rules-perl-makemaker: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
rules-perl-makemaker:  at -e line 1.
rules-perl-makemaker: Makefile:708: recipe for target 'pure_vendor_install' failed

The fix is to use DESTDIR instead of PREFIX; please see the lintian
`description for examples. Alternatively, newer versions of debhelper
can automatically call make install with the correct arguments when
using the dh7 style rules files.

Note that lintian also FTBFS with perl 5.22 because of #788926 and
#787537.

This bug will become release critical nearer the time of the perl 5.22
migration, expected during the (northern hemisphere) summer.

Cheers,
Dominic.

[1] <https://lintian.debian.org/tags/debian-rules-makemaker-prefix-is-deprecated.html>
[2] <https://www.debian.org/doc/packaging-manuals/perl-policy/ch-module_packages.html#s-vendor_install>


Reply to: