From owner-freebsd-ports@FreeBSD.ORG Thu Jan 4 14:02:20 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 E7D8B16A407 for ; Thu, 4 Jan 2007 14:02:20 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.187.76.162]) by mx1.freebsd.org (Postfix) with ESMTP id 5B8AE13C428 for ; Thu, 4 Jan 2007 14:02:14 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from [IPv6:::1] (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.13.8/8.13.8) with ESMTP id l04E1q0l048488 for ; Thu, 4 Jan 2007 14:01:52 GMT (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <459D08CA.7060104@infracaninophile.co.uk> Date: Thu, 04 Jan 2007 14:01:46 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 1.5.0.9 (X11/20061223) MIME-Version: 1.0 To: freebsd ports X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigF721660BFE2E0ECE38E7174A" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Thu, 04 Jan 2007 14:02:08 +0000 (GMT) X-Virus-Scanned: ClamAV 0.88.7/2413/Thu Jan 4 09:46:27 2007 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00, DKIM_POLICY_TESTING,NO_RELAYS autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on happy-idiot-talk.infracaninophile.co.uk Subject: DEPENDS -- is it time to remove it? 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: Thu, 04 Jan 2007 14:02:21 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF721660BFE2E0ECE38E7174A Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Dear all, The ports make infrastructure has a whole series of variables for showing= how one port depends on another: LIB_DEPENDS, BUILD_DEPENDS, RUN_DEPENDS etc. Amongst these is what looks to me like the vestigial remnant of an earlier phase of the ports: the plain, unmodified 'DEPENDS' variable. This seems to have an effect apparently like all of the other DEPENDS variants rolled together, but unlike the others you can't give it a filename or a shlib to use as a test that whatever it references has been installed, so it always causes its target to be installed. The Porter's Handbook says (Section 5.7.10): "Do not use DEPENDS unless there is no other way the behaviour you wan= t can be accomplished. It will cause the other port to always be built (and installed, by default), and the dependency will go into the packages as well. If this is really what you need, you should probabl= y write it as BUILD_DEPENDS and RUN_DEPENDS instead--at least the intention will be clear." Plus it seems that there is nowadays a grand total of just 3 ports out of 16,300 or so that actually uses this variable: happy-idiot-talk:/usr/ports:% grep -re '^DEPENDS\>' . =2E/audio/klira/Makefile:DEPENDS=3D ${PORTSDIR}/misc/kdehier [= *] =2E/www/caudium12/Makefile:DEPENDS=3D ${PORTSDIR}/lang/pexts/ =2E/x11/kdelibs3/Makefile:DEPENDS=3D ${PORTSDIR}/misc/kdehier Practically, removing DEPENDS would simplify (slightly) the logic in bsd.port.mk and make generating the INDEX-n file a bit faster. Cheers, Matthew [*] audio/klira is an oddity: all but two other KDE apps inherit their dependency on kdehier through depending on kdelibs3. The two other exceptions, both of which have a RUN_DEPENDS directly on kdehier, are math/proofgeneral (deprecated, due for removal on 2007-02-07) and sysutils/kports (which also depends on kdelibs, so doesn't need the direct dependency as well). --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enigF721660BFE2E0ECE38E7174A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.1 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFnQjQ8Mjk52CukIwRCOYPAJ4gNcjnUM+MG9zezNM668wsDRcEzACeLmsU 4nXlZiwWwKLojCTw0A16y+4= =0AKD -----END PGP SIGNATURE----- --------------enigF721660BFE2E0ECE38E7174A--