Debian Bug report logs - #192008
dpkg-dev: dependencies from libtool and pkg-config files

Package: lintian; Maintainer for lintian is Debian Lintian Maintainers <[email protected]>; Source for lintian is src:lintian (PTS, buildd, popcon).

Reported by: "Michel Dänzer" <[email protected]>

Date: Mon, 5 May 2003 14:18:07 UTC

Severity: wishlist

Full log


🔗 View this message in rfc822 format

X-Loop: [email protected]
Subject: Bug#192008: dependencies from libtool and pkg-config files
Reply-To: Michel Dänzer <[email protected]>, [email protected]
Resent-From: Michel Dänzer <[email protected]>
Original-Sender: Michel Daenzer <[email protected]>
Resent-To: 
Resent-Date: Sat, 23 Aug 2003 18:24:34 UTC
Resent-Message-ID: <[email protected]>
Resent-Sender: [email protected]
X-Debian-PR-Message: report 192008
X-Debian-PR-Package: debhelper
X-Debian-PR-Keywords: 
Received: via spool by [email protected] id=Q192008.106165808024720
          (code Q ref 192008); Sat, 23 Aug 2003 18:24:34 UTC
Received: (at 192008-quiet) by bugs.debian.org; 23 Aug 2003 17:01:20 +0000
Received: from dclient80-218-118-173.hispeed.ch (thor.holligenstrasse29.lan) [80.218.118.173] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 19qblN-0006QK-00; Sat, 23 Aug 2003 12:01:17 -0500
Received: from daenzer by thor.holligenstrasse29.lan with local (Exim 3.36 #1 (Debian))
	id 19qblL-0005cN-00; Sat, 23 Aug 2003 19:01:15 +0200
From: Michel Dänzer <[email protected]>
To: Joey Hess <[email protected]>
Cc: [email protected]
In-Reply-To: <[email protected]>
References: <[email protected]>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Organization: Debian
Message-Id: <[email protected]>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.3 
Date: 23 Aug 2003 19:01:15 +0200
Sender: Michel Daenzer <[email protected]>
Delivered-To: [email protected]
X-Spam-Status: No, hits=-13.5 required=4.0
	tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,
	      REPLY_WITH_QUOTES,USER_AGENT_XIMIAN
	autolearn=ham version=2.53-bugs.debian.org_2003_8_17
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_8_17 (1.174.2.15-2003-03-30-exp)
On Thu, 2003-08-21 at 22:33, Joey Hess wrote: 
> I don't feel that parsing .la files will be useful. Not all packages use
> libtool. Anyway, there is nothing of value in those files that cannot be
> found in other ways.

Absolutely, I was probably too focussed on libtool because the problems
I saw were related to it.

> It might be possible to run objdump on the library to get the libraries
> a library links to, use heuristics to find the corresponding .so files,
> and from there dpkg -S to get -dev package names. But then you need to
> deal with cases like multiple -dev packages that can both serve for a
> library. You have to deal with special cases like libc6-dev, which the 
> above mechanism would always add to the dependnency list, and whch should 
> not be included. 

Anything covered by build-essential could be excluded?

> Sounds a lot like the shlibs files mechanism and dpkg-shlibdeps, 
> doesn't it?

Indeed, it's similar.

> Assuming all this is done (and it sounds like something that would
> belong in dpkg to me, as well as requiring modificatons of lots of -dev
> packages to provide the shlibs file equivilants), then you still 
> have to get all the packages to use the new debhelper utility and 
> modify their control files.

There's no need to convert all packages right away; getting these
dependencies right may well be easy for the majority of packages,
nevertheless the others seem to have caused considerable porting
headaches recently (that's the impression I got; I'll gladly be proved
wrong). The idea is that those packages which cause problems in this
area could use the new tool as they are discovered, instead of adding
more kludges which are bound to break again sooner or later.

> I think you would be better served by adding something to lintian to try
> to detect missing -dev dependnecies, and filing some bug reports. Unlike
> shared library dependnencies, -dev dependencies rarely change, and when
> they do, the package maintainer always has reason to know about it (they
> have to change the build dependnecies too).

But the main point of my proposal is exactly that packages should only
have to build-depend on packages they use directly, not also on other
packages those happen to depend on.

Similarly, if I want to write a program that uses say libpisock, I want
to just install libpisock-dev, I don't care that it needs
libreadline4-dev as well. And neither should the libpisock-dev
maintainer have to.


-- 
Earthling Michel Dänzer   \  Debian (powerpc), XFree86 and DRI developer
Software libre enthusiast  \     http://svcs.affero.net/rm.php?r=daenzer



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 11:37:21 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.