[meta-oe] wxwidgets: git -> gitsm to fix build when no x11

Message ID 20220402065943.12799-1-liezhi.yang@windriver.com
State New
Headers show
Series [meta-oe] wxwidgets: git -> gitsm to fix build when no x11 | expand

Commit Message

Robert Yang April 2, 2022, 6:59 a.m. UTC
Fixed when x11 is not in DISTRO_FEATURES:
$ bitbake wxwidgets
CMake Error at build/cmake/functions.cmake:542 (add_library):
  Cannot find source file:
/path/to/core2-64-wrs-linux/wxwidgets/3.1.5-r0/git/src/expat/expat/lib/xmlparse.c

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb b/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb
index b10742eac..e82143040 100644
--- a/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb
+++ b/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb
@@ -19,7 +19,7 @@  DEPENDS += " \
 "
 
 SRC_URI = " \
-    git://github.com/wxWidgets/wxWidgets.git;branch=master;protocol=https \
+    gitsm://github.com/wxWidgets/wxWidgets.git;branch=master;protocol=https \
     file://0001-wx-config.in-Disable-cross-magic-it-does-not-work-fo.patch \
     file://fix-libdir-for-multilib.patch \
     file://respect-DESTDIR-when-create-link.patch \