<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>261125</bug_id>
          
          <creation_ts>2023-09-04 15:27:22 -0700</creation_ts>
          <short_desc>Extra space added to library name before passing into pkg-config</short_desc>
          <delta_ts>2023-09-16 04:29:36 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adrian Vovk">adrianvovk</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1975420</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Vovk">adrianvovk</who>
    <bug_when>2023-09-04 15:27:22 -0700</bug_when>
    <thetext>When searching for gstreamer and related libraries, WebKitGTK&apos;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 &quot;gstreamer-1.0 &quot;`. 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&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1977829</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-09-16 04:29:36 -0700</bug_when>
    <thetext>Fixed by https://gitlab.kitware.com/cmake/cmake/-/merge_requests/8789</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>