Devuan bug report logs - #355
apt: Unexpected linkage dependency on libsystemd

version graph

Package: apt; Maintainer for apt is Andreas Messer <>;

Reported by: Andreas Messer <>

Date: Mon, 7 Oct 2019 18:03:01 UTC

Severity: normal

Fixed in version 2.0.1+devuan1

Done: Andreas Messer <>

Full log

🔗 View this message in rfc822 format

Subject: bug#355: apt: Unexpected linkage dependency on libsystemd
Reply-To: Andreas Messer <>,
Resent-From: Andreas Messer <>
Resent-Date: Mon, 07 Oct 2019 18:03:01 UTC
Resent-Message-ID: <>
X-Devuan-PR-Message: report 355
X-Devuan-PR-Package: apt
Received: via spool by id=B.15704712021322
          (code B ref -1); Mon, 07 Oct 2019 18:03:01 UTC
Received: (at submit) by; 7 Oct 2019 18:00:02 +0000
Received: from []
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Mon, 07 Oct 2019 20:00:02 +0200 (CEST)
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by (Postfix) with ESMTPS id 19F07F60C36
	for <>; Mon,  7 Oct 2019 19:50:36 +0200 (CEST)
Received: from zeus.m.rodgau.home ( [])
	by (Postfix) with ESMTPSA id D10B61205D8D
	for <>; Mon,  7 Oct 2019 19:50:35 +0200 (CEST)
Date: Mon, 7 Oct 2019 19:50:34 +0200
From: Andreas Messer <>
To: Devuan Bug Tracking System <>
Message-ID: <157047021610.2626.4106834785083034806.reportbug@vm-devuan-beowulf>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Mailer: reportbug 7.5.1+devuan1
User-Agent: NeoMutt/20170113 (1.7.2)
X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW
	autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
Package: apt
Version: 1.8.2
Severity: normal

I observed a linkage dependency on libsystemd. This was unexpected for me
since I wouldn't expect a package manager depend on it. A package manager should
be as lean as possible.

Having reviewed the code, the only function using libsystemd is used to talk on dbus 
to inhibit system shutdown. Something which will work for systemd only.

Would it make sense to use dlopen() to dynamically load libsystemd when needed
and avoid the hard dependency on libsystemd? If systemd is installed, libsystemd
will be available anyways.

-- Package-specific info:

-- (no /etc/apt/preferences present) --
-- (/etc/apt/preferences.d/avoid-systemd present, but not submitted) --
-- (/etc/apt/sources.list present, but not submitted) --
-- (/etc/apt/sources.list.d/devuan.list present, but not submitted) --

-- System Information:
Debian Release: 10.0
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-6-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages apt depends on:
ii  adduser                 3.118
ii  debian-archive-keyring  2019.1
ii  gpgv                    2.2.12-1+deb10u1
ii  libapt-pkg5.0           1.8.2
ii  libc6                   2.28-10
ii  libgcc1                 1:8.3.0-6
ii  libgnutls30             3.6.7-4
ii  libseccomp2             2.3.3-4
ii  libstdc++6              8.3.0-6

Versions of packages apt recommends:
ii  ca-certificates  20190110

Versions of packages apt suggests:
pn  apt-doc         <none>
ii  aptitude        0.8.11-7
ii  dpkg-dev        1.19.7
ii  gnupg           2.2.12-1+deb10u1
ii  powermgmt-base  1.34
ii  synaptic        0.84.6

-- no debconf information

gnuPG keyid: 8C2BAF51
fingerprint: 28EE 8438 E688 D992 3661 C753 90B3 BAAA 8C2B AF51

Send a report that this bug log contains spam.

Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <>.
Last modified: Fri May 29 08:03:24 2020;