Date: Mon, 13 Aug 2001 12:28:24 +0300 (EEST) From: Maxim Sobolev <sobomax@FreeBSD.ORG> To: js@jeannot.org (Jean-Sebastien Roy) Cc: knu@iDaemons.org (Akinori MUSHA), freebsd-ports@FreeBSD.ORG Subject: Re: Problem removing links to directories with pkg_delete Message-ID: <200108130929.f7D9T6K11536@vega.vega.com> In-Reply-To: <no.id> from "Jean-Sebastien Roy" at Aug 13, 2001 08:24:04 AM
next in thread | previous in thread | raw e-mail | index | archive | help
> > >At Sun, 12 Aug 2001 22:10:25 +0200, > >Jean-Sebastien Roy wrote: > >> I made a port (scilab 2.6, see: ports/26997) that includes a file > >> named "config" in it's plist. This file is a link to a > >> directory. (the name has no importance) > >> > >> When I use "make deinstall" to uninstall the port, everything is fine. > >> (I used the recommanded test ordering in the handbook and everything went fine) > >> > >> But when I use pkg_delete, it complains that the directory enclosing > >> "config" cannot be removed because it is not empty. Indeed, it > >> contains "config", which was not removed. I suppose it's because its > >> MD5 checksum changed while pkg_delete removed file in the directory > >> "config" points to. > >> What is the recomended way to cope with this problem (and with links > >> inside plist in general) ? > > > >List the symlink prior to the file/directory it points to. :) > > Of course... but it breaks the handbook recommendation to keep the files sorted alphabeticaly. It's the only solution ? I have a patch in the local CVS that changes the way pkg_create(8) registers checksums of symlinks - i.e. instead of checksum of entry the link is poining to it registers checksum of the value returned by readlink(2). This should fix the problem in question. I'll try to commit this fix after 4.4 is out. -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108130929.f7D9T6K11536>