#880922 lintian: Check for -dev -> runtime library package dependencies

Package:
lintian
Source:
lintian
Submitter:
Christoph Biedl
Date:
2025-10-26 18:49:01 UTC
Severity:
wishlist
Tags:
#880922#5
Date:
2017-11-05 17:55:32 UTC
From:
To:
Dear Maintainer,

Policy 8.5 recommends ("should") for a -dev package to have an install
dependency on the respective runtime library. It seems lintian does not
check for this but I think it should.

Hopefully, implementation would not that difficult: In debian/control,
identify <slug>-dev packages, in the libdevel section, and if there's a
related <slug><soname> package in the lib section, the -dev package
should have a strict versioned dependency on the runtime library. The
latter is actually already covered by "weak-library-dev-dependency".

Regards,

    Christoph

#880922#12
Date:
2018-05-05 16:39:23 UTC
From:
To:
tags 880922 + moreinfo
thanks

Hi Christoph,

Thanks for the report. I was wondering if you could quickly provide
some example "bad" and "good" dependencies. This would 100% confirm
my understanding of what you are after, as well as be useful as
testcases within Lintian.

A very quick draft for a tag description (which I am happy to rework
later) would also be highly appreciated. :)


Best wishes,

#880922#19
Date:
2025-10-26 18:46:06 UTC
From:
To:
The part where this actually matters most, and that should be easy to
check, is that in most cases libslug.so is a dangling symlink without
the dependency.

The linker then silently attempts to link with libslug.a,
which gets you either unwanted and unnoticed static linking
or weird-looking build errors.

#1118959 would be an example where the former happened in trixie and in
forky[1] the latter happened.

cu
Adrian

[1] https://buildd.debian.org/status/fetch.php?pkg=libopaque&arch=amd64&ver=1.0.1-3&stamp=1761405734&raw=0