Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Oct 2013 03:53:45 +1100
From:      andrew clarke <mail@ozzmosis.com>
To:        Yuri <yuri@rawbw.com>
Cc:        "ports@freebsd.org" <ports@freebsd.org>
Subject:   Re: Should /usr/bin/perl be a link to /usr/local/bin/perl ?
Message-ID:  <20131021165345.GA50487@ozzmosis.com>
In-Reply-To: <52655AA1.6090304@rawbw.com>
References:  <52655AA1.6090304@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon 2013-10-21 09:47:29 UTC-0700, Yuri (yuri@rawbw.com) wrote:

> I found that many ports specify /usr/bin/perl as an interpreter. This 
> comes from Linux. Examples: valgrind-snapshot, windowmaker, enscript-a4, 
> a2ps, svgalib
> /usr/bin/perl isn't installed by perl port.
> 
> There are several solutions, in the order of increasing complexity of 
> solution:
> 1. Install the link /usr/bin/perl (hackish, but it will fix many broken 
> ports in one shot)
> 2. Make a package scripts check for interpreter and break the install of 
> offending packages
> 3. Fix all offending packages
> 
> Which solution should be preferred in your opinion?

Are you aware the Perl interpreter ports already have a make option to
create symlinks in /usr/bin?

$ pwd
/usr/ports/lang/perl5.14

$ make showconfig | grep USE_PERL
     USE_PERL=on: Rewrite links in /usr/bin

$ ls -l /usr/bin/perl
lrwxr-xr-x  1 root  wheel  25 10 Oct 14:04 /usr/bin/perl -> /usr/local/bin/perl5.14.4

Regards
Andrew



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