Package: mdbtools
Version: 0.5.99.0.6pre1.0.20051109-7
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu natty ubuntu-patch

Hi Tim,

The attached patch has just been applied to the Ubuntu mdbtools package, to
null out the dependency_libs field in the libtool .la files being shipped in
the -dev package.  This is generally a good idea because it avoids causing
consumers of your library to require other .la files listed here to be
available at build time when they're not actually needed (i.e., in the
dynamic linking common case).  It's specifically a good idea right now
because multiarch is imminent, and that means the .la files referenced here
are going to *move* soon, causing build failures for anything using libtool
to build against mdbtools.  As long as mdbtools is going to need a rebuild
to fix up the invalid .la references, it would be nice to get rid of them
altogether.

Thanks,
--
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slanga...@ubuntu.com                                     vor...@debian.org
=== modified file 'debian/rules'
--- debian/rules        2010-04-18 03:33:23 +0000
+++ debian/rules        2011-03-26 01:51:25 +0000
@@ -14,3 +14,9 @@
        rm -f aclocal.m4 depcomp ylwrap missing ltmain.sh install-sh
        find -name Makefile.in -exec rm {} \;
        rm -f doc/*.1
+
+override_dh_auto_install:
+       dh_auto_install
+       for file in debian/tmp/usr/lib/*.la; do \
+               sed -i "/dependency_libs/ s/'.*'/''/" $$file ; \
+       done

Reply via email to