Bug 1484014

Summary: [modularity] Installing a module should directly install that modules dependencies
Product: [Fedora] Fedora Reporter: James Antill <james.antill>
Component: dnfAssignee: Martin Hatina <mhatina>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: high    
Version: rawhideCC: dmach, hpopal, james.antill, mhatina, nphilipp, packaging-team-maint, rpm-software-management, vmukhame
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-13 07:56:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1478068    

Description James Antill 2017-08-22 13:13:00 UTC
When installing a module FOO that has dependencies on module BAR, dnf should mark the module BAR as installed.

There was some talk of this happening by having the depsolver mark rpms from module BAR to be installed, and then working back from that to mark BAR as an install (due to the rpms being installed from it). However I'm not sure this is enough for el8 (Eg. compat. repos.)

Comment 1 Nils Philippsen 2017-10-13 15:07:24 UTC
James, should it install or just enable the BAR module? I think it would be sufficient if the package dependencies are available for solving, right?

Martin, does PR#951 cover this? It looks like it to me:

https://github.com/rpm-software-management/dnf/pull/951

Comment 2 Martin Hatina 2017-10-16 07:35:19 UTC
Yes, it is written in description of PR: "enable module runtime dependencies, when enabling module:stream"

RPM dependencies are installed, that is done on RPM level. And if I am correct, module cannot be installed, so module dependencies are just enabled.

If you want dnf to install module profile, dnf need information, which profile to install.

Comment 3 Martin Hatina 2017-10-23 08:11:47 UTC
Fixed by https://github.com/rpm-software-management/dnf/pull/951