From owner-freebsd-pkg@FreeBSD.ORG Tue Dec 10 20:08:50 2013 Return-Path: Delivered-To: freebsd-pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9689F981; Tue, 10 Dec 2013 20:08:50 +0000 (UTC) Received: from mail-ea0-x22b.google.com (mail-ea0-x22b.google.com [IPv6:2a00:1450:4013:c01::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 034461B67; Tue, 10 Dec 2013 20:08:49 +0000 (UTC) Received: by mail-ea0-f171.google.com with SMTP id h10so2495979eak.30 for ; Tue, 10 Dec 2013 12:08:48 -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:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=K7Bb8wB1v5y+sJ/F+rBpQDMUGGXsRj14UCYFGmNFK4E=; b=wYyiLKkSgBAqT+JCkR8pO2BgaKNRpm6pT8hIm7avRDLly+LdjCBxpCBwglJOuLp1Dh KL/OdSiNmeXO51rolz2R/eV/xzPcs1Rm7klVV/4W6cmWGtrCA3lwSoroZMqgxC6OrtYT Y+zIKzlNCO8N7Sfps7w0G9Q0VWw4zNWe6zB8SM/HF2zjBi/Lm5EiEE+WjOMI6OygFLiP yzblm4IubVtbCjFL6mAM8LutpPoNNkP2I89VJQW71TINAD6GAlAZFdC2GKqMPB8/qqYn FK7wKAqM2tkSXEFo/Aq4NhWbiM9z6lMHWQIbrH60hRaSBdQXO5tHoXnfKiyzysG3w9Ul /PgA== X-Received: by 10.14.0.201 with SMTP id 49mr20178284eeb.38.1386706128474; Tue, 10 Dec 2013 12:08:48 -0800 (PST) Received: from localhost ([176.109.164.5]) by mx.google.com with ESMTPSA id 1sm45023561eeg.4.2013.12.10.12.08.46 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Tue, 10 Dec 2013 12:08:47 -0800 (PST) Sender: =?UTF-8?B?UGF3ZcWCIFDEmWthbGE=?= Date: Tue, 10 Dec 2013 21:08:39 +0100 From: Pawel Pekala To: Baptiste Daroussin Subject: Re: Automatic dependency adding in 1.2.x ? Message-ID: <20131210210839.7948f34e@FreeBSD.org> In-Reply-To: <20131210191502.GF99623@ithaqua.etoilebsd.net> References: <20131210192543.4c854774@FreeBSD.org> <20131210191502.GF99623@ithaqua.etoilebsd.net> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.19; amd64-portbld-freebsd11.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable 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:08:50 -0000 Hi, 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. 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. 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: https://github.com/ppekala/freebsd-ports-tools/blob/master/pkg-lib-check It helped me to find some of those missing dependencies I'm trying to whine about :) 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. My point is - now this ability is gone and it sucks from developer perspective, makes finding this type of bugs harder. --=20 pozdrawiam / with regards Pawe=B3 P=EAkala