On Wed, Jul 15, 2020 at 5:56 AM Jan Engelhardt <jengelh@inai.de> wrote:
On Wednesday 2020-07-15 08:51, Thorsten Kukuk wrote:
The section "(Build) Requirements" in https://en.opensuse.org/openSUSE:Systemd_packaging_guidelines#.28Build.29_Re... is obsolete as rpm-build requires systemd-rpm-macros and the bcond is not relevant on current distros anymore.
Therefore I propose to remove the section without replacement.
In this regard, is the "BuildRequires: pkgconfig(systemd)" in the examples on that page really correct? For what do I need this BuildRequires if I package some sytemd units, but don't link against systemd?
For those who don't know, systemd.pc is just a file full of path variables. If a program's build script can read this, it will be able to auto-detect the platform's systemd unit path configuration, among other things. It's essentially the build script equivalent of the upstream systemd rpm macros. If you want to *link* to systemd, you need to use libsystemd.pc. That contains the standard pkgconfig information used for detecting the library and linking to it. And of course, finally systemd-rpm-macros is the package that contains the rpm macros used for packaging stuff using systemd features. :) -- 真実はいつも一つ!/ Always, there's only one truth! -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org