Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.perl > #8865

Re: Package build problem with Module::Build and XS

From "Stefan Hornburg (Racke)" <racke@linuxia.de>
Newsgroups linux.debian.maint.perl
Subject Re: Package build problem with Module::Build and XS
Date 2020-07-21 15:40 +0200
Message-ID <Av0EV-pr-3@gated-at.bofh.it> (permalink)
References <AuXQK-7aK-5@gated-at.bofh.it> <Av0EV-pr-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On 7/21/20 3:32 PM, Dominic Hargreaves wrote:
> On Tue, Jul 21, 2020 at 11:54:50AM +0200, Stefan Hornburg (Racke) wrote:
>> I'm trying to update a really old Debian package (safe-hole-perl) because of bug
>> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=965811.
>>
>> It uses Module::Build and is a XS module.
>>
>> Error message on build:
>>
>> dh binary
>>    dh_testroot
>>    dh_prep
>>    dh_auto_install
>> 	perl Build install --destdir /var/tmp/debaux-racke/safe-hole-perl/safe-hole-perl-0.14/debian/libsafe-hole-perl
>> --create_packlist 0
>> Building Safe-Hole
>> WARNING: Can't figure out install path for types: arch lib
>> Files will not be installed.
>> Installing
>> /var/tmp/debaux-racke/safe-hole-perl/safe-hole-perl-0.14/debian/libsafe-hole-perl/home/racke/perl5/perlbrew/perls/perl-5.30.0/man/man3/Safe::Hole.3
> 
> At a guess, the problem is related to the fact your perl is a perlbrew
> one (see the install path above).
> 
> Does it work if you arrange for the perl in your path to be /usr/bin/perl?
> 
> This smells like a bug in debhelper to me - perl policy says that perl
> should be /usr/bin/perl in shebangs, and I think the same should apply
> here. I'm amazed this hasn't bit us before, if I'm right (it's been like
> this since at least 2009, and probably forever).
> 
> https://salsa.debian.org/debian/debhelper/-/blob/master/lib/Debian/Debhelper/Buildsystem/perl_build.pm#L44
> 
> Dominic
> 
> 

Yes, that was the problem. After "perlbrew off" it works as expected. It is an old problem indeed.

Thanks a lot (to Dominique as well) for the quick answer.

Regards
        Racke

-- 
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

Back to linux.debian.maint.perl | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Package build problem with Module::Build and XS "Stefan Hornburg (Racke)" <racke@linuxia.de> - 2020-07-21 12:40 +0200
  Re: Package build problem with Module::Build and XS Dominique Dumont <dod@debian.org> - 2020-07-21 15:00 +0200
  Re: Package build problem with Module::Build and XS Dominic Hargreaves <dom@earth.li> - 2020-07-21 15:40 +0200
    Re: Package build problem with Module::Build and XS "Stefan Hornburg (Racke)" <racke@linuxia.de> - 2020-07-21 15:40 +0200
      Bug#966396: debhelper: should invoke perl as /usr/bin/perl Dominic Hargreaves <dom@earth.li> - 2020-07-28 00:30 +0200

csiph-web