pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/50772: perl and check_interpreter
The following reply was made to PR pkg/50772; it has been noted by GNATS.
From: David Holland <dholland-pbugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/50772: perl and check_interpreter
Date: Sat, 6 Feb 2016 06:02:09 +0000
On Fri, Feb 05, 2016 at 03:05:00PM +0000, Patrick Welche wrote:
> The output of the following script comes as a surprise:
> $ cat foo.pl
> #! /usr/pkg/bin/perl
> print "$^X\n"; # $EXECUTABLE_NAME in English
> $ ./foo.pl
> /usr/pkg/bin/perl5.22.1
What mechanism is underneath that?
> Many possibilities, but which is closest to "correct"?
> 1) Don't hard link, but copy /usr/pkg/bin/perl.
> 2) Patch spamd to exec $perl_from_hashbang_line instead of $EXECUTABLE_NAME
> ( = $^X).
> 3) Patch /etc/rc.d/spamd to avoid using rc.subr with its command_interpreter
> checks.
> 4) Patch /etc/rc.subr to override procname match given pidfile.
my vote would be (5) fix perl.
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index