ports/145743: [PATCH] www/oops: fix pkg-plist to delete directories installed out of PREFIX (on /var)
Sahil Tandon
sahil at FreeBSD.org
Fri Apr 16 03:20:02 UTC 2010
>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
+ at 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:
More information about the freebsd-ports-bugs
mailing list