Skip to contentSkip to conversation

libsdl2: Add libunwind-native to the libsdl2-native DEPENDS

PATCH In review Carlos Rafael Giani 3 participants 3 messages Mar 4, 2022 – Mar 5, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libsdl2: Add libunwind-native to the libsdl2-native DEPENDS

This fixes this CMake configuration error:

| -- Checking for one of the modules 'libunwind'
| CMake Error at [...]/build/tmp/work/x86_64-linux/libsdl2-native/2.0.20-r0/recipe-sysroot-native/usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:890 (message):
|   None of the required 'libunwind' found
| Call Stack (most recent call first):
|   CMakeLists.txt:1367 (pkg_search_module)

This error happens even if libunwind is installed complete with its C headers and development .so files (in Ubuntu, this means libunwind-dev is installed).

---
 meta/recipes-graphics/libsdl2/libsdl2_2.0.20.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-graphics/libsdl2/libsdl2_2.0.20.bb +2 -0
index 90724ab8b7..802efba980 100644
@@ -27,6 +27,8 @@ SRC_URI[sha256sum] = "c56aba1d7b5b0e7e999e4a7698c70b63a3394ff9704b5f6e1c57e0c16f
 
 inherit cmake lib_package binconfig-disabled pkgconfig
 
+DEPENDS:class-native += "libunwind-native"
+
 BINCONFIG = "${bindir}/sdl2-config"
 
 CVE_PRODUCT = "simple_directmedia_layer sdl"
Signature · 1 line
2.32.0
#1 lore raw
Quoted 30 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Carlos Rafael Giani via lists.openembedded.org
Sent: den 4 mars 2022 08:55
To: [email protected]
Subject: [OE-core] [PATCH] libsdl2: Add libunwind-native to the libsdl2-native DEPENDS

This fixes this CMake configuration error:

| -- Checking for one of the modules 'libunwind'
| CMake Error at [...]/build/tmp/work/x86_64-linux/libsdl2-native/2.0.20-r0/recipe-sysroot-native/usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:890 (message):
|   None of the required 'libunwind' found
| Call Stack (most recent call first):
|   CMakeLists.txt:1367 (pkg_search_module)

This error happens even if libunwind is installed complete with its C headers and development .so files (in Ubuntu, this means libunwind-dev is installed).

---
 meta/recipes-graphics/libsdl2/libsdl2_2.0.20.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-graphics/libsdl2/libsdl2_2.0.20.bb +0 -0
index 90724ab8b7..802efba980 100644
@@ -27,6 +27,8 @@ SRC_URI[sha256sum] =

"c56aba1d7b5b0e7e999e4a7698c70b63a3394ff9704b5f6e1c57e0c16f

Quoted 3 lines

inherit cmake lib_package binconfig-disabled pkgconfig

+DEPENDS:class-native += "libunwind-native"

The above should be:

DEPENDS:append:class-native = " libunwind-native"

However, why don't libsdl2 built for target and nativesdk need to depend on libunwind? I.e., why isn't the above:

DEPENDS = "libunwind"

Quoted 6 lines

+
BINCONFIG = "${bindir}/sdl2-config"

CVE_PRODUCT = "simple_directmedia_layer sdl"
--
2.32.0

//Peter

#2 lore raw
Quoted 42 lines · Peter Kjellerstedt
Quoted 36 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Carlos Rafael Giani via lists.openembedded.org
Sent: den 4 mars 2022 08:55
To: [email protected]
Subject: [OE-core] [PATCH] libsdl2: Add libunwind-native to the libsdl2-native DEPENDS

This fixes this CMake configuration error:

Quoted 7 lines

-- Checking for one of the modules 'libunwind'
CMake Error at [...]/build/tmp/work/x86_64-linux/libsdl2-native/2.0.20- r0/recipe-sysroot-native/usr/share/cmake- 3.22/Modules/FindPkgConfig.cmake:890 (message):
  None of the required 'libunwind' found
Call Stack (most recent call first):
  CMakeLists.txt:1367 (pkg_search_module)

This error happens even if libunwind is installed complete with its C headers and development .so files (in Ubuntu, this means libunwind-dev is installed).

---
 meta/recipes-graphics/libsdl2/libsdl2_2.0.20.bb | 2 ++

 1 file changed, 2 insertions(+)
meta/recipes- renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.20.bb +0 -0

graphics/libsdl2/libsdl2_2.0.20.bb
index 90724ab8b7..802efba980 100644

meta/recipes-graphics/libsdl2/libsdl2_2.0.20.bb +0 -0
@@ -27,6 +27,8 @@ SRC_URI[sha256sum] =

"c56aba1d7b5b0e7e999e4a7698c70b63a3394ff9704b5f6e1c57e0c16f

Quoted 3 lines

 inherit cmake lib_package binconfig-disabled pkgconfig

+DEPENDS:class-native += "libunwind-native"

The above should be:

Quoted 8 lines

DEPENDS:append:class-native = " libunwind-native"

However, why don't libsdl2 built for target and nativesdk need to depend on libunwind? I.e., why isn't the above:

DEPENDS = "libunwind"

There is a second issue, libunwind-native doesn't build on all our systems:

https://autobuilder.yoctoproject.org/typhoon/#/builders/91/builds/5624/steps/12/logs/stdio

:(

I think I may have to revert this until we get to the bottom of things.

Cheers,

Richard