Bug 1325437 - Weak dependencies are not excluded by minusing
Summary: Weak dependencies are not excluded by minusing
Keywords:
Status: CLOSED DUPLICATE of bug 1331100
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1331100
Blocks: base-minimization
TreeView+ depends on / blocked
 
Reported: 2016-04-08 20:00 UTC by Yaakov Selkowitz
Modified: 2016-05-02 18:44 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-05-02 18:44:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
kickstart (3.03 KB, text/plain)
2016-04-08 20:00 UTC, Yaakov Selkowitz
no flags Details
tdl (354 bytes, text/plain)
2016-04-08 20:02 UTC, Yaakov Selkowitz
no flags Details

Description Yaakov Selkowitz 2016-04-08 20:00:38 UTC
Created attachment 1145242 [details]
kickstart

In an attempt to minimize the size of the docker base image, we have been working to switch some optional dependencies from Requires: to Recommends:.  However, we have been unable to exclude these from the image itself, despite explicitly minusing them in %packages.

Attached is the kickstart we are using, which uses a custom repository with weakened dependencies.  The minus-ed packages are still included in the compose, however nothing hard-requires them as they can be safely dnf erase'd afterwards.

Comment 1 Yaakov Selkowitz 2016-04-08 20:02:52 UTC
Created attachment 1145243 [details]
tdl

And here is the TDL file.  Image is made with: 

sudo imagefactory --debug base_image --file-parameter install_script fedora-docker-base-custom.ks fedora-24-alpha.tdl --parameter offline_icicle true

sudo imagefactory --debug target_image --id <UUID> docker --parameter compress xz

which can then be docker load'ed.

Comment 2 David Shea 2016-05-02 18:44:25 UTC
Duping against 1331100 since this is essentially the same issue: the interpretation of weak dependencies is done by dnf and is controllable only through a global configuration variable, and by default we want weak dependencies to be turned on. bug 1331100 has patches to add an option to %packages to turn weak dependencies off.

*** This bug has been marked as a duplicate of bug 1331100 ***


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