Bug#871729: libembperl-perl: FTBFS when debhelper does not export PERL_USE_UNSAFE_INC
Florian Schlichting
fsfs at debian.org
Mon Oct 9 21:21:21 UTC 2017
On Thu, Aug 10, 2017 at 06:45:02PM -0400, Dominic Hargreaves wrote:
> The relevant build failure logs are below:
>
> PERL_DL_NONLAZY=0 "/usr/bin/perl" "-Iblib/lib" "-Iblib/arch" test.pl
>
> loading... do "test/conf/config.pl" failed, '.' is no longer in @INC; did you mean do "./test/conf/config.pl"? at test.pl line 1326.
> Use of uninitialized value $EPSESSIONVERSION in pattern match (m//) at test.pl line 1332.
> Use of uninitialized value $EPSESSIONVERSION in numeric ge (>=) at test.pl line 1332.
> Can't locate test/testapp.pl in @INC (@INC contains: /<<PKGBUILDDIR>>/blib/lib /<<PKGBUILDDIR>>/blib/arch /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.0 /usr/local/share/perl/5.26.0 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at test.pl line 1426.
>
> Test terminated with fatal error
to get there with dh compat 11, I had to patch Makefile.PL and disable parallel
builds, but then adding '.' in two places seemed to be all that's needed:
--- a/debian/rules
+++ b/debian/rules
@@ -14,7 +14,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-bindnow
pod2text < $< > $@
%:
- dh $@
+ dh $@ --no-parallel
override_dh_auto_configure:
. /etc/apache2/envvars && yes y | EPHTTPD=/usr/sbin/apache2 dh_auto_configure
--------------------8<-------------------------
--- a/test.pl
+++ b/test.pl
@@ -1316,7 +1316,7 @@
#### read config ####
-do ($opt_config || "$confpath/config.pl") ;
+do ($opt_config || "./$confpath/config.pl") ;
die $@ if ($@) ;
@@ -1416,7 +1416,7 @@
$vmhttpdsize = 0 ;
$vmhttpdinitsize = 0 ;
-require 'test/testapp.pl' ;
+require './test/testapp.pl' ;
#####################################################
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1346,7 +1346,7 @@
close FH ;
-$i .= " -I$EPPATH/xs" ;
+$i .= " -I$EPPATH/xs -I." ;
if ($mp2cfg && $mp2cfg->{'MP_INCLUDE_DIR'})
{
Florian
More information about the pkg-perl-maintainers
mailing list