Package: geda-gaf
Version: 1:1.6.2-1
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu natty ubuntu-patch



*** /tmp/tmpbpMQBx
In Ubuntu, the attached patch was applied to achieve the following:

  * debian/rules: clean out dependency_libs from la-file per policy 10.2

Dear Maintainer,

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

Thanks for considering the patch.


-- System Information:
Debian Release: squeeze/sid
  APT prefers natty
  APT policy: (500, 'natty')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-7-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru geda-gaf-1.6.2/debian/rules geda-gaf-1.6.2/debian/rules
--- geda-gaf-1.6.2/debian/rules	2011-01-27 13:55:53.000000000 +0100
+++ geda-gaf-1.6.2/debian/rules	2011-04-03 19:00:38.000000000 +0200
@@ -34,6 +34,9 @@
 	dh_auto_install --sourcedirectory=symbols    -- DESTDIR=$(CURDIR)/debian/geda-symbols
 	dh_auto_install --sourcedirectory=docs       -- DESTDIR=$(CURDIR)/debian/geda-doc
 	dh_auto_install --sourcedirectory=examples   -- DESTDIR=$(CURDIR)/debian/geda-examples
+	for file in debian/tmp/usr/lib/*.la; do \
+		sed -i "/dependency_libs/ s/'.*'/''/" $$file ; \
+	done
 
 override_dh_install:
 	dh_install

Reply via email to