From owner-freebsd-pkg@FreeBSD.ORG Tue Dec 10 20:21:13 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 F0B81CC1; Tue, 10 Dec 2013 20:21:12 +0000 (UTC) Received: from mail-wg0-x22b.google.com (mail-wg0-x22b.google.com [IPv6:2a00:1450:400c:c00::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6008A1D74; Tue, 10 Dec 2013 20:21:12 +0000 (UTC) Received: by mail-wg0-f43.google.com with SMTP id k14so5525070wgh.10 for ; Tue, 10 Dec 2013 12:21: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=nin5So0YqG+HIn9nCDdQYq6iZGGIBVp/CK6d34mwgP8=; b=J5sVjg8A03rTNh6hk62KLAdSp0m+WbbpTuk7Z88SwgzSbsiQ4qoBfS/aIo43MWHV/j 9b3JLLNRTIJvAa87QqJUIf9xVw/eH5GWhO/bgQ1OuWpiZeguKlURPu/ar5+Qt/y4FnBs M3sKocTiGWzyT70jQhNX/KSd6/Urvkc6/KHrPu6yzctt4yd9iJIx+T0b8cKOhQDKLYRm vkSodUlyxLWYMxLHUt7YhmPGQw9ZGc6o4GNZrSPKwdPaCFd8rJbMQNCKUksyhvyrBYsc HaM/BeX/ikyWnLgZd4i521JSpnoJhDupDUtD/RzdGxqbeAIZrV1nk769qyGAmkttxzfF 1z3Q== X-Received: by 10.180.160.212 with SMTP id xm20mr20689395wib.33.1386706870810; Tue, 10 Dec 2013 12:21:10 -0800 (PST) Received: from ithaqua.etoilebsd.net (ithaqua.etoilebsd.net. [37.59.37.188]) by mx.google.com with ESMTPSA id b7sm8190074wiz.8.2013.12.10.12.21.09 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 10 Dec 2013 12:21:09 -0800 (PST) Sender: Baptiste Daroussin Date: Tue, 10 Dec 2013 21:21:07 +0100 From: Baptiste Daroussin To: Pawel Pekala Subject: Re: Automatic dependency adding in 1.2.x ? Message-ID: <20131210202107.GG99623@ithaqua.etoilebsd.net> References: <20131210192543.4c854774@FreeBSD.org> <20131210191502.GF99623@ithaqua.etoilebsd.net> <20131210210839.7948f34e@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1XWsVB21DFCvn2e8" Content-Disposition: inline In-Reply-To: <20131210210839.7948f34e@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 20:21:13 -0000 --1XWsVB21DFCvn2e8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 10, 2013 at 09:08:39PM +0100, Pawel Pekala wrote: > Hi, >=20 > On 2013-12-10 20:15 +0100, Baptiste Daroussin wrote: > >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 icu 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. >=20 > I think you misunderstood me here, if dependency is pulled by direct > one recorded in Makefile that's ok and it should work that way. I'm > talking about other situation, with tinycdb today when I installed > www/cblog for testing purposes, it had already recorded > databases/tinycdb as dependency despite I didn't fixed BUILD, > LIB_DEPENDS - automatically and was not pulled in by any other deps for > sure. >=20 > What I wanted to (poorly) describe earlier - before 1.2.x update you > could ldd(1) all binaries in certain package and get list of needed > libraries to function. Then you could compare this list to what > recorded dependencies provide and missing libraries would point you to > not recorded, missing deps in the end. I wrote this script that done it: >=20 > https://github.com/ppekala/freebsd-ports-tools/blob/master/pkg-lib-check >=20 > It helped me to find some of those missing dependencies I'm trying to > whine about :) >=20 > http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/181764 > http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/182163 > http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/182166 and so on. >=20 > My point is - now this ability is gone and it sucks from developer > perspective, makes finding this type of bugs harder. Poudriere does it :) Another solution is: pkg query "%B" cblog It will show you all libraries required by cblog :) (including the one it provides if any) regards, Bapt --1XWsVB21DFCvn2e8 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (FreeBSD) iEYEARECAAYFAlKnd7MACgkQ8kTtMUmk6ExCswCfSiybXD008z0V/aJkr7lrMH9b xt8AoK04yNYvZarMALQyH2r2hzQFT/Q3 =w7Do -----END PGP SIGNATURE----- --1XWsVB21DFCvn2e8--