From owner-freebsd-ports Wed May 3 3:24:57 2000 Delivered-To: freebsd-ports@freebsd.org Received: from tisch.mail.mindspring.net (tisch.mail.mindspring.net [207.69.200.157]) by hub.freebsd.org (Postfix) with ESMTP id 893BB37B981 for ; Wed, 3 May 2000 03:24:54 -0700 (PDT) (envelope-from asami@cs.berkeley.edu) Received: from silvia.hip.berkeley.edu (sji-ca7-07.ix.netcom.com [209.109.235.7]) by tisch.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id GAA11219; Wed, 3 May 2000 06:24:52 -0400 (EDT) Received: (from asami@localhost) by silvia.hip.berkeley.edu (8.9.3/8.6.9) id DAA56316; Wed, 3 May 2000 03:24:50 -0700 (PDT) To: Gary Jennejohn Cc: ports@freebsd.org Subject: Re: lists of files and directories missing from PLIST References: <200005022009.WAA08799@peedub.muc.de> From: asami@freebsd.org (Satoshi - Ports Wraith - Asami) Date: 03 May 2000 03:24:48 -0700 In-Reply-To: Gary Jennejohn's message of "Tue, 02 May 2000 22:09:27 +0200" Message-ID: Lines: 22 X-Mailer: Gnus v5.7/Emacs 20.6 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * From: Gary Jennejohn * Yes, but you say that leaving a file/directory behind will become a fatal * error at some time in the future. If I leave some files in a dir because * I know another port needs them, then that should not be considered fatal. Um, you are not allowed to do that. What if those two ports are installed from packages? Assuming you are just listing them in PLIST and not doing an "@exec echo foo bar > file" type of tricks, the first pkg_delete will remove the file, leaving remaining packages crippled. The requirement would be that "starting from an empty /var/db/pkg and ${PREFIX}, install a port and all its dependent packages, then pkg_delete everything listed in /var/db/pkg, ${PREFIX} should not contain anything that is not listed in ${MTREE_FILE}". If you are taking some care to create a file that can be shared between multiple ports, make the last port that's pkg_deleted remove the file. This will pass the above test and is exactly what my proposed info/dir patch will do. Satoshi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message