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

version graph

Package: apt; Maintainer for apt is Andreas Messer <andi@bastelmap.de>; Source for apt is src:apt.

Reported by: Andreas Messer <andi@bastelmap.de>

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

Severity: normal

Fixed in version 2.0.1+devuan1

Done: Andreas Messer <andi@bastelmap.de>

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.devuan.org
Subject: bug#355: apt: Unexpected linkage dependency on libsystemd
Reply-To: Andreas Messer <andi@bastelmap.de>, 355@bugs.devuan.org
Resent-From: Andreas Messer <andi@bastelmap.de>
Resent-To: devuan-bugs@lists.dyne.org
Resent-CC: owner@bugs.devuan.org
Resent-Date: Mon, 07 Oct 2019 18:03:01 UTC
Resent-Message-ID: <handler.355.B.15704712021322@bugs.devuan.org>
Resent-Sender: owner@bugs.devuan.org
X-Devuan-PR-Message: report 355
X-Devuan-PR-Package: apt
X-Devuan-PR-Keywords: 
Received: via spool by submit@bugs.devuan.org id=B.15704712021322
          (code B ref -1); Mon, 07 Oct 2019 18:03:01 UTC
Received: (at submit) by bugs.devuan.org; 7 Oct 2019 18:00:02 +0000
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Mon, 07 Oct 2019 20:00:02 +0200 (CEST)
Received: from dd10814.kasserver.com (dd10814.kasserver.com [85.13.133.115])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 19F07F60C36
	for <submit@bugs.devuan.org>; Mon,  7 Oct 2019 19:50:36 +0200 (CEST)
Received: from zeus.m.rodgau.home (p5B05501F.dip0.t-ipconnect.de [91.5.80.31])
	by dd10814.kasserver.com (Postfix) with ESMTPSA id D10B61205D8D
	for <submit@bugs.devuan.org>; Mon,  7 Oct 2019 19:50:35 +0200 (CEST)
Date: Mon, 7 Oct 2019 19:50:34 +0200
From: Andreas Messer <andi@bastelmap.de>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
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 tupac3.dyne.org
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 <owner@bugs.devuan.org>.
Last modified: Sun Nov 24 14:36:17 2024;