/usr/bin/perl on FreeBSD

Uri Simchoni uri at samba.org
Thu Dec 21 05:02:49 UTC 2017


On 12/20/2017 11:02 PM, jim via samba-technical wrote:
> Perl location is discovered during the build.
> This location should be used when installing perl scripts.
> 
Good point. I'll be trying the attached patch (need to run it through an
autobuild first...)

Thanks,
Uri.

> On 12/20/2017 3:57 PM, Uri Simchoni via samba-technical 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?
>>
>> Thanks,
>> Uri.
> 
> 

-------------- next part --------------
diff --git a/selftest/wscript b/selftest/wscript
index 9f1fd4d..8264d96 100644
--- a/selftest/wscript
+++ b/selftest/wscript
@@ -202,6 +202,9 @@ def cmd_testonly(opt):
     # tell build system where to find config.h
     os.environ['CONFIG_H'] = 'bin/default/include/config.h'
 
+    # tell the test system where perl is
+    os.environ['PERL'] = env.PERL
+
     st_done = os.path.join(env.SELFTEST_PREFIX, 'st_done')
     if os.path.exists(st_done):
         os.unlink(st_done)


More information about the samba-technical mailing list