PDL::Stats::Basic needs to be recompiled against the newly installed PDL

Bug #1434508 reported by Niklas Edmundsson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
One Hundred Papercuts
Fix Released
Undecided
Unassigned
libpdl-stats-perl (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

Ubuntu trusty/14.04 (LTS).

Although package can be installed, it's not usable due to pdl, which it depends on, has been upgraded but this package has not been rebuilt against it.

This affects all LTS installations (mostly enterprise environments, compute clusters, etc) that wishes to do statistics using
the Perl Data Language, PDL.

[Test Case]

A minimum test script which uses the perl module provided by this package should execute without errors:

$ cat pdlstatstest.pl
#!/usr/bin/perl
use PDL::LiteF; # loads less modules
use PDL::NiceSlice; # preprocessor for easier pdl indexing syntax
use PDL::Stats;

$ ./pdlstatstest.pl
[PDL->Version: 10 PDL_CORE_VERSION: 8 XS_VERSION: ] PDL::Stats::Basic needs to be recompiled against the newly installed PDL at /usr/lib/perl/5.18/DynaLoader.pm line 207.
Compilation failed in require at (eval 27) line 4.
BEGIN failed--compilation aborted at (eval 27) line 4.
BEGIN failed--compilation aborted at ./pdlstatstest.pl line 4.

[Regression Potential]

None, package is not usable as is.

Future regressions might happen if the cause for this package not being rebuilt properly when pdl was upgraded isn't fixed.

[Other Info]

Effort to fix is low, as package only needs to be rebuilt.

$ lsb_release -rd
Description: Ubuntu 14.04.2 LTS
Release: 14.04

$ apt-cache policy libpdl-stats-perl
libpdl-stats-perl:
  Installed: 0.6.2-1build1
  Candidate: 0.6.2-1build1
  Version table:
 *** 0.6.2-1build1 0
        500 http://se.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Niklas Edmundsson (niklas-edmundsson) wrote :

It wasn't as easy as just rebuilding the package, build fails due to a test failing: https://rt.cpan.org/Public/Bug/Display.html?id=89976

Getting a newer source package from http://packages.ubuntu.com/vivid/libpdl-stats-perl and just doing dpkg-buildpackage on it gives me a .deb, and with it installed I have a usable PDL::Stats.

So I don't really know if this falls into the category of an SRU or backport. As the package currently available in trusty doesn't work at all, and the backports page at https://wiki.ubuntu.com/UbuntuBackports hints that bugfixes are more appropriately handled as SRU:s, I guess an SRU makes more sense??

tags: added: ftbfs
affects: pdl (Ubuntu) → libpdl-stats-perl (Ubuntu)
Revision history for this message
Ka Chun Yu (kachunyu) wrote :

Hi Niklas,

I am trying to do the same thing and running into the same problems with my Ubuntu 14.04.2 LTS machine. Neither building from source for PDL-Stats 0.6.3 nor 0.6.5 works.

How do you use dpkg-buildpackage to create a .deb from the source directory? When I run it, I get a "cannot open 'debian/changelog' for reading: No such file or directory" error message.

--kachun

Revision history for this message
Ka Chun Yu (kachunyu) wrote :

Not sure what I did to make it work, but I ended up installing a bunch more new modules through CPAN, including some that were required for dh-make-perl:

Exporter
Carp
XSLoader
AutoLoader
constant
Data::Dumper
Scalar::Util
Test
File::Spec
Time::HiRes
Pod::Simple
Encode
Pod::Man
ExtUtils::MakeMaker
MIME::Base64
Test::Harness
Test::More
Digest::base
Digest::MD5
IO::Handle
Text::Balanced
SelfLoader
File::Temp
CPAN
CPAN::Meta::YAML
version
lib
ExtUtils::ParseXS
Pod::Usage
Getopt::Long
Text::Abbrev
JSON::PP
Parse::CPAN::Meta
Perl::OSType
Locale::Maketext::Simple
Module::Load::Conditional
Module::Load
Params::Check
IPC::Cmd
File::Path
IO::Select
Module::Metadata
ExtUtils::CBuilder
ExtUtils::Manifest
CPAN::Meta::Requirements
CPAN::Meta
ExtUtils::Install
PAR::Dist
Module::Build
Tree::DAG_Node
Sub::Uplevel
Test::Warn
Parse::RecDescent
Filter::Util::Call
YAML
YAML::Syck
Inline::Files
Inline::C

Email::Date
Email::Date::Format
File::Find
File::Find::Rule
Module::Depends
Module::Depends::Intrusive
Software::License::Artistic_2_0
File::DirCompare
Test::Compile
Test::Differences

I still can't make dh-make-perl work, but I can make and install PDL-Stats-0.6.5_2 without any errors now.

Revision history for this message
Bas Couwenberg (sebastic) wrote :

This is fixed in libpdl-stats-perl (0.75-1~exp1) available in Debian experimental.

Ubuntu should pick up these changes after pdl (1:2.016-1) & libpdl-stats-perl (0.75-1) are uploaded to Debian unstable.

dh_pdl is now used to set the pdl dependencies, which should include libpdl-stats-perl in pdl transitions whenever the virtual pdlapi package changes. See:
https://anonscm.debian.org/cgit/pkg-perl/packages/libpdl-stats-perl.git/commit/?id=aa988596280e9464820c039466f4e44db5462b46

https://manpages.debian.org/cgi-bin/man.cgi?query=dh_pdl

Changed in libpdl-stats-perl (Ubuntu):
status: New → Fix Committed
Revision history for this message
Bas Couwenberg (sebastic) wrote :

libpdl-stats-perl (0.75-1) and the related pdl packages are now in yakkety.

Changed in libpdl-stats-perl (Ubuntu):
status: Fix Committed → Fix Released
Changed in hundredpapercuts:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.