Bug#915566: libsystemd-dev: static library not provided

Michael Biebl biebl at debian.org
Fri Aug 30 23:31:12 BST 2019


On Wed, 2 Jan 2019 21:17:43 +0100 Michael Biebl <biebl at debian.org> wrote:
> Hi Simon
> 
> On Tue, 4 Dec 2018 21:18:07 +0000 Simon McVittie <smcv at debian.org> wrote:
> > Package: libsystemd-dev
> > Version: 239-14
> > Severity: wishlist
> > 
> > libsystemd-dev doesn't provide a static library. Is this deliberate?
> 
> More or less. Upstream by default does not build any static libraries
> and this needs to be turned on explicitly.
> 
> I quickly tested a build with
> -Dstatic-libsystemd=true -Dstatic-libudev=true
> which results in loads of warnings from dpkg-shlibdeps like this:
> 
> strip:
> debian/libsystemd-dev/lib/x86_64-linux-gnu/stObSVqO/src_libsystemd_sd-bus_bus-common-errors.c.o:
> plugin needed to handle lto object
> 
> 
> The size of the libudev-dev and libsystem-dev package exploded:
> $ du -hs debian/libsystemd-dev/lib/x86_64-linux-gnu/libsystemd.a
> debian/libudev-dev/lib/x86_64-linux-gnu/libudev.a
> 14M	debian/libsystemd-dev/lib/x86_64-linux-gnu/libsystemd.a
> 18M	debian/libudev-dev/lib/x86_64-linux-gnu/libudev.a
> 
> I haven't actually test if the resulting .a files can be used to
> successfully link a program statically. At the very least we'd have to
> add an autopkgtest to regularly test this as this is not something which
> is used and tested by upstream.
> 
> This and the issue with the huge .a files make me a bit concerned
> enabling the build of the static libraries.
> 

Simon, have you tried building systemd with -Dstatic-libsystemd=true
-Dstatic-libudev=true ? Does this produce something useful?
Upstream doesn't seem to be too keen on supporting static builds, so if
we divert here downstream, I'd be interested if there is actual demand
from users of such a libsystemd.a or if this all mostly hyphothetical.

Regards,
Michael
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20190831/4bae3d8f/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list