Date: Wed, 13 Feb 2008 06:44:46 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Patrick Lamaiziere <patfbsd@davenulle.org> Cc: freebsd-ports@freebsd.org Subject: Re: portupgrade installing unexpected dependencies Message-ID: <47B291DE.6050102@infracaninophile.co.uk> In-Reply-To: <20080212230554.2e1e3bdf@roxette.lamaiziere.net> References: <47B1960B.4080709@quip.cz> <6eb82e0802120518t5ba226b1oc143172437556fd7@mail.gmail.com> <20080212230554.2e1e3bdf@roxette.lamaiziere.net>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Patrick Lamaiziere wrote: > Le Tue, 12 Feb 2008 21:18:56 +0800, > "Rong-en Fan" <grafan@gmail.com> a écrit : > >>> cd /usr/ports/security/amavisd-new/ && make install clean >>> the whole installation is successfuly done without installing CURL >>> and openldap-client. (it is expected result for me) >>> >>> ...or em I wrong and I must add 'security/gnupg' => >>> 'security/gnupg1' in to ALT_PKGDEP in pkgtools.conf? >> Yes, according to /usr/ports/UPDATING. > > Is there a way or a tool to know the alternate dependencies ? I've got > 720 ports installed on my box... The alternate dependencies set in ALT_PKGDEP are only accessible to portupgrade and friends. For a more general solution, you can set various variables in /etc/make.conf or via the blue and grey OPTIONS screens -- these will have effect on anything that uses the ports system. You can't make arbitrary substitutions in what depends on what via /etc/make.conf -- the port needs to provide some machinery for selecting alternative dependencies. That stipulation does however cover most of the popularly used software in the ports tree. In order to see what the dependency changes are, you can't rely on the default INDEX file as obtained by 'make fetchindex' or by use of portsnap. Either you have to ignore the INDEX completely or you have to build your own INDEX. It is entirely possible to use the ports without any sort of INDEX: portmaster (as I understand it) does exactly that, and simple 'cd some/port ; make all install' similarly ignores anything to do with the INDEX. portupgrade on the other hand does make use of the INDEX. Building your own INDEX is easy (just type 'make index' in /usr/ports) but very time consuming -- probably 45 minutes or so on a typical desktop box, and you'ld need to do that every time you cvsup'd. Or you can use my ports-mgmt/p5-FreeBSD-Portindex tools to incrementally update your INDEX, which is a lot faster overall. 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 iD8DBQFHspHd8Mjk52CukIwRCEdqAJ0bKzsGgTvzEIlbIWBMiGZRzgC/UgCglNbZ 81Nw/PCbL8/JbCsweyHPUu0= =jpcB -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47B291DE.6050102>