⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 281192 in webkit


Ignore:
Timestamp:
Aug 18, 2021, 9:46:34 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

REGRESSION(r280382): [GTK] 2.33.3 does not build with gtk-doc enabled, installs broken pkg-config files
​https://bugs.webkit.org/show_bug.cgi?id=229152

Patch by Michael Catanzaro <Michael Catanzaro> on 2021-08-18
Reviewed by Philippe Normand.

Source/JavaScriptCore:

  • PlatformGTK.cmake:
  • javascriptcoregtk.pc.in:

Source/WebKit:

CMake is expanding templates in the pkg-config files that are not supposed to be expanded.
Oops! Let's switch back to using @SVN_REVISION@ instead of ${SVN_REVISION} as the template
for inserting the SVN revision into the pkg-config file, so we can tell CMake to leave the
${} variables alone.

  • PlatformGTK.cmake:
  • PlatformWPE.cmake:
  • Shared/glib/BuildRevision.h.in:
  • gtk/webkit2gtk-web-extension.pc.in:
  • gtk/webkit2gtk.pc.in:

Tools:

  • glib/apply-build-revision-to-files.py:

(main):

Location:
trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r281178 r281192  
     12021-08-18  Michael Catanzaro  <mcatanzaro@gnome.org>
     2
     3        REGRESSION(r280382): [GTK] 2.33.3 does not build with gtk-doc enabled, installs broken pkg-config files
     4        https://bugs.webkit.org/show_bug.cgi?id=229152
     5
     6        Reviewed by Philippe Normand.
     7
     8        * PlatformGTK.cmake:
     9        * javascriptcoregtk.pc.in:
     10
    1112021-08-17  Saam Barati  <sbarati@apple.com>
    212
  • trunk/Source/JavaScriptCore/PlatformGTK.cmake

    r280466 r281192  
    44set(JavaScriptCore_OUTPUT_NAME javascriptcoregtk-${WEBKITGTK_API_VERSION})
    55
     6configure_file(javascriptcoregtk.pc.in ${JavaScriptCore_PKGCONFIG_FILE} @ONLY)
     7
    68if (EXISTS "${TOOLS_DIR}/glib/apply-build-revision-to-files.py")
    7     configure_file(javascriptcoregtk.pc.in ${JavaScriptCore_PKGCONFIG_FILE} @ONLY)
    89    add_custom_target(JavaScriptCore-build-revision
    910        ${PYTHON_EXECUTABLE} "${TOOLS_DIR}/glib/apply-build-revision-to-files.py" ${JavaScriptCore_PKGCONFIG_FILE}
    … …  
    1314        JavaScriptCore-build-revision
    1415    )
    15 else ()
    16     configure_file(javascriptcoregtk.pc.in ${JavaScriptCore_PKGCONFIG_FILE})
    1716endif ()
    1817
  • trunk/Source/JavaScriptCore/javascriptcoregtk.pc.in

    r280382 r281192  
    33libdir=@LIB_INSTALL_DIR@
    44includedir=${prefix}/include
    5 revision=${BUILD_REVISION}
     5revision=@BUILD_REVISION@
    66
    77Name: JavaScriptCoreGTK+
  • trunk/Source/WebKit/ChangeLog

    r281186 r281192  
     12021-08-18  Michael Catanzaro  <mcatanzaro@gnome.org>
     2
     3        REGRESSION(r280382): [GTK] 2.33.3 does not build with gtk-doc enabled, installs broken pkg-config files
     4        https://bugs.webkit.org/show_bug.cgi?id=229152
     5
     6        Reviewed by Philippe Normand.
     7
     8        CMake is expanding templates in the pkg-config files that are not supposed to be expanded.
     9        Oops! Let's switch back to using @SVN_REVISION@ instead of ${SVN_REVISION} as the template
     10        for inserting the SVN revision into the pkg-config file, so we can tell CMake to leave the
     11        ${} variables alone.
     12
     13        * PlatformGTK.cmake:
     14        * PlatformWPE.cmake:
     15        * Shared/glib/BuildRevision.h.in:
     16        * gtk/webkit2gtk-web-extension.pc.in:
     17        * gtk/webkit2gtk.pc.in:
     18
    1192021-08-18  Wenson Hsieh  <wenson_hsieh@apple.com>
    220
  • trunk/Source/WebKit/PlatformGTK.cmake

    r280466 r281192  
    1111file(MAKE_DIRECTORY ${WebKit2Gtk_FRAMEWORK_HEADERS_DIR}/webkit2gtk-webextension)
    1212
     13configure_file(Shared/glib/BuildRevision.h.in ${WebKit2Gtk_FRAMEWORK_HEADERS_DIR}/BuildRevision.h)
    1314configure_file(UIProcess/API/gtk/WebKitVersion.h.in ${WebKit2Gtk_DERIVED_SOURCES_DIR}/webkit2/WebKitVersion.h)
     15configure_file(gtk/webkit2gtk.pc.in ${WebKit2_PKGCONFIG_FILE} @ONLY)
     16configure_file(gtk/webkit2gtk-web-extension.pc.in ${WebKit2WebExtension_PKGCONFIG_FILE} @ONLY)
    1417
    1518if (EXISTS "${TOOLS_DIR}/glib/apply-build-revision-to-files.py")
    16     configure_file(gtk/webkit2gtk.pc.in ${WebKit2_PKGCONFIG_FILE} @ONLY)
    17     configure_file(gtk/webkit2gtk-web-extension.pc.in ${WebKit2WebExtension_PKGCONFIG_FILE} @ONLY)
    18     configure_file(Shared/glib/BuildRevision.h.in ${WebKit2Gtk_FRAMEWORK_HEADERS_DIR}/BuildRevision.h @ONLY)
    1919    add_custom_target(WebKit-build-revision
    2020        ${PYTHON_EXECUTABLE} "${TOOLS_DIR}/glib/apply-build-revision-to-files.py" ${WebKit2Gtk_FRAMEWORK_HEADERS_DIR}/BuildRevision.h ${WebKit2_PKGCONFIG_FILE} ${WebKit2WebExtension_PKGCONFIG_FILE}
    … …  
    2424        WebKit-build-revision
    2525    )
    26 else ()
    27     configure_file(gtk/webkit2gtk.pc.in ${WebKit2_PKGCONFIG_FILE})
    28     configure_file(gtk/webkit2gtk-web-extension.pc.in ${WebKit2WebExtension_PKGCONFIG_FILE})
    29     configure_file(Shared/glib/BuildRevision.h.in ${WebKit2Gtk_FRAMEWORK_HEADERS_DIR}/BuildRevision.h)
    3026endif ()
    3127
  • trunk/Source/WebKit/PlatformWPE.cmake

    r280466 r281192  
    1313file(MAKE_DIRECTORY ${FORWARDING_HEADERS_WPE_JSC_DIR})
    1414
     15configure_file(Shared/glib/BuildRevision.h.in ${FORWARDING_HEADERS_WPE_DIR}/BuildRevision.h)
    1516configure_file(UIProcess/API/wpe/WebKitVersion.h.in ${DERIVED_SOURCES_WPE_API_DIR}/WebKitVersion.h)
    1617configure_file(wpe/wpe-webkit.pc.in ${WPE_PKGCONFIG_FILE} @ONLY)
    … …  
    2021
    2122if (EXISTS "${TOOLS_DIR}/glib/apply-build-revision-to-files.py")
    22     configure_file(Shared/glib/BuildRevision.h.in ${FORWARDING_HEADERS_WPE_DIR}/BuildRevision.h @ONLY)
    2323    add_custom_target(WebKit-build-revision
    2424        ${PYTHON_EXECUTABLE} "${TOOLS_DIR}/glib/apply-build-revision-to-files.py" ${FORWARDING_HEADERS_WPE_DIR}/BuildRevision.h
    … …  
    2828        WebKit-build-revision
    2929    )
    30 else ()
    31     configure_file(Shared/glib/BuildRevision.h.in ${FORWARDING_HEADERS_WPE_DIR}/BuildRevision.h)
    3230endif ()
    3331
  • trunk/Source/WebKit/Shared/glib/BuildRevision.h.in

    r280382 r281192  
    2626#pragma once
    2727
    28 #define BUILD_REVISION "${BUILD_REVISION}"
     28#define BUILD_REVISION "@BUILD_REVISION@"
  • trunk/Source/WebKit/gtk/webkit2gtk-web-extension.pc.in

    r280382 r281192  
    33libdir=@LIB_INSTALL_DIR@
    44includedir=${prefix}/include
    5 revision=${BUILD_REVISION}
     5revision=@BUILD_REVISION@
    66
    77Name: WebKitGTK web process extensions
  • trunk/Source/WebKit/gtk/webkit2gtk.pc.in

    r280382 r281192  
    33libdir=@LIB_INSTALL_DIR@
    44includedir=${prefix}/include
    5 revision=${BUILD_REVISION}
     5revision=@BUILD_REVISION@
    66
    77Name: WebKitGTK
  • trunk/Tools/ChangeLog

    r281191 r281192  
     12021-08-18  Michael Catanzaro  <mcatanzaro@gnome.org>
     2
     3        REGRESSION(r280382): [GTK] 2.33.3 does not build with gtk-doc enabled, installs broken pkg-config files
     4        https://bugs.webkit.org/show_bug.cgi?id=229152
     5
     6        Reviewed by Philippe Normand.
     7
     8        * glib/apply-build-revision-to-files.py:
     9        (main):
     10
    1112021-08-18  Jonathan Bedard  <jbedard@apple.com>
    212
  • trunk/Tools/glib/apply-build-revision-to-files.py

    r281155 r281192  
    7171                for line in fd.readlines():
    7272                    if line.startswith("revision"):
    73                         line = "revision=${BUILD_REVISION}\n"
     73                        line = "revision=@BUILD_REVISION@\n"
    7474                    lines.append(line)
    7575            data = "".join(lines)
    7676        else:
    77             print("Support for expanding $BUILD_REVISION in {} is missing.".format(in_file))
     77            print("Support for expanding @BUILD_REVISION@ in {} is missing.".format(in_file))
    7878            return 1
    7979
    8080        with open(in_file, 'w') as fd:
    81             fd.write(data.replace('${BUILD_REVISION}', build_revision))
     81            fd.write(data.replace('@BUILD_REVISION@', build_revision))
    8282
    8383    return 0
Note: See TracChangeset for help on using the changeset viewer.