Date: Tue, 19 Apr 2011 01:03:23 -0700 (PDT) From: "David O'Brien" <obrien@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/156492: Multiple versions of Perl not supported Message-ID: <201104190803.p3J83N3c000796@dragon.nuxi.org> Resent-Message-ID: <201104190810.p3J8AAfs072497@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 156492 >Category: ports >Synopsis: Multiple versions of Perl not supported >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Apr 19 08:10:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: David O'Brien >Release: FreeBSD 9.0-CURRENT i386 >Organization: The FreeBSD Project >Environment: System: FreeBSD dragon.NUXI.org 9.0-CURRENT FreeBSD 9.0-CURRENT #662 r218815:218845M: Tue Feb 22 00:13:31 PST 2011 rootk@dragon.NUXI.org:/sys/i386/compile/DRAGON i386 >Description: One often needs various versions of Perl installed on a FreeBSD system. Either one has old Perl scripts, or during the transition from one Perl version to a newer one. Other than ${PREFIX}/bin/perl and the man pages, multiple versions of Perl can easily co-exist. The specific version desired can be specified by ${PREFIX}/bin/perl${VERSION}. >How-To-Repeat: pkg_add perl-5.8.9_4* pkg_add perl-5.10.1_3* # see the conflict warning pkg_add perl-5.8.9_4* rm /usr/local/bin/perl5.8.9 mv /usr/local/bin/perl /usr/local/bin/perl5.8.9 mv /var/db/pkg/perl-5.8.9_4 /var/db/pkg/XXXperl-5.8.9_4 pkg_add perl-5.10.1_3* rm /usr/local/bin/perl5.10.1 mv /usr/local/bin/perl /usr/local/bin/perl5.10.1 (cd /usr/local/bin ; ln -s perl5.10.1 perl) mv /var/db/pkg/XXXperl-5.8.9_4 /var/db/pkg/perl-5.8.9_4 >Fix: Change the ports to not install a ${PREFIX}/bin/perl and instead have a mechanism for what version of perl the ${PREFIX}/bin/perl should be a symlink to. Or leverage the nice way of dealing with multiple MTA's (e.g. sendmail and postfix) using mailwrapper(8) and its '/etc/mail/mailer.conf' configuration file. Maybe it could be leveraged for Perl. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104190803.p3J83N3c000796>