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 <
[email protected]>
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/Confi