Package: liblink-grammar4-dev
Version: 4.6.5-1
Severity: normal

Hi,

/usr/lib/liblink-grammar.la contains the following line:
---8<---
dependency_libs=' -lm /usr/lib/libaspell.la'
---8<---

Since liblink-grammar4-dev doesn't depend on the package shipping
libaspell.la (libaspell-dev), any package build-depending on
liblink-grammar4-dev without libaspell-dev is likely to ftbfs with a
"/usr/lib/libaspell.la: No such file or directory" error.

This is what happened to abiword
(<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=569373>).  Its
maintainer workarounded this issue by build-depending on libaspell-dev,
but I think the 'real' bug is due to liblink-grammar.la.

As described on <http://wiki.debian.org/ReleaseGoals/LAFileRemoval>,
possible fixes:
 * delete /usr/lib/*.la files (I haven't tested)
 * empty dependency_libs in /usr/lib/*.la (see attached patch, I tested
   it on Ubuntu lucid, and abiword is able to build successfully).

Thanks!

Cheers,
Lionel

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

Kernel: Linux 2.6.32-02063208-generic (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-- 
Lionel Le Folgoc - https://launchpad.net/~mrpouit
E61E 116D 4BA1 3936 0A33  F61D 65D9 A66E 10E2 969A
diff -u link-grammar-4.6.5/debian/rules link-grammar-4.6.5/debian/rules
--- link-grammar-4.6.5/debian/rules
+++ link-grammar-4.6.5/debian/rules
@@ -34,0 +35,4 @@
+binary-install/liblink-grammar4-dev::
+	# Empty dependency_libs in all .la files
+	find debian/liblink-grammar4-dev/usr -name "*.la" -type f -exec sed -e "s,^dependency_libs=.*,dependency_libs=''," -i {} \;
+

Attachment: signature.asc
Description: Digital signature

Reply via email to