xbps-src: verify_rundeps code

0 views
Skip to first unread message

Juan RP

unread,
Jan 10, 2010, 11:23:00 AM1/10/10
to xb...@googlegroups.com
Hi,

I've just added code in xbps-src that will find you all required
dependencies for a package once it's installed. So if for example
you install fontconfig and only glibc rundep was added, it will
report something like:

[chroot] => Verifying required fontconfig run dependencies...
=> WARNING: required libfreetype.so from freetype (MISSING)
=> WARNING: required libz.so from zlib (MISSING)
=> WARNING: required libexpat.so from expat (MISSING)
=> Requires libc.so from glibc (OK)
=> The following code needs to be added into the build template:
============ CUT HERE ===============
Add_dependency run freetype
Add_dependency run zlib
Add_dependency run expat
Add_dependency build freetype-devel
Add_dependency build zlib-devel
Add_dependency build expat-devel
============ CUT HERE ===============

And you'd have to add those lines marked with "CUT HERE" into
the package build template. That's because all direct linked
dependencies need to be recorded, it will be easier for ABI
changes in packages.

If you add a new package that installs shared libs, you should
add them into
$XBPS_DISTRIBUTIONDIR/xbps-src/common/mapping_shlib_binpkg.txt,
it's self explanatory.

Enjoy!

Juan RP

unread,
Jan 12, 2010, 7:43:41 AM1/12/10
to xb...@googlegroups.com
On Sun, 10 Jan 2010 17:23:00 +0100
Juan RP <xtr...@gmail.com> wrote:

> If you add a new package that installs shared libs, you should
> add them into
> $XBPS_DISTRIBUTIONDIR/xbps-src/common/mapping_shlib_binpkg.txt,
> it's self explanatory.

I have added almost all shlibs, but there will be some of them
still missing. If you find them (they will be reported as errors)
you'll have to add them into xbps-src/common/mapping_shlib_binpkg.txt.

Please note that every time this file is updated, you'll have to
reinstall xbps-src in host and chroot with "make install clean".

The code has helped greatly to find missing runtime deps in some
packages, as well as to remove some unnecesary ones.

BTW, there are approx 870 pkgs currently... not bad for 1 year of
work :-)

Reply all
Reply to author
Forward
0 new messages