Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Apr 2010 23:14:28 -0400 (EDT)
From:      Sahil Tandon <sahil@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        marck@FreeBSD.org
Subject:   ports/145743: [PATCH] www/oops: fix pkg-plist to delete directories installed out of PREFIX (on /var)
Message-ID:  <20100416031428.A49D7170F0@spartan.hamla.org>
Resent-Message-ID: <201004160320.o3G3K1mp096410@freefall.freebsd.org>

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

>Number:         145743
>Category:       ports
>Synopsis:       [PATCH] www/oops: fix pkg-plist to delete directories installed out of PREFIX (on /var)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 16 03:20:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Sahil Tandon
>Release:        FreeBSD 9.0-CURRENT i386
>Organization:
>Environment:

	
>Description:
- Fix pkg-plist to delete directories installed out of PREFIX (on /var)
>How-To-Repeat:
- Install www/oops and then deinstall it; notice that /var/log/oops and /var/run/oops directories are not cleaned up.  This is because the @dirrmtry macro prepends PREFIX to its arguments; therefore, we need to reset PREFIX to '/' with @cwd for the @dirrmtry macro to work properly towards the end of the pkg-plist.
>Fix:

	



--- oops.diff begins here ---
Index: pkg-plist
===================================================================
RCS file: /home/pcvs/ports/www/oops/pkg-plist,v
retrieving revision 1.10
diff -u -r1.10 pkg-plist
--- pkg-plist	29 Jun 2008 09:53:46 -0000	1.10
+++ pkg-plist	16 Apr 2010 02:41:22 -0000
@@ -57,6 +57,7 @@
 @dirrmtry oops/logs
 @dirrmtry oops/storages
 @dirrmtry oops
+@cwd /
 @dirrmtry /var/log/oops
 @unexec rm -f /var/run/oops/oopsctl 2>/dev/null || true
 @unexec rm -f /var/run/oops/oops_statfile 2>/dev/null || true
--- oops.diff ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



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