From owner-freebsd-ports Mon May 1 2: 9:57 2000 Delivered-To: freebsd-ports@freebsd.org Received: from maynard.mail.mindspring.net (maynard.mail.mindspring.net [207.69.200.243]) by hub.freebsd.org (Postfix) with ESMTP id 90E5D37B6F0 for ; Mon, 1 May 2000 02:09: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 maynard.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id FAA07083; Mon, 1 May 2000 05:09:36 -0400 (EDT) Received: (from asami@localhost) by silvia.hip.berkeley.edu (8.9.3/8.6.9) id CAA25456; Mon, 1 May 2000 02:08:29 -0700 (PDT) To: Maxim Sobolev Cc: ports@freebsd.org Subject: Re: lists of files and directories missing from PLIST References: <200005010154.SAA08504@silvia.hip.berkeley.edu> <390D20FC.6E7FEB8A@altavista.net> From: asami@freebsd.org (Satoshi - Ports Wraith - Asami) Date: 01 May 2000 02:08:23 -0700 In-Reply-To: Maxim Sobolev's message of "Mon, 01 May 2000 09:15:24 +0300" Message-ID: Lines: 28 X-Mailer: Gnus v5.7/Emacs 20.6 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * From: Maxim Sobolev * IMHO, there is easiest way to detetmine leftover files. You can use script * to mesure time spent to make install/deinstall, and then find files in * ${PREFIX}, which have been created during this time. This would allow to * easily associate leftovers with appropriate port. * * 1. cd /usr/ports/myport & make all * 2. t1=time * 3. cd /usr/ports/myport & make install deinstall * 4. t2=time * 5. t=t2-t1 * 6. find ${PREFIX} -cmin -(t+1) I can think of two problems with that approach off the top of my head: (a) It won't find files that are unpacked directly into the installation directory (e.g. tar -x) (b) It will find directories in which files are created and then deleted. Really, my method is not that hard, since I already have all the files installed in a (previously empty) ${prefix} and I need to clean them up for the next build anyway. (The chroot environments are recycled.) I just added a check in between. Satoshi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message