Package: libhdf4
Version: 4.2r4-11
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu natty ubuntu-patch

Hi Francesco,

The attached patch has just been applied to the Ubuntu libhdf4 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 libhdf4.  As long as libhdf4 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 -u libhdf4-4.2r4/debian/rules libhdf4-4.2r4/debian/rules
--- libhdf4-4.2r4/debian/rules
+++ libhdf4-4.2r4/debian/rules
@@ -153,6 +153,11 @@
 	for obj in $(DESTDIR)/usr/bin/* $(DESTDIR)/usr/lib/*.so.* $(DESTDIR)/usr/lib-alt/*.so.*; do \
 		chrpath -d $${obj} || true; \
 	done
+
+	# Empty out the dependency field in our .la files
+	for file in $(DESTDIR)/usr/lib/*.la; do \
+		sed -i "/dependency_libs/ s/'.*'/''/" $$file ; \
+	done
 	
 	# rename programs also provided by netcdf-bin
 	mv $(DESTDIR)/usr/bin/ncdump $(DESTDIR)/usr/bin/ncdump-hdf
_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel

Reply via email to