Re: libtool cruft in .la files in /usr/lib
On Mon, Jul 08, 2002 at 11:04:29AM -0400, Daniel Jacobowitz wrote:
> On Mon, Jul 08, 2002 at 05:04:00PM +0200, email@example.com wrote:
> > If you try to do a "grep debian /usr/lib/*.la", you'll find that some
> > libraries point to the directory they were installed to by the make
> > install command in debian/rules. Some of such libs are libkaffevm.la,
> > liblber.la libldap.la, libldap_r.la, libmng.la, libpaper.la and others.
> > Two questions:
> > 1) Should this thing be reported as a bug?
> > 2) How hould debian/rules be changed so that libtool writes the correct
> > path in the .la files?
> No, it's a bug in libtool. No one has come up with a fix for it yet
> however. It probably requires telling libtool more about what is a
> build directory and what is an install directory.
At least for automake/autoconf package, one option is to make use of
DESTDIR instead of abusing prefix to specify the install directory.
Taking libpaper as an example, the following patch works for me. (NB: I
don't see any libltdl issues, so the .la file should go into
--- debian/libpaperg-dev.files.orig Sat Sep 22 23:47:07 2001
+++ debian/libpaperg-dev.files Mon Jul 8 22:00:36 2002
@@ -1,4 +1,5 @@
--- debian/rules.orig Mon Apr 22 05:23:32 2002
+++ debian/rules Mon Jul 8 22:00:26 2002
@@ -14,7 +14,8 @@
package := $(firstword $(shell dh_listpackages))
-prefix := $(PWD)/debian/$(package)/usr
+destdir := $(PWD)/debian/$(package)
+prefix := /usr
share := $(prefix)/share
version := $(shell dpkg-parsechangelog | \
@@ -35,7 +36,7 @@
./configure $(confflags) \
# Patch the generated libtool to avoid passing -rpath when linking,
# and to explicitly link libraries against the libraries they depend
@@ -67,6 +68,7 @@
$(MAKE) install \
+ DESTDIR=$(destdir) \
To UNSUBSCRIBE, email to firstname.lastname@example.org
with a subject of "unsubscribe". Trouble? Contact email@example.com