On Thu, 19 Nov 2020 15:46:46 +0100, Sebastiaan Couwenberg wrote: > Using `export PERL5LIB=$(CURDIR)` in d/rules is not sufficient, it makes > the pdl build work, but not the script. > > The following in d/rules still works with dh compat 10: > > perl -Mblib debian/write_config_debian.pl > blib/lib/PDL/Config/Debian.pm > > Is there a way to make this work when PERL_USE_UNSAFE_INC and -I are not > longer used with dh compat 11 and up? After some playing around I found something that builds: #v+ diff --git a/debian/compat b/debian/compat index f599e28b..48082f72 100644 --- a/debian/compat +++ b/debian/compat @@ -1 +1 @@ -10 +12 diff --git a/debian/control b/debian/control index e38cfaa7..6b99c180 100644 --- a/debian/control +++ b/debian/control @@ -4,7 +4,7 @@ Uploaders: Henning Glawe <glaweh@debian.org> Section: math Testsuite: autopkgtest-pkg-perl Priority: optional -Build-Depends: debhelper (>= 10.3), +Build-Depends: debhelper (>= 12~), chrpath, freeglut3-dev, gfortran, diff --git a/debian/rules b/debian/rules index 65f1f039..239270fb 100755 --- a/debian/rules +++ b/debian/rules @@ -25,14 +25,14 @@ override_dh_clean: Perldl2/pdl2.pod debian/dh_pdl.1 override_dh_auto_configure: templates - dh_auto_configure -- F77CONF=debian/f77conf.pl \ + PERL5LIB=$(CURDIR) dh_auto_configure -- F77CONF=debian/f77conf.pl \ PDLCONF=debian/perldl.conf override_dh_auto_build: LD_RUN_PATH="" dh_auto_build mkdir -p blib/lib/PDL/Config - perl -Mblib debian/write_config_debian.pl > blib/lib/PDL/Config/Debian.pm + perl -Mblib=$(CURDIR) debian/write_config_debian.pl > blib/lib/PDL/Config/Debian.pm pod2man debian/dh_pdl > debian/dh_pdl.1 #v- Don't ask my why :) Cheers, gregor -- .''`. https://info.comodo.priv.at -- Debian Developer https://www.debian.org : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D 85FA BB3A 6801 8649 AA06 `. `' Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe `- NP: Beatles: Glass Onion
Attachment:
signature.asc
Description: Digital Signature