From dan@dan.emsphone.com  Mon Jun 10 08:06:05 2002
Return-Path: <dan@dan.emsphone.com>
Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101])
	by hub.freebsd.org (Postfix) with ESMTP id ED25037B40F
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 10 Jun 2002 08:06:01 -0700 (PDT)
Received: (from dan@localhost)
	by dan.emsphone.com (8.12.3/8.12.3) id g5AF611w099621;
	Mon, 10 Jun 2002 10:06:01 -0500 (CDT)
	(envelope-from dan)
Message-Id: <200206101506.g5AF611w099621@dan.emsphone.com>
Date: Mon, 10 Jun 2002 10:06:01 -0500 (CDT)
From: Dan Nelson <dan@dan.emsphone.com>
Reply-To: Dan Nelson <dan@dan.emsphone.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: removing perl5 port removes files installed by p5-* ports
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         39108
>Category:       ports
>Synopsis:       removing perl5 port removes files installed by p5-* ports
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    tobez
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 10 08:10:03 PDT 2002
>Closed-Date:    Sun Jun 16 14:28:14 CEST 2002
>Last-Modified:  Sun Jun 16 14:28:14 CEST 2002
>Originator:     Dan Nelson
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
The Allant Group
>Environment:
System: FreeBSD dan.emsphone.com 5.0-CURRENT FreeBSD 5.0-CURRENT #166: Fri Jun 7 15:11:37 CDT 2002 dan@dan.emsphone.com:/usr/src/sys/i386/compile/DANSMP i386


	
>Description:

The perl5 port pkg-plist has as its last two lines:

@unexec rm -rf %D/lib/perl5/%%PERL_VER%%
@unexec rm -rf %D/lib/perl5/site_perl/%%PERL_VER%%

This means that any files installed by the user or other ports in those
directories get removed when the perl5 port is removed.  Ports should
only remove files they themselves installed.  That's what the plist is
for.

	
>How-To-Repeat:

Install perl-5.6.1_4
Install any p5-* port
Pkg_upgrade to perl-5.6.1_5
Notice that the files insatlled by the p5-* port are now gone.

	
>Fix:


Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/lang/perl5/pkg-plist,v
retrieving revision 1.25
diff -u -r1.25 pkg-plist
--- pkg-plist	19 Dec 2001 17:05:04 -0000	1.25
+++ pkg-plist	10 Jun 2002 15:00:29 -0000
@@ -894,5 +894,3 @@
 lib/perl5/%%PERL_VER%%/vars.pm
 lib/perl5/%%PERL_VER%%/warnings.pm
 lib/perl5/%%PERL_VER%%/warnings/register.pm
-@unexec rm -rf %D/lib/perl5/%%PERL_VER%%
-@unexec rm -rf %D/lib/perl5/site_perl/%%PERL_VER%%

	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->tobez 
Responsible-Changed-By: petef 
Responsible-Changed-When: Mon Jun 10 08:26:17 PDT 2002 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=39108 
State-Changed-From-To: open->closed 
State-Changed-By: tobez 
State-Changed-When: Sun Jun 16 14:27:45 CEST 2002 
State-Changed-Why:  
Fixed in PORTREVISION 6. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=39108 
>Unformatted:
