ports/110981: [Patch] Better cleanup on deinstallation for foomatic-db
Michael Nottebrock
lofi at FreeBSD.org
Wed Mar 28 19:50:08 UTC 2007
>Number: 110981
>Category: ports
>Synopsis: [Patch] Better cleanup on deinstallation for foomatic-db
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Mar 28 19:50:07 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Michael Nottebrock
>Release: FreeBSD 5.5-RELEASE-p11 i386
>Organization:
>Environment:
System: FreeBSD kiste 5.5-RELEASE-p11 FreeBSD 5.5-RELEASE-p11 #1: Sun Mar 25 14:55:10 CEST 2007 root at kiste:/usr/obj/usr/src/sys/KISTE-SMP i386
>Description:
foomatic-db checks for a CUPS installation and, if found,
creates a symlink to its PPD archive in the shared cups
PPD directory. This symbolic link needs to be cleaned up
on deinstallation or else it will be left dangling and cause
creation of a recursive symlink within the foomatic-db PPD
directory upon subsequent reinstallation.
Additionally, $PREFIX/share/foomatic should be removed
via @dirrmtry, since other ports may also install files
and directories into that location (for example foomatic-db-
engine).
>How-To-Repeat:
>Fix:
--- foomatic-db-2.diff begins here ---
Index: pkg-plist
===================================================================
RCS file: /home/pcvs/ports/print/foomatic-db/pkg-plist,v
retrieving revision 1.14
diff -u -r1.14 pkg-plist
--- pkg-plist 1 Feb 2007 20:50:38 -0000 1.14
+++ pkg-plist 28 Mar 2007 19:39:05 -0000
@@ -4335,4 +4335,5 @@
@dirrm share/foomatic/db/source/PPD
@dirrm share/foomatic/db/source
@dirrm share/foomatic/db
- at dirrm share/foomatic
+ at dirrmtry share/foomatic
+ at unexec unlink %D/share/cups/model/foomatic-db-ppds > /dev/null 2>&1 || true
--- foomatic-db-2.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list