Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 Jul 2007 08:02:32 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Doug Barton <dougb@freebsd.org>
Cc:        Michel Talon <talon@lpthe.jussieu.fr>, freebsd-ports@freebsd.org
Subject:   Re: Keeping track of automatically installed dependency-only ports
Message-ID:  <46908C08.8090108@infracaninophile.co.uk>
In-Reply-To: <468FC617.6070304@FreeBSD.org>
References:  <20070707145958.GA3472@lpthe.jussieu.fr> <468FC617.6070304@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46908C08.8090108>