• Using XS modules from blib in build target

    From Sebastiaan Couwenberg@21:1/5 to All on Thu Nov 19 15:50:02 2020
    The pdl build fails when using dh compat 12 because debian/write_config_debian.pl can't locate PDL/Core/Dev.pm.

    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?

    Kind Regards,

    Bas

    --
    GPG Key ID: 4096R/6750F10AE88D4AF1
    Fingerprint: 8182 DE41 7056 408D 6146 50D1 6750 F10A E88D 4AF1

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gregor herrmann@21:1/5 to Sebastiaan Couwenberg on Thu Nov 19 19:50:03 2020
    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/Confi
  • From Sebastiaan Couwenberg@21:1/5 to gregor herrmann on Thu Nov 19 21:10:01 2020
    On 11/19/20 7:44 PM, gregor herrmann wrote:
    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:

    [...]

    Don't ask my why :)

    Thanks! That looks better than what I had commited, it will be included
    in the next upload.

    Kind Regards,

    Bas

    --
    GPG Key ID: 4096R/6750F10AE88D4AF1
    Fingerprint: 8182 DE41 7056 408D 6146 50D1 6750 F10A E88D 4AF1

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)