[Debian-med-packaging] Bug#761134: [Help] strange 'missing-dependency-on-perlapi' lintian warning

gregor herrmann gregoa at debian.org
Fri Sep 12 12:42:36 UTC 2014


Control: tag -1 + patch

On Fri, 12 Sep 2014 10:40:58 +0200, Jakub Wilk wrote:

> dh_perl can't find the Perl modules, because they were installed into wrong
> directory:
> 
> $ dpkg -c libsbml5-perl_5.10.0+dfsg-1_amd64.deb | grep -E '[.](pm|so)$'
> -rw-r--r-- root/root  14460736 2014-09-11 13:31 ./usr/lib/perl5/site_perl/5.20.0/x86_64-linux-gnu-thread-multi/auto/libSBML/LibSBML.so
> -rw-r--r-- root/root   2688864 2014-09-11 12:22 ./usr/lib/perl5/site_perl/5.20.0/x86_64-linux-gnu-thread-multi/LibSBML.pm
> 
> But the correct place to install arch-specific Perl modules is:
> 
> $ perl -MConfig -E'say $Config{vendorarch}'
> /usr/lib/x86_64-linux-gnu/perl5/5.20

Exactly.

That's usually caused by a build system which uses INSTALLDIRS=site,
which should be vendor ... And in practice left out in Debian since
our toolery sets it.

Here we are:

% grep -ir installdirs *
[..]
src/bindings/perl/Makefile.PL.in:              INSTALLDIRS => "site",


Oh, and then we have

src/bindings/perl/CMakeLists.txt:  set(PERL_PACKAGE_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/perl5/site_perl/${PERL_VERSION}/${PERL_PLATFORM})

Ouch!


I'm attaching two patches (the first being hacky and without DEP3
headers) that seem to work, as in place the perl modules into the
right directory and getting the dependencies on perl(api) right.


Cheers,
gregor 

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: U2: One
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-patch-to-fix-perl-install-paths-in-upstream-buil.patch
Type: text/x-diff
Size: 2445 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20140912/c4fa6097/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Use-executable-debian-libsbml5-perl.install-to-find-.patch
Type: text/x-diff
Size: 716 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20140912/c4fa6097/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: Digital Signature
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20140912/c4fa6097/attachment.sig>


More information about the Debian-med-packaging mailing list