Bug 26479 - Remove mandatory systemd runtime dependency from dnf
Summary: Remove mandatory systemd runtime dependency from dnf
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: Neal Gompa
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-14 14:21 CEST by Joseph Wang
Modified: 2020-04-17 04:48 CEST (History)
0 users

See Also:
Source RPM: dnf-4.2.19-1.mga8.src.rpm
CVE:
Status comment:


Attachments
dependency diagram for dnf (234.39 KB, image/svg+xml)
2020-04-14 14:22 CEST, Joseph Wang
Details

Description Joseph Wang 2020-04-14 14:21:37 CEST
Description of problem:

dnf has a dependency on systemd to use the timer functionality to 
automatically regenerate the cache.  This duplicates dnf automatic and
also adds bloat to dnf when used in a container that doesn't have
systemd


Steps to Reproduce:
1. install dnf
2. see that it pulls in systemd

Recommend removing the dnf-makecache.timer service from vanilla dnf. people
that want auto updates can do it by installing dnf-automatic
Comment 1 Joseph Wang 2020-04-14 14:22:23 CEST
Created attachment 11586 [details]
dependency diagram for dnf
Comment 2 Lewis Smith 2020-04-14 21:41:45 CEST
Well, the diagram is impressive! I admit to failing to spot systemd.

Assigning to Neal as the DNF maintainer.

Severity: normal => enhancement
Assignee: bugsquad => ngompa13

Comment 3 Neal Gompa 2020-04-17 04:44:04 CEST
I'm not removing the timers, but I will remove the mandatory dependency on systemd, as the scriptlets gracefully fail when systemd is not available.

Status: NEW => ASSIGNED

Comment 4 Neal Gompa 2020-04-17 04:44:48 CEST
Also, dnf-automatic and dnf-makecache are two very different things. The former depends on the latter, and the latter is intended to be available by default.
Comment 5 Neal Gompa 2020-04-17 04:48:15 CEST
Fixed in dnf-4.2.19-2.mga8

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED

Neal Gompa 2020-04-17 04:48:41 CEST

Summary: Remove dnf timers and systemd dependency => Remove mandatory systemd dependency from dnf

Neal Gompa 2020-04-17 04:48:49 CEST

Summary: Remove mandatory systemd dependency from dnf => Remove mandatory systemd runtime dependency from dnf


Note You need to log in before you can comment on or make changes to this bug.