From owner-freebsd-ports@FreeBSD.ORG Sat Aug 23 08:15:15 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DE795A37 for ; Sat, 23 Aug 2014 08:15:14 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "ca.infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 83FB13C5F for ; Sat, 23 Aug 2014 08:15:14 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.9/8.14.9) with ESMTP id s7N8F1qg036845 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sat, 23 Aug 2014 09:15:02 +0100 (BST) (envelope-from matthew@FreeBSD.org) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org DKIM-Filter: OpenDKIM Filter v2.9.2 smtp.infracaninophile.co.uk s7N8F1qg036845 Authentication-Results: smtp.infracaninophile.co.uk/s7N8F1qg036845; dkim=none reason="no signature"; dkim-adsp=none; dkim-atps=neutral Message-ID: <53F84D7C.70101@FreeBSD.org> Date: Sat, 23 Aug 2014 09:14:52 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: question about "pkg install" References: <53F7BE28.2030807@rcn.com> <20140823074040.GY9400@home.opsec.eu> In-Reply-To: <20140823074040.GY9400@home.opsec.eu> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="AvSQ3n7WEg2QiE6rxRE693o8eAbQtTC2a" X-Virus-Scanned: clamav-milter 0.98.4 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Aug 2014 08:15:15 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --AvSQ3n7WEg2QiE6rxRE693o8eAbQtTC2a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 23/08/2014 08:40, Kurt Jaeger wrote: >> I have a program (several, actually) I need to install from the >> > generic package repository. >> > These programs depend on openldap-client; however I have >> > openldap-sasl-client installed. In my experience the two have been >> > interchangeable when compiling from ports. >> > Is there a way to tell 'pkg install' "Yeah, I know it >> > says openldap-client, but the same version of >> > openldap-sasl-client satisfies the dependency"? Or do I just use 'p= kg >> > install -M' and hope everything works? > I had this issue in the past, too, and am not aware of a solution. There isn't a good solution for this right now if you're using the packages from the official FreeBSD repositories. You get the default dependency chain which is baked into the packages. Which means openldap-client rather than openldap-sasl-client[*]. If you need to change options for various ports, then the best solution is to compile your own. Give poudriere a go -- it is surprisingly easy and unstressful to use. Build yourself a repo with your customized ports in it and away you go. We do have plans for improving the ports behaviour in this reguard. Dependencies based on Provides/Requires/Conflicts should help a lot, as will sub-packages and dependency version-ranges. This stuff is all on the roadmap, but there's a lot of work to do to get from here to there, so don't expect it to all start magically working tomorrow. Cheers, Matthew [*] In this case openldap-client and openldap-sasl-client are clearly API compatible, since on compilation, it's not a problem to swap from one to the other. The question when using binary packages is if they are ABI compatible, which is a whole different kettle of fish. --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --AvSQ3n7WEg2QiE6rxRE693o8eAbQtTC2a 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.20 (Darwin) iQJ8BAEBCgBmBQJT+E2EXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkAT9voP/10ZSrUyD+ytbQtlW4pf8w7I hgOjhBZGdhumB081jx6OC7ty4S38yJJcpkann0zMeNQ93jxTP8jcdr+Zg58Q0H+g bag8KbZjHW7MJDIJ0fQG9JGlPju1vVEy46LoCIaUPBfaSowDubUpVUSXFxE3AhBR 9O9cmhSBmbjOM7XyQrUKlHXiKeV+3BOaYQpT+0Rwma4nU/m52nrlNkA7/yWwiziQ bzs9m6Lf/jIkxTm/5BsWIDO/6JBiNMn5wJWZfhlwaAdgARlHdVE1H5QZFpfFHsth wbBrK5Anr9nCupOyML4P1RvSRxhSMbfWBgv2imvYLbLW52tEwpCVq8M+1F3DGkfG 7jSt2CTM58u1gwygWzaGnRpf6zAgwIDS5tw319N3ypOK2TRjUYgHC5+q37LIx8pK coxvK1Qn8Nx4uHvH7xHj+uSu/mGzMQi8DZLLCBKg+/lmvOBzjJ2vPtFfgch9wgOZ 1G639xe5SxIBAz0Q33dAgFQHUsBKaQ2HWsFC2nS7khJ1z2FlBn4IhheqmRQ5+j5Y CAi3lS0RREQ+pI1sxlVcRa+sgEcD12oKmAFKz8iDPoPAnXlwsFLhTtW5VAo2Mydm 100amW7VzKRmIVG7Qu5BJ+S1YtOOEw5mj9KfonzaPg9KpZ/xi5b2kAvg23Wxocu8 pwQgXxUefUTN9Mm1jhLg =JcWN -----END PGP SIGNATURE----- --AvSQ3n7WEg2QiE6rxRE693o8eAbQtTC2a--