-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
None
Description of problem:
yggdrasil requires a build dependency /usr/bin/pkg-config. That forces customers to enable the AppStream repository to get pkg-config from there. The pkg-config package should be a build dependency as the end user is not supposed to consume the installed file`%{_prefix}/share/pkgconfig/%{name}.pc`, otherwise they want to operate with building yggdrasil.
Hints:
The script that injects that `Requires` in the package can be found in the rpm master branch: https://github.com/rpm-software-management/rpm/blob/master/scripts/pkgconfigdeps.sh
Here are macros that use that script: https://github.com/rpm-software-management/rpm/blob/c2cc3c3763395fa28af9f4382674fe35324a3c4a/fileattrs/pkgconfig.attr#L2
How reproducible:
always
Is this issue a regression from an earlier version:
not a regression
Steps to Reproduce:
1. Check that yggdrasil requires pkg-config: rpm -qR yggdrasil
Actual behavior:
pkgconfigdeps.sh injects `/usr/bin/pkg-config` in yggdrrasil RPM package metadata
Expected behavior:
`/usr/bin/pkg-config` not present in yggdrrasil RPM package metadata
Business Impact / Additional info:
I see two ways to fix it.
- rm -f %{_prefix}/share/pkgconfig/%{name}.pc from build root
- or configuring make/configure to not create the .pc file at all