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: Stephen Borrill <netbsd%precedence.co.uk@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: pkg/50772 perl and check_interpreter
Date: Fri, 18 Nov 2016 12:20:49 +0000 (GMT)
A few notes:
Problem is not 100% reproducible. I expect this is depend on the order
that the link names are returned when looked up. On two different
systems:
$ cat foo24.pl
#! /usr/pkg/bin/perl5.24.0
print "$^X\n"; # $EXECUTABLE_NAME in English
$ cat foo.pl
#! /usr/pkg/bin/perl
print "$^X\n"; # $EXECUTABLE_NAME in English
# ./foo.pl
/usr/pkg/bin/perl
# ./foo24.pl
/usr/pkg/bin/perl5.24.0
# ls -l /usr/pkg/bin/perl*
-rwxr-xr-x 2 root wheel 11103 Aug 11 10:30 /usr/pkg/bin/perl
-rwxr-xr-x 2 root wheel 11103 Aug 11 10:30 /usr/pkg/bin/perl5.24.0
mail# ./foo.pl
/usr/pkg/bin/perl5.24.0
mail# ./foo24.pl
/usr/pkg/bin/perl5.24.0
mail# ls -l /usr/pkg/bin/perl*
-rwxr-xr-x 2 root wheel 11103 Oct 20 16:45 /usr/pkg/bin/perl
-rwxr-xr-x 2 root wheel 11103 Oct 20 16:45 /usr/pkg/bin/perl5.24.0
On the machine exhibiting the problem, I ran through a few steps regarding
Patrick's option 3):
mail# ps axww -p `cat /var/run/spamd.pid`
PID TTY STAT TIME COMMAND
25312 ? Ss 0:13.71 /usr/pkg/bin/perl5.24.0 -T -w /usr/pkg/bin/spamd -m 15 -x -u spamassassin -d -r /var/run/spamd.pid
mail# . /etc/rc.subr
mail# check_pidfile /var/run/spamd.pid /usr/pkg/bin/spamd
mail# check_pidfile /var/run/spamd.pid /usr/pkg/bin/spamd /usr/pkg/bin/perl
mail# check_pidfile /var/run/spamd.pid /usr/pkg/bin/spamd /usr/pkg/bin/perl5.24.0
sh: WARNING: $command_interpreter /usr/pkg/bin/perl5.24.0 != /usr/pkg/bin/perl
Patrick worked on his step 2) and has submitted a bug report and a
patch for spamd to spamassassin:
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7295
https://bz.apache.org/SpamAssassin/attachment.cgi?id=5377&action=view
I've been using his patch in production for a while without problems
--
Stephen
Home |
Main Index |
Thread Index |
Old Index