Bug#901807: libmath-gsl-perl: incompatible with GSL >= 2.5

Niko Tyni ntyni at debian.org
Sun Jun 24 13:38:16 BST 2018


On Mon, Jun 18, 2018 at 05:40:34PM +0200, gregor herrmann wrote:
> Source: libmath-gsl-perl
> Version: 0.39-1
> Severity: serious
> Tags: upstream buster sid
> Justification: fails to build from source (but built successfully in the past)
> Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=123306

>    dh_auto_build
> 	perl Build
> Building Math-GSL
> VERSION MISMATCH: Let's hope for the best.
> Processing 2.2.1 XS files, GSL 2.5 (via gsl-config) at /usr
> [build warnings]
>    dh_auto_test
> 	perl Build test --verbose 1
> VERSION MISMATCH: Let's hope for the best.
> Processing 2.2.1 XS files, GSL 2.5 (via gsl-config) at /usr
> […]
> #   Failed test 'use Math::GSL::Linalg;'
> #   at t/00-load.t line 11.
> #     Tried to use 'Math::GSL::Linalg'.
> #     Error:  Can't load '/build/libmath-gsl-perl-0.39/blib/arch/auto/Math/GSL/Linalg/Linalg.so' for module Math::GSL::Linalg: /build/libmath-gsl-perl-0.39/blib/arch/auto/Math/GSL/Linalg/Linalg.so: undefined symbol: gsl_linalg_hessenberg at /usr/lib/x86_64-linux-gnu/perl/5.26/DynaLoader.pm line 187.
> #  at /build/libmath-gsl-perl-0.39/blib/lib/Math/GSL/Linalg.pm line 11.
> # Compilation failed in require at t/00-load.t line 11.
> # BEGIN failed--compilation aborted at t/00-load.t line 11.

There seem to be multiple problems here.

One issue is that libgsl23 broke its ABI in 2.5+dfsg-1. I've filed #902281
about that.

Another is that the code in xs/ should really be rebuilt from the
sources in swig/, but this is currently skipped; Build.PL has

 my $ver2func = do(catfile(qw/inc ver2func/));

which breaks silently now that cwd is not on @INC anymore.

I was able to cobble a working rebuild together with something like this:

 perl -I. Build.PL
 perl Build clean  # removes xs/*
 perl -I. Build.PL
 perl Build # regenerates xs/*
 perl Build test

and the attached two patches. The latter one may not turn out to be
necessary if the deprecated functions get reinstated with #902281.
-- 
Niko Tyni   ntyni at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-a-swig-syntax-error-in-Integration.i.patch
Type: text/x-diff
Size: 1094 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-perl-maintainers/attachments/20180624/fc30b730/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Disable-deprecated-function-usage-in-SF.i.patch
Type: text/x-diff
Size: 689 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-perl-maintainers/attachments/20180624/fc30b730/attachment-0001.patch>


More information about the pkg-perl-maintainers mailing list