Bug 26479

Summary: Remove mandatory systemd runtime dependency from dnf
Product: Mageia Reporter: Joseph Wang <joequant>
Component: RPM PackagesAssignee: Neal Gompa <ngompa13>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: dnf-4.2.19-1.mga8.src.rpm CVE:
Status comment:
Attachments: dependency diagram for dnf

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