如何应用下载的Qt5webkit补丁

问题描述 投票:0回答:1

~/buildroot-2024.08.2/package/qt5/qt5 webkit/ 〜/buildroot-2024.08.2/package/qt-webkit-kiosk/

如何在这些文件上应用此补丁 这是补丁

 diff --git a/package/qt5/qt5webkit/qt5webkit.mk b/package/qt5/qt5webkit/qt5webkit.mk
    index 6912359674..a850a03ca9 100644
    --- a/package/qt5/qt5webkit/qt5webkit.mk
    +++ b/package/qt5/qt5webkit/qt5webkit.mk
    @@ -50,6 +50,23 @@  ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
     QT5WEBKIT_CONF_OPTS += -DENABLE_SAMPLING_PROFILER=OFF
     endif
    
    +define QT5WEBKIT_CONF_PRI
    +       $(SED) 's/QT.webkit.includes =.*/QT.webkit.includes = \$$\$$QT_MODULE_INCLUDE_BASE \$$\$$QT_MODULE_INCLUDE_BASE\/QtWebKit/g' -e 's/QT.webkit.libs =.*/QT.webkit.libs = \$$\$$QT_MODULE_LI>
    +
    +       $(SED) 's/QT.webkit_private.includes =.*/QT.webkit_private.includes = \$$\$$QT_MODULE_INCLUDE_BASE\/QtWebKit\/5.212.0 \$$\$$QT_MODULE_INCLUDE_BASE\/QtWebKit\/5.212.0\/QtWebKit/g' -e 's/>
    +
    +       $(SED) 's/QT.webkitwidgets.includes =.*/QT.webkitwidgets.includes = \$$\$$QT_MODULE_INCLUDE_BASE \$$\$$QT_MODULE_INCLUDE_BASE\/QtWebKitWidgets/g' -e 's/QT.webkitwidgets.libs =.*/QT.webk>
    +
    +       $(SED) 's/QT.webkitwidgets_private.includes =.*/QT.webkitwidgets_private.includes = \$$\$$QT_MODULE_INCLUDE_BASE\/QtWebKitWidgets\/5.212.0 \$$\$$QT_MODULE_INCLUDE_BASE\/QtWebKitWidgets\>
    +endef
    +QT5WEBKIT_POST_CONFIGURE_HOOKS += QT5WEBKIT_CONF_PRI
    +
    +define QT5WEBKIT_CREATE_SYMLINK
    +       ln -sf $(HOST_DIR)/arm-buildroot-linux-gnueabihf/sysroot/usr/mkspecs/modules/*.pri $(HOST_DIR)/mkspecs/modules/
    +       ln -sf $(HOST_DIR)/arm-buildroot-linux-gnueabihf/sysroot/usr/include/QtWebKit* $(HOST_DIR)/arm-buildroot-linux-gnueabihf/sysroot/usr/include/qt5/
    +endef
    +QT5WEBKIT_POST_INSTALL_STAGING_HOOKS += QT5WEBKIT_CREATE_SYMLINK
    +
     QT5WEBKIT_CONF_OPTS += \
            -DENABLE_TOOLS=OFF \
            -DPORT=Qt \

提前致谢

linux qt5 buildroot qtwebkit
1个回答
0
投票

只需涂抹即可。从您的 buildroot 目录:

patch -p1 < path/to/the/patch

如果出现错误,则说明您拥有的补丁适用于不同版本的 Buildroot,您必须手动应用更改。

© www.soinside.com 2019 - 2024. All rights reserved.