Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Mar 2004 18:03:39 -0800 (PST)
From:      Tony Maher <tonymaher@optushome.com.au>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/64963: Perl 5.8: make package deletes installed perl binary
Message-ID:  <200403310203.i2V23dil042043@www.freebsd.org>
Resent-Message-ID: <200403310210.i2V2ACM7004100@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



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