[HEADS UP] perl symlinks in /usr/bin will be gone

Sergey Skvortsov skv at protey.ru
Mon Jan 31 02:00:42 PST 2005


Anton Berezin wrote:
> Unless I hear too many cries "don't do that" (with justification), I
> I plan to not create any perl symlinks in /usr/bin in the forthcoming

Very bad idea - it is not "perl-like" at all. Just a cite from "perlrun":

<cite>
Location of Perl

It may seem obvious to say, but Perl is useful only when users can eas-
ily find it.  When possible, it's good for both /usr/bin/perl and
/usr/local/bin/perl to be symlinks to the actual binary.  If that can't
be done, system administrators are strongly encouraged to put (symlinks
to) perl and its accompanying utilities into a directory typically
found along a user's PATH, or in some other obvious and convenient
place.
</cite>

To remove dangling symlinks in pkg-plist:

@unexec [ -L %B/perl5 && ! -x %B/perl5 ] && rm %B/perl5

or a little more sophisticated expression (to restore previous perl-5.00503 
on FreeBSD 4.x for example).

-- 
Sergey Skvortsov
mailto: skv at protey.ru


More information about the freebsd-perl mailing list