Bug#913637: /usr/bin/prefix: won't work if built on a merged-/usr system and used on an unmerged-/usr system

gregor herrmann gregoa at debian.org
Tue Nov 13 15:40:51 GMT 2018


On Tue, 13 Nov 2018 10:41:34 +0000, Simon McVittie wrote:

> * Have two systems/chroots/containers, one with merged /usr (/bin is a
>   symlink to /usr/bin) and one without
> * Build libapp-options-perl on the first system
> * Install it on the second system and use /usr/bin/prefix
> 
> Expected result:
> 
> * prefix is a #!/bin/bash script and works correctly
> 
> Actual result:
> 
> * prefix is a #!/usr/bin/bash script and won't start on non-merged-/usr
>   systems

Ouch, that's nasty.
Thanks for this report.
 
> I don't know what part of the build rewrites that first line or how to
> fix it. Please reassign this bug if it's really a bug in generic Perl
> build infrastructure.

I don't see anything in the package; my hunch is that
ExtUtil::MakeMaker (ExtUtils::MM_Unix and _fixin_replace_shebang())
does this rewriting. If this is correct we have a problem in all
packages using EUMM and shipping scripts (and also in third-party
code probably).
 

Cheers,
gregor; CC'ing the experts :)

-- 
 .''`.  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: Der Junge mit der Gitarre: Das Rauschen (Hidden Track) Gott ist gut
-------------- 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/pkg-perl-maintainers/attachments/20181113/f7580ffb/attachment.sig>


More information about the pkg-perl-maintainers mailing list