Package: fox1.6
Version: 1.6.37-1
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu natty ubuntu-patch

Hi Torsten,

The attached patch has just been applied to the Ubuntu fox1.6 package, to
null out the dependency_libs field in the libtool .la file 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 fox1.6.  As long as fox1.6 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
diff -Nru fox1.6-1.6.37/debian/rules fox1.6-1.6.37/debian/rules
--- fox1.6-1.6.37/debian/rules	2010-12-06 08:20:46.000000000 -0800
+++ fox1.6-1.6.37/debian/rules	2011-04-02 16:17:22.000000000 -0700
@@ -66,6 +66,9 @@
 		htmldir=/usr/share/doc/libfox-1.6-doc/html \
 		artdir=/usr/share/doc/libfox-1.6-doc/html/art \
 		screenshotsdir=/usr/share/doc/libfox-1.6-doc/html/screenshots
+	for file in debian/tmp/usr/lib/*.la; do \
+		sed -i "/dependency_libs/ s/'.*'/''/" $$file ; \
+	done
 	dh_install --sourcedir=debian/tmp
 
 # Build architecture-independent files here.

Reply via email to