From owner-freebsd-ports@FreeBSD.ORG Thu Jun 3 12:37:32 2010 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 9817E1065676 for ; Thu, 3 Jun 2010 12:37:32 +0000 (UTC) (envelope-from peterjeremy@acm.org) Received: from mail18.syd.optusnet.com.au (mail18.syd.optusnet.com.au [211.29.132.199]) by mx1.freebsd.org (Postfix) with ESMTP id 52A888FC17 for ; Thu, 3 Jun 2010 12:37:30 +0000 (UTC) Received: from server.vk2pj.dyndns.org (c211-30-160-13.mirnd2.nsw.optusnet.com.au [211.30.160.13] (may be forged)) by mail18.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id o53CbSoY028003 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 3 Jun 2010 22:37:29 +1000 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.4/8.14.4) with ESMTP id o53CbSrP001618 for ; Thu, 3 Jun 2010 22:37:28 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.4/8.14.4/Submit) id o53CbSFY001617 for freebsd-ports@freebsd.org; Thu, 3 Jun 2010 22:37:28 +1000 (EST) (envelope-from peter) Date: Thu, 3 Jun 2010 22:37:28 +1000 From: Peter Jeremy To: ports-list freebsd Message-ID: <20100603123728.GA1605@server.vk2pj.dyndns.org> References: <4C04CAAA.7080001@janh.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9jxsPFA5p3P2qPhR" Content-Disposition: inline In-Reply-To: <4C04CAAA.7080001@janh.de> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: Direct or indirect libdependencies (using the libintl.so.8 case) 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, 03 Jun 2010 12:37:32 -0000 --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2010-Jun-01 10:54:02 +0200, Jan Henrik Sylvester wrote: >Yesterday, I was chasing libintl.so.8, rebuilding all ports that got=20 >bumped, checking with libchk for other libintl.so.8 dependencies, and=20 >forcing a rebuild of all these packages: All but two of them had an=20 >indirect dependency on devel/gettext (and I did email the maintainers of= =20 >devel/ccrtp and textproc/gsed linking without a dependency). This might be unrealistic but, IMHO, these "indirect dependencies" should not exist. IMHO, there should only be two situations: 1) Port X directly links against or dlopen's libY.so from port Y. In this case, port Y should be listed in LIB_DEPENDS or equivalent for port X and port X will need a portrevision bump and rebuild if the port Y ABI changes (eg a .so version bump) 2) Port X directly links against or dlopen's libZ.so and libZ.so pulls in libY.so from port Y. In this case, port X should not be directly accessing any symbols in libY.so. If the libY.so ABI changes, libZ.so will need to be rebuilt but unless the libZ.so ABI changes, there should be no need to rebuild port X. Are there any other situations that have to be considered? --=20 Peter Jeremy --9jxsPFA5p3P2qPhR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkwHoggACgkQ/opHv/APuIdUNwCdHbzO/dXKh5OyysQDDWZDEvpc KEYAoLgfpEs0awVKIqvd8YO/Z4eZ4mE/ =I4TF -----END PGP SIGNATURE----- --9jxsPFA5p3P2qPhR--