Bug 261125 - Extra space added to library name before passing into pkg-config
Summary: Extra space added to library name before passing into pkg-config
Status: RESOLVED MOVED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-04 15:27 PDT by Adrian Vovk
Modified: 2023-09-16 04:29 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Vovk 2023-09-04 15:27:22 PDT
When searching for gstreamer and related libraries, WebKitGTK's build system appends an extra space to the library name before passing it into pkg-config. So for instance: when looking for `gstreamer-1.0`, it will invoke `pkg-config --modversion "gstreamer-1.0 "`. Strangely, some gstreamer-related libraries (example: gstreamer-full-1.0 and gstreamer-mpegts-1.0) do not get an extra space appended to them.

In versions of pkgconf older than 2.0.3, the extra space would just get ignored and everything would continue as normal. Since pkgconf 2.0.3, this is NOT the case anymore, and instead pkgconf prints nothing (unclear if this is a bug on their part... I've opened an issue here: https://github.com/pkgconf/pkgconf/issues/317)

In effect, this means that since pkgconf 2.0.3, I cannot compile webkitgtk, because it fails to find the version numbers for most gstreamer-related libraries.

Version info:
WebkitGTK 2.40.5
Gstreamer 1.22.5
carbonOS
Comment 1 Michael Catanzaro 2023-09-16 04:29:36 PDT
Fixed by https://gitlab.kitware.com/cmake/cmake/-/merge_requests/8789