Package: net6
Version: 1:1.3.12-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu natty ubuntu-patch

Hi Phil,

The attached patch has just been applied to the Ubuntu net6 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 net6.  As long as net6 is going to need a rebuild to fix up
the invalid .la references, it would be nice to get rid of them altogether.

(Please note that the same issue also affects obby, in the same package
stack.)

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/
[email protected]                                     [email protected]
diff -u net6-1.3.12/debian/rules net6-1.3.12/debian/rules
--- net6-1.3.12/debian/rules
+++ net6-1.3.12/debian/rules
@@ -67,6 +67,10 @@
 	dh_clean -k
 	dh_installdirs
 	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
+	for file in debian/tmp/usr/lib/*.la; do \
+		sed -i "/dependency_libs/ s/'.*'/''/" $$file ; \
+	done
+	
 
 # Build architecture-independent files here.
 binary-indep: build install

Reply via email to