Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jun 2015 18:08:38 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 200918] sysutils/bacula-server
Message-ID:  <bug-200918-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200918

            Bug ID: 200918
           Summary: sysutils/bacula-server
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: dvl@FreeBSD.org
          Reporter: dweimer@dweimer.net
             Flags: maintainer-feedback?(dvl@FreeBSD.org)
          Assignee: dvl@FreeBSD.org

Bacula appears to be running under an environment that has only
/bin,/sbin,/usr/bin,/usr/sbin in its PATH environment variable. After the perl
5.20 version update this breaks the following default script.

/usr/local/share/bacula/make_catalog_backup.pl

The first line is
#!/usr/bin/env perl

After the perl 5.20 update the symlink /usr/bin/perl is removed, ideally the
service should be running with the correct environment to include
/usr/local/bin and /usr/local/sbin in the path.

tested by creating a script with the single line.
env

Called it from an admin job scheduled to run the test script, and received the
following output from the admin job, as the PATH variable in the environment.
PATH=/sbin:/bin:/usr/sbin:/usr/bin

Can be worked around by changing the scripts first line to
#!/usr/local/bin/perl

20150513:
  AFFECTS: users of lang/perl5*
  AUTHOR: mat@FreeBSD.org

  The default Perl version has been switched to Perl 5.20.  If you are using
  binary packages to upgrade your system, you do not have anything to do, pkg
  upgrade will do the right thing.  For the other people, assuming you are
  migrating from 5.18 to 5.20, do:

  Portupgrade users:
        portupgrade -o lang/perl5.20 -f lang/perl5.18

        portupgrade -f `pkg shlib -R libperl.so.5.18|tail +2`

  Portmaster users:
        portmaster -o lang/perl5.20 lang/perl5.18

        portmaster -f `pkg shlib -R libperl.so.5.18|tail +2`

  NOTE:
    Perl has been removed from base more than ten years ago, so it was way past
    time for the /usr/bin/perl symlink to be removed from the port.  If for
    some strange reason, you still need it, you will have to create it
    manually.

  IMPORTANT:
    In case you have not updated your system in a while, and specifically,
    followed the 20141126 instructions regarding the new Perl layout, you
    should follow those more extensive instructions rather than the
    conservative presented here.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-200918-13>