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

version graph

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

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>

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to devuan-bugs@lists.dyne.org, owner@bugs.devuan.org:
bug#355; Package apt. (full text, mbox, link).


Acknowledgement sent to Andreas Messer <andi@bastelmap.de>:
New bug report received and forwarded. Copy sent to owner@bugs.devuan.org. (full text, mbox, link).


Message #5 received at submit@bugs.devuan.org (full text, mbox, reply):

From: Andreas Messer <andi@bastelmap.de>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
Subject: apt: Unexpected linkage dependency on libsystemd
Date: Mon, 7 Oct 2019 19:50:34 +0200
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


Information forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#355; Package apt. (Sat, 28 Mar 2020 12:18:01 GMT) (full text, mbox, link).


Message #8 received at 355@bugs.devuan.org (full text, mbox, reply):

From: Mark Hindley <mark@hindley.org.uk>
To: 355@bugs.devuan.org
Cc: Andreas Messer <andi@bastelmap.de>
Subject: Re: apt: Unexpected linkage dependency on libsystemd
Date: Sat, 28 Mar 2020 12:02:20 +0000
On Mon, 7 Oct 2019 19:50:34 +0200 Andreas Messer <andi@bastelmap.de> wrote:
> 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.

Andreas,

Thanks for this.

You are quite right that this dependency would be much better avoided.

I am interested in us fixing this in ceres/chimaera.

I know you have patched version 1.8  to remove libsystemd0. Would you care to
update that for the current ceres/chimaera version 2.0.1? We can then look at
including it in devuan-packages.

Thanks

Mark

Information forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#355; Package apt. (Wed, 01 Apr 2020 21:03:01 GMT) (full text, mbox, link).


Acknowledgement sent to Andreas Messer <andi@bastelmap.de>:
Extra info received and forwarded to list. Copy sent to devuan-dev@lists.dyne.org. (Wed, 01 Apr 2020 21:03:05 GMT) (full text, mbox, link).


Message #13 received at 355@bugs.devuan.org (full text, mbox, reply):

From: Andreas Messer <andi@bastelmap.de>
To: Mark Hindley <mark@hindley.org.uk>
Cc: 355@bugs.devuan.org
Subject: Re: apt: Unexpected linkage dependency on libsystemd
Date: Wed, 1 Apr 2020 22:49:04 +0200
[Message part 1 (text/plain, inline)]
Mark,

On Sat, Mar 28, 2020 at 12:02:20PM +0000, Mark Hindley wrote:
> On Mon, 7 Oct 2019 19:50:34 +0200 Andreas Messer <andi@bastelmap.de> wrote:
> > 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.
> 
> Andreas,
> 
> Thanks for this.
> 
> You are quite right that this dependency would be much better avoided.
> 
> I am interested in us fixing this in ceres/chimaera.
> 
> I know you have patched version 1.8  to remove libsystemd0. Would you care to
> update that for the current ceres/chimaera version 2.0.1? We can then look at
> including it in devuan-packages.

Sorry, missed that mail. Yes I can give it a try tomorrow. 

cheers,
Andreas
-- 
gnuPG keyid: 8C2BAF51
fingerprint: 28EE 8438 E688 D992 3661 C753 90B3 BAAA 8C2B AF51
[signature.asc (application/pgp-signature, inline)]

Reply sent to Andreas Messer <andi@bastelmap.de>:
You have taken responsibility. (Tue, 07 Apr 2020 17:48:01 GMT) (full text, mbox, link).


Notification sent to Andreas Messer <andi@bastelmap.de>:
bug acknowledged by developer. (Tue, 07 Apr 2020 17:48:05 GMT) (full text, mbox, link).


Message #18 received at 355-done@bugs.devuan.org (full text, mbox, reply):

From: Andreas Messer <andi@bastelmap.de>
To: 355-done@bugs.devuan.org
Subject: Re apt: Unexpected linkage dependency on libsystemd
Date: Tue, 7 Apr 2020 19:33:41 +0200
[Message part 1 (text/plain, inline)]
Version: 2.0.1+devuan1

Finally prepared an own version of apt package with all systemd
dependencies removed.

cheers,
Andreas

[signature.asc (application/pgp-signature, inline)]

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: Fri Nov 27 00:01:44 2020;