diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-01-15 10:31:00 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-02-02 17:40:06 +0100 |
commit | f3a4ccbcca21ddd64935b0291d9e9af85c496dbe (patch) | |
tree | 5467fcd5312758224f3545e7de3235f02ee88ba9 | |
parent | 2d848c377377ffe0db93e99beee5fd3caf193326 (diff) | |
download | systemd-f3a4ccbcca21ddd64935b0291d9e9af85c496dbe.tar.gz |
rpm: expose $systemd_util_dir also as rpm macro
This variable (a.k.a. rootlibexecdir), was exposed through the .pc file, but
not as rpm macro.
The .pc file must be located in the package that provides libraries, which
pulls in a lot of dependencies. In Fedora, the macros are split out to a
separate package so that other packages which need to refer to some systemd
path but don't otherwise require it, can only pull in the (much smaller and
dependency-less) macros package. zram-generator uses the path to specify the
location of systemd-makefs, so by using the rpm macro we'll be able to use
a much smaller buildroot.
(cherry picked from commit 3bc66bfa0136e370a8f7b06c3b69a52f5636ef82)
(cherry picked from commit 490b9ae9dd786e0924cab59d578bb3d69a174079)
-rw-r--r-- | src/core/macros.systemd.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/macros.systemd.in b/src/core/macros.systemd.in index 8832c4a6f4..fb5fd4babd 100644 --- a/src/core/macros.systemd.in +++ b/src/core/macros.systemd.in @@ -5,6 +5,7 @@ # RPM macros for packages installing systemd unit files +%_systemd_util_dir @rootlibexecdir@ %_unitdir @systemunitdir@ %_userunitdir @userunitdir@ %_presetdir @systempresetdir@ |