Bug#633334: libosip2: Emptying dependency_libs in .la files

codehelp at debian.org codehelp at debian.org
Sat Jul 9 12:23:53 UTC 2011

Package: libosip2
Version: 3.3.0-1
Severity: normal
User: codehelp at debian.org
Usertags: la-file-removal

 To finish an old release goal from Squeeze, to comply with Policy
10.2 and to ease the introduction of MultiArch, I'm filing bugs
against packages which contain .la files which need to be stripped of
the dependency_libs variable.

This is the second phase of the MBF and packages should *NOT* remove
the .la file itself at this stage because other packages still expect
to find the .la file and this would cause a FTBFS in that package.
(Bugs have been filed to have those packages fixed.)

To clear the dependency_libs, use something like this command from
the wiki page. Add the command to your debian/rules file after the
files have been installed under debian/tmp or debian/$package:

sed -i "/dependency_libs/ s/'.*'/''/" `find debian/ -name '*.l




Feel free to use a package like deb-gview to inspect the contents of
your packages after the build. Something like:

$ deb-gview ../libosip2_3.3.0-1*.changes &

You can then view each package and inspect the contents of each .la
file in each binary package prior to upload.

Data has been obtained from the output of an automated script:


The output is best read in conjunction with the criteria from this
post to debian-devel:


This phase is all about the packages on this list which both have
dependency_libs and are depended-on by other packages.

To generate the list of packages, I've used:

grep depended-on current.txt | grep dependency_libs |cut -d: -f1

After forming the list, each package has been checked and the
libosip2 (3.3.0-1) source package in unstable has at least one .la
file with the dependency_libs specified.

The data is regularly updated but please accept my apologies if you
have made an upload which changes the situation since the data was

In the unusual case that your package uses libltdl directly, it is
still necessary to empty the dependency_libs part of all .la files
remaining in the package. It is important that .la files are NOT
removed in this phase to avoid FTBFS bugs.

If you believe that your package needs both the .la file and the
dependency_libs settings, please raise this on debian-devel for

Neil Williams
codehelp at debian.org

More information about the Pkg-voip-maintainers mailing list