[pkg-GD-devel] Bug#619537: libgd2: please wipe out dependency_libs from .la files (Policy 10.2)

Steve Langasek steve.langasek at canonical.com
Thu Mar 24 20:34:55 UTC 2011


Package: libgd2
Version: 2.0.36~rc1~dfsg-5
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu natty ubuntu-patch

Hi Jonas,

The attached patch has just been applied to the Ubuntu libgd2 package, to
null out the dependency_libs field in the libtool .la file being shipped in
the -dev packages.  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 libgd2.  As long as libgd2 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/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
=== modified file 'debian/rules'
--- debian/rules	2010-12-13 01:08:10 +0000
+++ debian/rules	2011-03-24 20:22:37 +0000
@@ -117,3 +117,8 @@
 
 # Needed for our packaging
 CDBS_BUILD_DEPENDS += , d-shlibs, html2text
+
+common-install-arch::
+	for file in debian/tmp-libgd2-xpm/usr/lib/*.la debian/tmp-libgd2-noxpm/usr/lib/*.la; do \
+		sed -i "/dependency_libs/ s/'.*'/''/" $$file ; \
+	done



More information about the pkg-GD-devel mailing list