From owner-freebsd-questions@FreeBSD.ORG Wed Jun 11 13:09:33 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3A3A5D0F for ; Wed, 11 Jun 2014 13:09:33 +0000 (UTC) Received: from webmail.dweimer.net (24-240-198-187.static.stls.mo.charter.com [24.240.198.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "webmail2.dweimer.local", Issuer "webmail2.dweimer.local" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 073102569 for ; Wed, 11 Jun 2014 13:09:32 +0000 (UTC) Received: from www.dweimer.net (webmail [192.168.5.2]) by webmail.dweimer.net (8.14.7/8.14.7) with ESMTP id s5BD9UQl008449 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 11 Jun 2014 08:09:30 -0500 (CDT) (envelope-from dweimer@dweimer.net) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 11 Jun 2014 08:09:30 -0500 From: dweimer To: FreeBSD Questions Subject: Perl 5.18 to 5.20 Broke Bacula Database Backup Script Organization: dweimer.net Reply-To: dweimer@dweimer.net Mail-Reply-To: dweimer@dweimer.net Message-ID: <1dec5abd12c78e689c8914a8ec7e05db@dweimer.net> X-Sender: dweimer@dweimer.net User-Agent: Roundcube Webmail/1.0.1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2014 13:09:33 -0000 I upgraded my FreeBSD 10 Bacula server's Perl installation from 5.18 to 5.20 yesterday. This morning I discovered that the the Bacula Catalog backup script failed. 2014-06-11 07:37:35 bacula-dir JobId 1809: shell command: run BeforeJob "/usr/local/share/bacula/make_catalog_backup.pl MyCatalog" 2014-06-11 07:37:35 bacula-dir JobId 1809: BeforeJob: env: perl: No such file or directory 2014-06-11 07:37:35 bacula-dir JobId 1809: Error: Runscript: BeforeJob returned non-zero status=127. ERR=Child exited with code 127 Examining the script file fond the first line of: #!/usr/bin/env perl Modifying it to: #!/usr/bin/env /usr/local/bin/perl Resolves the issue. It appears from looking at one of my FreeBSD 10 systems that I haven't made the upgrade to 5.20 yet, that the perl link was created as /usr/bin/perl instead of /usr/local/bin/perl Was this change intentional? Shouldn't there be a note in /ust/ports/UPDATING or the like pointing this out? I am guessing its likely that other ports / scripts could be effected by this. -- Thanks, Dean E. Weimer http://www.dweimer.net/