From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 21 21:59:18 2012 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8946106564A for ; Thu, 21 Jun 2012 21:59:18 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 501748FC08 for ; Thu, 21 Jun 2012 21:59:18 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q5LLxEmG024115 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Thu, 21 Jun 2012 22:59:14 +0100 (BST) (envelope-from matthew@FreeBSD.org) X-DKIM: OpenDKIM Filter v2.5.2 smtp.infracaninophile.co.uk q5LLxEmG024115 Authentication-Results: smtp.infracaninophile.co.uk/q5LLxEmG024115; dkim=none (no signature); dkim-adsp=none Message-ID: <4FE39932.60300@FreeBSD.org> Date: Thu, 21 Jun 2012 22:59:14 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.org References: <20120530204502.5cab974c@desktop.pc> <20120617060135.GA7986@zim.MIT.EDU> <20120621224148.36ed4c7e@dijkstra.cruwe.de> In-Reply-To: <20120621224148.36ed4c7e@dijkstra.cruwe.de> X-Enigmail-Version: 1.4.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig9A5872600D24CB92044700A9" X-Virus-Scanned: clamav-milter 0.97.5 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: Subject: Re: TeXLive merge into FreeBSD ports tree - FreeBSD project idea X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2012 21:59:19 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig9A5872600D24CB92044700A9 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 21/06/2012 21:41, Christopher J. Ruwe wrote: > In portage, there is a knob package_provided meaning that the package > referenced as being provided is installed externally and that portage > does not need to resolve said dependancy, as it is already there. >=20 > I do not know of a similar FreeBSD-construct, but have really wished fo= r > something alike to stop the pulling in of the teTeX-tree. Ports sort of does this automatically. Some of the time. It depends on how the port is written. If you've got a dependency line like: RUN_DEPENDS=3D fc-cache:${PORTSDIR}/x11-fonts/fontconfig or LIB_DEPENDS=3D expat:${PORTSDIR}/textproc/expat2 then in the first instance the ports will check for the existence of fc-cache as an executable on $PATH, and in the second instance for libexpat.so as a shared library known to ld.so(1). There's nothing to say that either of those files should have been installed from the ports, and you can install quite happily against a non-ports-installed dependency. Ports management software like portmaster(8) or portupgrade(8) can get confused by this and may try and install the dependency from ports in some circumstances. However, if you've got a dependency that looks like so: BUILD_DEPENDS=3D p5-BerkeleyDB>0:${PORTSDIR}/databases/p5-BerkeleyDB ie. with > or >=3D and a version number, then the ports checks for the installation of a package of at least the specified version. So in this case, the ports has to be used to fulfil the dependency. (Perl module dependencies are pretty much always done in this form nowadays in order to avoid having to use ${SITE_PERL} in dependency lines.) Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --------------enig9A5872600D24CB92044700A9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk/jmTIACgkQ8Mjk52CukIwlGgCfc9dPExeXFjeQILzgVIE2kQFo AnUAn1JsiXlrDuAVC3ecCQri08gefBxZ =HaxA -----END PGP SIGNATURE----- --------------enig9A5872600D24CB92044700A9--