Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Dec 2013 21:08:39 +0100
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        Baptiste Daroussin <bapt@FreeBSD.org>
Cc:        freebsd-pkg@freebsd.org
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>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On 2013-12-10 20:15 +0100, Baptiste Daroussin <bapt@FreeBSD.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131210210839.7948f34e>