/usr/bin/perl on FreeBSD

Uri Simchoni uri at samba.org
Wed Dec 20 20:57:24 UTC 2017


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 --------------
From e822fb9ee757b555be1034bb09b41ff90417ab62 Mon Sep 17 00:00:00 2001
From: Uri Simchoni <uri at samba.org>
Date: Wed, 20 Dec 2017 20:12:57 +0000
Subject: [PATCH] selftest: fix nt4_member test env on FreeBSD

On FreeBSD, perl is installed as /usr/local/bin/perl.

Signed-off-by: Uri Simchoni <uri at samba.org>
---
 third_party/nss_wrapper/nss_wrapper.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/third_party/nss_wrapper/nss_wrapper.pl b/third_party/nss_wrapper/nss_wrapper.pl
index 48fa2c5..1171e80 100755
--- a/third_party/nss_wrapper/nss_wrapper.pl
+++ b/third_party/nss_wrapper/nss_wrapper.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 
 use strict;
-- 
2.9.5



More information about the samba-technical mailing list