From 8c447e4a92e766886290eb8ebe5759ccda43e970 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 27 Jan 2024 13:10:30 -0800 Subject: [PATCH] qtwebengine: Add missing dependency on native libevent.pc Latest qtwebengine does the right thing by not looking into build host's rootfs but this means we need to add libevent to native sysroot to meet this dependency, otherwise gn fails to find it and build fails like below Fixes: | -- GN FAILED |- | ERROR at //build/config/linux/pkg_config.gni:104:17 | (//build/toolchain/yocto:yocto_native): Script returned non-zero exit code. |- | pkgresult = exec_script(pkg_config_script, args, "value") | ^---------- |- | Current dir: | /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/qtwebengine/6.6.2/build/src/core/Release/aarch64/ |- |- | Command: | /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/qtwebengine/6.6.2/recipe-sysroot-native/usr/bin/python3-native/python3 | /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/qtwebengine/6.6.2/git/src/3rdparty/chromium/build/config/linux/pkg-config.py | -p | /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/qtwebengine/6.6.2/recipe-sysroot-native/usr/bin/pkg-config-native | libevent |- | Returned 1. |- | stderr: |- |- |- | Package libevent was not found in the pkg-config search path. |- | Perhaps you should add the directory containing `libevent.pc' |- | to the PKG_CONFIG_PATH environment variable |- | No package 'libevent' found |- | Could not run pkg-config. Change-Id: I66d8806be14d2d4d57dca2d93688d5b58e0e1cb6 Reviewed-by: Mikko Gronoff (cherry picked from commit bc941d6f9a61a412438ec5a3317d8fe055136d97) (cherry picked from commit 32f609f6321cc4bb9571e39fcace7099c7a5d219) --- recipes-qt/qt6/qtwebengine_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-qt/qt6/qtwebengine_git.bb b/recipes-qt/qt6/qtwebengine_git.bb index 94c3d2e..b968c54 100644 --- a/recipes-qt/qt6/qtwebengine_git.bb +++ b/recipes-qt/qt6/qtwebengine_git.bb @@ -53,7 +53,7 @@ PACKAGECONFIG[glib] = "-DFEATURE_webengine_system_glib=ON,-DFEATURE_webengine_sy PACKAGECONFIG[harfbuzz] = "-DFEATURE_webengine_system_harfbuzz=ON,-DFEATURE_webengine_system_harfbuzz=OFF,harfbuzz" PACKAGECONFIG[icu] = "-DFEATURE_webengine_system_icu=ON,-DFEATURE_webengine_system_icu=OFF,icu" PACKAGECONFIG[lcms2] = "-DFEATURE_webengine_system_lcms2=ON,-DFEATURE_webengine_system_lcms2=OFF,lcms" -PACKAGECONFIG[libevent] = "-DFEATURE_webengine_system_libevent=ON,-DFEATURE_webengine_system_libevent=OFF,libevent" +PACKAGECONFIG[libevent] = "-DFEATURE_webengine_system_libevent=ON,-DFEATURE_webengine_system_libevent=OFF,libevent libevent-native" PACKAGECONFIG[libjpeg] = "-DFEATURE_webengine_system_libjpeg=ON,-DFEATURE_webengine_system_libjpeg=OFF,jpeg" PACKAGECONFIG[libpng] = "-DFEATURE_webengine_system_libpng=ON,-DFEATURE_webengine_system_libpng=OFF,libpng" PACKAGECONFIG[libvpx] = "-DFEATURE_webengine_system_libvpx=ON,-DFEATURE_webengine_system_libvpx=OFF,libvpx"