Bug 29894

Summary: systemd pkg-config file should be moved from -devel subpackage to main package
Product: Mageia Reporter: Guillaume Rousse <guillomovitch>
Component: RPM PackagesAssignee: Thomas Backlund <tmb>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: dan, thierry.vignaud
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: systemd CVE:
Status comment:

Description Guillaume Rousse 2022-01-15 13:41:45 CET
pkg-config files are usually shipped in developement subpackage, because they are mainly needed to build software against a given library, which is quite specialised usage.

However, in the case of systemd, it may also be used by manual installation of any software trying to identify unit files location dynamically (pkg-config systemd --variable systemdsystemunitdir), which is closer of using systemd than building against it.

For this reason, it makes sense to move this file into the main runtime package, as Fedora does, for instance.
Comment 1 Lewis Smith 2022-01-15 21:05:14 CET
Passing this to tmb.

Source RPM: sytemd => systemd
Assignee: bugsquad => tmb

Comment 2 Thomas Backlund 2022-01-16 20:12:44 CET
Agreed.

Done in systemd-250.2-1.mga9 currently pushed to Cauldron Core Updates Testing

Resolution: (none) => FIXED
Status: NEW => RESOLVED

Comment 3 David Walser 2022-01-26 00:07:04 CET
This breaks everything that BuildRequires: pkgconfig(systemd) and actually needs systemd-devel.
Comment 4 Thomas Backlund 2022-01-26 11:17:53 CET
Yep. switching the deps from pkgconfig(systemd) to pkgconfig(libsystemd) fixes builds
Comment 5 Thierry Vignaud 2022-02-14 15:58:40 CET
This switch should be automated in all our spec files else we get random failures when rebuilding packages

CC: (none) => thierry.vignaud

Comment 6 Dan Fandrich 2022-02-17 19:45:19 CET
I've updated all remaining BuildRequires and Requires at Thomas' request.

CC: (none) => dan

Comment 7 Thomas Backlund 2022-02-17 19:46:42 CET
Thanks Dan.