From owner-freebsd-ports@FreeBSD.ORG Sat Feb 18 10:15:01 2012 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A844106567F; Sat, 18 Feb 2012 10:15:01 +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 982F48FC0C; Sat, 18 Feb 2012 10:15:00 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [IPv6:2001:8b0:151:1:fa1e:dfff:feda:c0bb]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q1IAEusQ038172 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sat, 18 Feb 2012 10:14:56 GMT (envelope-from matthew@FreeBSD.org) X-DKIM: OpenDKIM Filter v2.4.3 smtp.infracaninophile.co.uk q1IAEusQ038172 Authentication-Results: smtp.infracaninophile.co.uk/q1IAEusQ038172; dkim=none (no signature); dkim-adsp=none Message-ID: <4F3F7A18.8000609@FreeBSD.org> Date: Sat, 18 Feb 2012 10:14:48 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: freebsd-ports@FreeBSD.org References: <4F3E289D.9050605@FreeBSD.org> <4F3E2CED.90601@FreeBSD.org> <4F3E3537.9040105@FreeBSD.org> <1329478316415-5492205.post@n5.nabble.com> <4F3E5D41.9050503@aldan.algebra.com> <4F3EBF4F.6010401@aldan.algebra.com> <4F3EE5A1.80407@aldan.algebra.com> <4F3EEA43.3070808@FreeBSD.org> In-Reply-To: <4F3EEA43.3070808@FreeBSD.org> X-Enigmail-Version: 1.3.5 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigDDAFDBE41F12AA75B4520106" X-Virus-Scanned: clamav-milter 0.97.3 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.8 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: marcus@FreeBSD.org Subject: Re: Library numbers in LIB_DEPENDS considered harmful (Re: recent portrevision bump for libvpx) 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: Sat, 18 Feb 2012 10:15:01 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigDDAFDBE41F12AA75B4520106 Content-Type: multipart/mixed; boundary="------------090604060906000608040905" This is a multi-part message in MIME format. --------------090604060906000608040905 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable On 18/02/2012 00:01, Doug Barton wrote: > On 02/17/2012 15:41, Mikhail T. wrote: >> If, in fact, the current port does not care, which version of libfoo i= s >> uses -- and most software does not -- then declaring an explicit V is >> wrong: it /gratuitously/ tightens the build-time requirements. Unless = a >> particular version is, indeed, required, the above line should read si= mply: >> >> LIB_DEPENDS=3D foo:${PORTSDIR}/cat/libfoo >=20 > Big +1. Same goes for how some of the build/run deps are specified. Thi= s > has definitely become a case of "If you give someone a knob, it's > overwhelmingly likely that they will twist it." How about the attached? Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --------------090604060906000608040905 Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0"; name="portlint.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="portlint.diff" Index: src/portlint.pl =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/ports/ports-mgmt/portlint/src/portlint.pl,v retrieving revision 1.125 diff -u -u -r1.125 portlint.pl --- src/portlint.pl 27 Dec 2011 01:26:34 -0000 1.125 +++ src/portlint.pl 18 Feb 2012 10:08:27 -0000 @@ -1330,6 +1330,13 @@ "found in \${PORTSDIR}/Mk/bsd.apache.mk."); } =20 + # Check for over-specific shared library dependencies + if ( $j eq 'LIB_DEPENDS' && $m{'dep'} =3D~ m/(\.\d+$)/ ) { + &perror("WARN", $file, -1, "$j don't specify the " . + "ABI version number $1 in $m{dep} unless it is " . + "really necessary."); + } + # check port dir existence $k =3D $m{'dir'}; $k =3D~ s/\${PORTSDIR}/$ENV{'PORTSDIR'}/; --------------090604060906000608040905-- --------------enigDDAFDBE41F12AA75B4520106 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/ iEYEARECAAYFAk8/eiAACgkQ8Mjk52CukIzXxQCeK+osrCC+BTzpRIxyfsHljZDK T6sAn2yzZG2wUK1ipayBEvtCUYS8dgCh =yHU4 -----END PGP SIGNATURE----- --------------enigDDAFDBE41F12AA75B4520106--