/usr/bin/perl on FreeBSD

Timur I. Bakeyev timur at freebsd.org
Thu Dec 21 23:18:31 UTC 2017


On Wed, Dec 20, 2017 at 9:57 PM, Uri Simchoni <uri at samba.org> wrote:

> Hi,
>
> We seem to have many perl scripts with a "#!/usr/bin/perl" shebang,
> which doesn't work on my FreeBSD 11.1-RELEASE machine (where perl is at
> /usr/local/bin/perl, but /user/bin/env perl works)
>
> For example, the attached patch fixes setting up the nt4_member test
> env, but there are ~70 scripts with /usr/bin/perl.
>
> Do we fix all those scripts or ask FreeBSD developers to kindly install
> a symlink or something when they build Samba?
>

Somehow I never faced with that particular problem, maybe due the way I/we
build the Samba port.

Symlink to /usr/bin used to be provided in the past, but now it's gone and
I don't think it'll strike back.

In general, I'd vote for the auto-detection and/or usage $ENV{'PERL'} or
$ENV{'PERL5'} for that.


With regards,
Timur Bakeyev.


More information about the samba-technical mailing list