Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Aug 2013 23:15:48 +0400
From:      Boris Samorodov <bsam@passap.ru>
To:        FreeBSD ports list <freebsd-ports@FreeBSD.org>
Subject:   How to create lib (and run) dependency list at Makefile
Message-ID:  <52093464.2030601@passap.ru>

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

recently I've upgaded my ports. Then I get:
-----
% pkg_libchk -a
rasqal-0.9.30: /usr/local/bin/roqet misses libcurl.so.6
rasqal-0.9.30: /usr/local/lib/librasqal.so.3 misses libcurl.so.6
-----

So, I assume that textproc/rasqal was not bumped after ftp/curl update.
The dependency was not specified. I tested a patch and filed a PR.
But while working with port I get strange (at least to me) results.

The binary file which is installed by textproc/rasqal is bin/roqet.
Let's see which libraries (installed from ports) it uses:
-----
% ldd -f '%p\n' /usr/local/bin/roqet | grep '/usr/local'
/usr/local/lib/librasqal.so.3
/usr/local/lib/libraptor2.so.0
/usr/local/lib/libicuuc.so.50
/usr/local/lib/libxslt.so.2
/usr/local/lib/libyajl.so.2
/usr/local/lib/libxml2.so.5
/usr/local/lib/libiconv.so.3
/usr/local/lib/libcurl.so.7
/usr/local/lib/libicudata.so.50
-----

That means this file depends upon (origins):
-----
converters/libiconv
devel/icu
devel/yajl
ftp/curl
textproc/libxml2
textproc/libxslt
textproc/raptor2
-----

Am I right that those ports should be specified as LIB (or RUN)
dependencies for textproc/rasqal?

Here is the current run dependencies (for the whole port, not just
one binary file!):
-----
% make -C /usr/ports/textproc/rasqal run-depends-list
/usr/ports/devel/pcre
/usr/ports/textproc/raptor2
-----

Seems that I'm mistaken somewhere, because 6(!) library dependencies
are not registered!

PS. All those ports shows up as indirect dependencies (checked with
'make all-depends-list'). But imho they should be a _direct_ ones.

Am I wrong here? Thanks!
-- 
WBR, Boris Samorodov (bsam)
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve



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