ports/64963: Perl 5.8: make package deletes installed perl binary
Tony Maher
tonymaher at optushome.com.au
Wed Mar 31 02:10:13 UTC 2004
>Number: 64963
>Category: ports
>Synopsis: Perl 5.8: make package deletes installed perl binary
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Mar 30 18:10:12 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Tony Maher
>Release: 4.8R
>Organization:
>Environment:
FreeBSD polly 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Thu Jan 22 14:28:54 EST 2004 root at polly:/usr/obj/usr/src/sys/X330-SMP i386
>Description:
Perl 5.8.0_6 is installed. Tried to make package with latest perl (5.8.2) which failed but /usr/local/bin/perl was deleted.
>How-To-Repeat:
Perl 5.8.0_6 installed.
cd /usr/ports/lang/perl5.8
grep PERL_VER= Makefile
PERL_VER= 5.8.2
make package
>Fix:
Rev 1.65 of the Makefile introduced a pre-install target that deletes
${PREFIX}/bin/perl (and PERL_VER).
Surely this is against POLA.
I do not expect make install (or package) to delete anything in the installed system.
The CVS log indicate that this was done to overcome weird symlinking possibly from portupgrade. *IF* this is the case then fixing portupgrade would be preferable.
Should not the perl ports install the actual perl binary as perl${version} and just have perl a symlink to the version?
Rather than the current:
-rwxr-xr-x 1 root wheel 811876 Apr 29 2003 perl*
lrwxr-xr-x 1 root wheel 19 Mar 31 10:20 perl5@ -> /usr/local/bin/perl
lrwxrwxrwx 1 root wheel 19 Mar 31 10:20 perl5.8.0@ -> /usr/local/bin/perl
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list