Date: Tue, 25 Feb 1997 13:56:10 -0800 (PST) From: pius@ienet.com To: freebsd-gnats-submit@freebsd.org Subject: ports/2814: mtools port doesn't remove symlinks when port is deleted Message-ID: <199702252156.NAA19182@freefall.freebsd.org> Resent-Message-ID: <199702252200.OAA19325@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 2814 >Category: ports >Synopsis: mtools port doesn't remove symlinks when port is deleted >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Feb 25 14:00:01 PST 1997 >Last-Modified: >Originator: Pius Fischer >Organization: >Release: 2.2-961006-SNAP >Environment: FreeBSD iago.ienet.com 2.2-961006-SNAP FreeBSD 2.2-961006-SNAP #0: Tue Jan 7 13:59:56 PST 1997 terryl@iago.ienet.com:/usr/src/sys/compile/IAGO i386 >Description: The mtools port creates several symlinks in /usr/local/bin, but these are not deleted when the port is deleted with pkg_delete. The PLIST needs an "@unexec rm" for each "@exec ln -fs %D/%F". >How-To-Repeat: cd /usr/ports/emulators/mtools make all install clean pkg_delete -v mtools-3.0 (now you have a bunch of symlinks in /usr/local/bin that point to mtools, but mtools has been removed) >Fix: Here's a patch for /usr/ports/emulators/mtools/pkg/PLIST: *** PLIST Thu Dec 26 12:35:02 1996 --- PLIST.new Tue Feb 25 13:19:30 1997 *************** *** 16,21 **** --- 16,38 ---- @exec ln -fs %D/%F %B/mtype @exec ln -fs %D/%F %B/mwrite @exec ln -fs %D/%F %B/mttest + @unexec rm %B/mattrib + @unexec rm %B/mcd + @unexec rm %B/mcopy + @unexec rm %B/mdel + @unexec rm %B/mdeltree + @unexec rm %B/mdir + @unexec rm %B/mformat + @unexec rm %B/mlabel + @unexec rm %B/mmd + @unexec rm %B/mmount + @unexec rm %B/mmove + @unexec rm %B/mrd + @unexec rm %B/mread + @unexec rm %B/mren + @unexec rm %B/mtype + @unexec rm %B/mwrite + @unexec rm %B/mttest bin/mkmanifest bin/mcheck bin/mxtar >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702252156.NAA19182>