Date: Wed, 28 Mar 2007 21:49:05 +0200 (CEST) From: Michael Nottebrock <lofi@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/110981: [Patch] Better cleanup on deinstallation for foomatic-db Message-ID: <200703281949.l2SJn5X1058674@kiste.my.domain> Resent-Message-ID: <200703281950.l2SJo7VB073223@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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 -@dirrm share/foomatic +@dirrmtry share/foomatic +@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703281949.l2SJn5X1058674>