openSUSE / obs-build

OBS build script, can be used with OBS or stand alone
GNU General Public License v2.0
132 stars 184 forks source link

Drop automatic inclusion of .pc file for baselibs. #1002

Open badshah400 opened 4 months ago

badshah400 commented 4 months ago

Fixes #724.

Avoid default inclusion of pkgconfig files in automatically generated baselibs configured biarch packages. This avoids the "have choice" issue seen with BuildRequires: pkgconfig(FOO) type dependencies on OBS for any dependents of a biarch FOO-devel package. It is wrong to ask every project supporting biarch devel packages to configure project macros to disfavour one pkgconfig based dependency in favour of another.

Packager may at their wish explicitly include the pkgconfig file in the biarch package explicitly by appropriately configure the associated baselibs.conf file, but as a default, this should be hardly ever required.

badshah400 commented 3 months ago

Ping?

mlschroe commented 3 months ago

See https://bugzilla.suse.com/show_bug.cgi?id=1172563, which asked for adding the .pc files.

badshah400 commented 3 months ago

Thanks for the reference. Looks to me like the missing piece of the puzzle — correct RPM autoprovides for baselibs — has been missing for a while. From reading that bug report, it seems everyone pretty much agrees that packaging .pc files for the baselibs without first correcting the autoprovs is a mistake that is haphazardly worked around in Factory but needs similar hackish workarounds for every project using these biarch libs.

I would still suggest skipping automatic inclusion of these .pc files.

badshah400 commented 3 months ago

Off the top of my head, the other option would be to turn off AutoProv for baslibs generated packages that do install .pc files.