Bug 1645298

Summary: Split systemd rpm macros into systemd-rpm-macros
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: systemdAssignee: Zbigniew Jędrzejewski-Szmek <zbyszek>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: rawhideCC: lnykryn, msekleta, ssahani, s, systemd-maint, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: systemd-239-7.git9f3aed1.fc30 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-02 11:05:02 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:

Description Orion Poplawski 2018-11-01 20:53:12 UTC
Description of problem:

Currently packages need to BR systemd solely to import some rpm macros.  This brings in a number of dependencies as well:

DEBUG util.py:492:  ===================================================================================================
DEBUG util.py:492:   Package                   Arch          Version                      Repository              Size
DEBUG util.py:492:  ===================================================================================================
DEBUG util.py:492:  Installing:
DEBUG util.py:492:   systemd                   x86_64        239-6.git9f3aed1.fc29        updates                3.4 M
DEBUG util.py:492:  Installing dependencies:
DEBUG util.py:492:   acl                       x86_64        2.2.53-2.fc29                fedora                  71 k
DEBUG util.py:492:   dbus                      x86_64        1:1.12.10-1.fc29             fedora                 9.4 k
DEBUG util.py:492:   dbus-common               noarch        1:1.12.10-1.fc29             fedora                  14 k
DEBUG util.py:492:   dbus-daemon               x86_64        1:1.12.10-1.fc29             fedora                 196 k
DEBUG util.py:492:   dbus-libs                 x86_64        1:1.12.10-1.fc29             fedora                 144 k
DEBUG util.py:492:   dbus-tools                x86_64        1:1.12.10-1.fc29             fedora                  50 k
DEBUG util.py:492:   iptables-libs             x86_64        1.8.0-3.fc29                 fedora                  53 k
DEBUG util.py:492:   json-c                    x86_64        0.13.1-3.fc29                fedora                  37 k
DEBUG util.py:492:   kmod-libs                 x86_64        25-3.fc29                    fedora                  59 k
DEBUG util.py:492:   libargon2                 x86_64        20161029-6.fc29              fedora                  28 k
DEBUG util.py:492:   libpcap                   x86_64        14:1.9.0-2.fc29              fedora                 149 k
DEBUG util.py:492:   libseccomp                x86_64        2.3.3-3.fc29                 fedora                  60 k
DEBUG util.py:492:   nettle                    x86_64        3.4-5.fc29                   fedora                 289 k
DEBUG util.py:492:   qrencode-libs             x86_64        3.4.4-6.fc29                 fedora                  55 k
DEBUG util.py:492:   systemd-pam               x86_64        239-6.git9f3aed1.fc29        updates                157 k
DEBUG util.py:492:   cryptsetup-libs           x86_64        2.0.5-1.fc29                 updates-testing        299 k
DEBUG util.py:492:   device-mapper             x86_64        1.02.152-1.fc29              updates-testing        151 k
DEBUG util.py:492:   device-mapper-libs        x86_64        1.02.152-1.fc29              updates-testing        181 k
DEBUG util.py:492:   gnutls                    x86_64        3.6.4-4.fc29                 updates-testing        850 k
DEBUG util.py:492:  Transaction Summary
DEBUG util.py:492:  ===================================================================================================
DEBUG util.py:492:  Install  20 Packages
DEBUG util.py:492:  Total download size: 6.2 M
DEBUG util.py:492:  Installed size: 20 M

That's a lot just for some macro definitions.

Comment 1 Zbigniew Jędrzejewski-Szmek 2018-11-02 09:33:09 UTC
This isn't going to useful for binary rpms, because the macros call systemctl and other systemd binaries. But in the build stage, this would make the buildroot a bit smaller. I'll do the packaging part. Somebody needs to open an FPC ticket ;)

Comment 2 Zbigniew Jędrzejewski-Szmek 2018-11-02 11:05:02 UTC
https://pagure.io/packaging-committee/issue/824

If the committee changes recommendations, this change should be backported to older releases to make it easy to use.