From owner-freebsd-pkg@FreeBSD.ORG Tue Dec 10 19:15:12 2013 Return-Path: Delivered-To: freebsd-pkg@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 8DF3F15B; Tue, 10 Dec 2013 19:15:12 +0000 (UTC) Received: from mail-wg0-x232.google.com (mail-wg0-x232.google.com [IPv6:2a00:1450:400c:c00::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F0CAF175A; Tue, 10 Dec 2013 19:15:11 +0000 (UTC) Received: by mail-wg0-f50.google.com with SMTP id a1so5432599wgh.29 for ; Tue, 10 Dec 2013 11:15:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=hxOAamYxXUBT82uZXiauD1oUvx50oAsoBKJJhI/rApA=; b=vw291bZ7eLnyuafrtT2t6UV2gNxJwU2KU521UZJScDvAquAVAm8/XMy/jFgpxmpyVT Gw9O53Z5RPQq0IVuiigBQtzuf97pRigXW3WfBzTR9nKAPp3du4gxFZwaYOylFPpbMTK8 QBXyLO0raU0+X3eBAVv6+GALEYOsUBFx/1bU19XetlTrUocb/bZi/g9FjD1dwllZD4pq 1DoJC0PLlrDqcRTdE2XW/NM4iIb9RR0M7B6N2Pu+wj0y82ylsTZa+2ISHbsNEj4bW9xf KcjGimPTc1PRHXjKjIq3UreGek4LvDKSd1zYIcLvnWAg7eI1Or5oc43VmF6dQeXQMVGk MW0w== X-Received: by 10.180.189.49 with SMTP id gf17mr20719453wic.23.1386702910374; Tue, 10 Dec 2013 11:15:10 -0800 (PST) Received: from ithaqua.etoilebsd.net (ithaqua.etoilebsd.net. [37.59.37.188]) by mx.google.com with ESMTPSA id dn2sm7740825wid.1.2013.12.10.11.15.05 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 10 Dec 2013 11:15:09 -0800 (PST) Sender: Baptiste Daroussin Date: Tue, 10 Dec 2013 20:15:03 +0100 From: Baptiste Daroussin To: Pawel Pekala Subject: Re: Automatic dependency adding in 1.2.x ? Message-ID: <20131210191502.GF99623@ithaqua.etoilebsd.net> References: <20131210192543.4c854774@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1Ow488MNN9B9o/ov" Content-Disposition: inline In-Reply-To: <20131210192543.4c854774@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-pkg@freebsd.org X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Dec 2013 19:15:12 -0000 --1Ow488MNN9B9o/ov Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 10, 2013 at 07:25:43PM +0100, Pawel Pekala wrote: > Hi, >=20 > During my last work on ports linking problems I noticed one thing with > new 1.2.x (?) pkg. It's seems now pkg adds dependencies not listed in > LIB_DEPENDS when package links to some lib on live system. So for > example it links dynamically to databases/tinycdb when available on > system and this is not recorded in port's Makefile (tinycdb is not > pulled but any other deps also). >=20 > From user's point this is desirable behaviour, it keeps things sane - > tinycdb can't be removed when there are other packages that link to it's > libraries and prevents breakage. >=20 > On the developer's side of things this is at least strange choice - it > hides problems instead trying to expose them and get them fixed. It > makes finding those kind of errors a lot harder in my view and leads to > official packages (built in sterile environment) lacking some features > or being even broken in rare cases. >=20 > Is there are any way to disable this feature?=20 >=20 > Maybe related to this,ffmpeg0 on my system thinks it depends on > ffmpeg now: >=20 > [corn:~]> pkg info -d ffmpeg0-0.7.16_1,1=20 > ffmpeg0-0.7.16_1,1: > freetype2-2.5.0.1 > xvid-1.3.2,1 > x264-0.136.2358_1 > schroedinger-1.0.11_1 > libvpx-1.2.0 > libtheora-1.1.1_3 > gpac-libgpac-0.5.0,1 > ffmpeg-2.1.1_1,1 > png-1.5.17 > opencv-core-2.4.7 > jpeg-8_4 > sdl-1.2.15_2,2 > orc-0.4.18 > libvorbis-1.3.3_1,3 > libogg-1.3.1,4 > jackit-0.121.3_3 >=20 That is desired and there is no way to disable this feature, this is done by introspecting the binaries to figure out the libraries they do need, DEBUG_LEVEL=3D1 should show you the dependencies automatically added. The point is then to totally disable the recursive dependencies we have now= and in long term to not make any difference between lib dependencies and build dependencies. There is no magic behind that and that changes nothing for the developper, = the dependencies are added because they are needed for example if glib brings i= cu and your program only uses glib the developper has no way to figure out that depending on glib option he may or may not add icu in the list of the dependencies. regards, Bapt --1Ow488MNN9B9o/ov Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (FreeBSD) iEYEARECAAYFAlKnaDYACgkQ8kTtMUmk6EwcNwCgoJRgFE+/zzixlJifbou7r9Ns Jp4An0Pt7TC1vhBVEaz0Df0T5k5FksKp =0Dt1 -----END PGP SIGNATURE----- --1Ow488MNN9B9o/ov--