/usr/bin/perl on FreeBSD

Uri Simchoni uri at samba.org
Thu Dec 21 23:23:19 UTC 2017


On 12/22/2017 01:18 AM, Timur I. Bakeyev wrote:
> 
> On Wed, Dec 20, 2017 at 9:57 PM, Uri Simchoni <uri at samba.org
> <mailto: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.
> 

The problem surfaces when running "make test", not when building.

> 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.
> 
> 

Already posted a solution in that spirit, forgot to cc you but you can
see it on samba-technical.

Thanks,
Uri.

> With regards,
> Timur Bakeyev.
> 




More information about the samba-technical mailing list