[Debian-med-packaging] How to deal with lintian warning "incorrect-path-for-interpreter" properly (Was: Bug#961661: ITP: samclip -- filter SAM file for soft and hard clipped alignments)

gregor herrmann gregoa at debian.org
Wed May 27 15:26:21 BST 2020


On Wed, 27 May 2020 13:50:17 +0200, Andreas Tille wrote:

> I'm freqently stumbling upon things like
> 
>   W: samclip: incorrect-path-for-interpreter usr/bin/samclip (#!/usr/bin/env perl != /usr/bin/perl)
> 
> and my usual way to deal with this was firing up sed in d/rules.  However,
> I can not imagine that you have a more clever way how to deal with this.
> Any hint how I can do this more elegantly?

We're also using sed, typically:

% cat libtext-simpletable-perl/debian/rules
#!/usr/bin/make -f

PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)

%:
	dh $@

override_dh_installexamples:
	dh_installexamples
	sed -i '1s|^#!/usr/bin/env perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/*


or

% cat zonemaster-cli/debian/rules
#!/usr/bin/make -f

PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)

%:
	dh $@

override_dh_install:
	dh_install
	sed -i '1s|^#!/usr/bin/env perl|#!/usr/bin/perl|' $(TMP)/usr/bin/$(PACKAGE)


> Moreover some kind review of this pure Perl package would be nice.

(Not from me today.)
 

Cheers,
gregor

-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   NP: Rolling Stones: Sympathy for the Devil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: Digital Signature
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20200527/f8a14c2d/attachment.sig>


More information about the Debian-med-packaging mailing list