From owner-freebsd-ports@FreeBSD.ORG Sun Jul 8 07:38:12 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7E4C316A41F; Sun, 8 Jul 2007 07:38:12 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.187.76.162]) by mx1.freebsd.org (Postfix) with ESMTP id D302413C465; Sun, 8 Jul 2007 07:38:11 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.14.1/8.14.1) with ESMTP id l6872Wmw015871; Sun, 8 Jul 2007 08:02:33 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk from=m.seaman@infracaninophile.co.uk; sender-id=permerror; spf=permerror X-SenderID: Sendmail Sender-ID Filter v0.2.14 smtp.infracaninophile.co.uk l6872Wmw015871 Message-ID: <46908C08.8090108@infracaninophile.co.uk> Date: Sun, 08 Jul 2007 08:02:32 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.4 (X11/20070619) MIME-Version: 1.0 To: Doug Barton References: <20070707145958.GA3472@lpthe.jussieu.fr> <468FC617.6070304@FreeBSD.org> In-Reply-To: <468FC617.6070304@FreeBSD.org> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Sun, 08 Jul 2007 08:02:44 +0100 (BST) X-Virus-Scanned: ClamAV 0.90.3/3608/Sat Jul 7 18:56:44 2007 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_POLICY_SIGNSOME, DKIM_POLICY_TESTING,NO_RELAYS autolearn=ham version=3.2.1 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on happy-idiot-talk.infracaninophile.co.uk Cc: Michel Talon , freebsd-ports@freebsd.org Subject: Re: Keeping track of automatically installed dependency-only ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jul 2007 07:38:12 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Doug Barton wrote: > Personally I think that portmaster's approach is the right one. If you > accidentally delete something that it turns out you really do need, > you can always install it again. On the other hand, the presence of an > empty +REQUIRED_BY file is a very reliable indication that something > was previously installed as a dependency, but is no longer needed. How about having a special meta-port that depends on all packages directly installed by the user: packages-required-by-user-20070708 or some such. Because this will automatically add a field to +REQUIRED_BY it should give the desired behaviour of blocking (or at least warning about) deinstalling wanted packages for all of the ports management tools I know of. It will need some hackery to have the dependency list of the meta-port updated whenever the end user (de)installs a port/package by name or decides that a package previously installed as a dependency is needed in its own right (or vice versa) Perhaps something like the way OPTIONS processing works, except it dynamically generates a RUN_DEPENDS list, and it should use the same sort of trick as ports-mgmt/vulnerability-test-port -- ie. use the date as its version number -- to ensure it gets updated frequently. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGkIwH8Mjk52CukIwRCLQdAJ4t2NCY39ORu9D5bV6zvRkuZ8YcFACcDNar 60lCEAnKd41QtxuJuOLp+EE= =6rDR -----END PGP SIGNATURE-----