Skip to contentSkip to conversation

Cherry-picking fixes into Dunfell

PATCH Superseded Ruslan Babayev (fib) 2 participants 4 messages Jul 22, 2021 – Jul 23, 2021

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

The following two fixes are in master but affecting Dunfell. Cherry-picked with some massaging.

#1 lore raw

PATCH 1/2 cmake-native: enabled zstd support

From: Samuli Piippo <[email protected]>

CMake depends on having all formats supported and build issues can arise when zstd is not available:
https://gitlab.kitware.com/cmake/cmake/-/issues/21552

Quote from a CMake dev:
"As far as CMake's design is concerned, we have no optional formats. All should be supported. That's why we bundle sufficiently new versions of libarchive and libzstd. If a distro builds with an older libarchive that doesn't have zstd support, then that is not a proper packaging of CMake."

---
 meta/recipes-devtools/cmake/cmake-native_3.16.5.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/cmake/cmake-native_3.16.5.bb +1 -1
index b2952ee5f5..6034b654da 100644
@@ -1,7 +1,7 @@
 require cmake.inc
 inherit native
 
-DEPENDS += "bzip2-replacement-native expat-native xz-native zlib-native curl-native ncurses-native"
+DEPENDS += "bzip2-replacement-native expat-native xz-native zlib-native curl-native ncurses-native zstd-native"
 
 SRC_URI += "file://OEToolchainConfig.cmake \
             file://environment.d-cmake.sh \
Signature · 1 line
2.26.2.Cisco
#2 lore raw

PATCH 2/2 qemu.inc: Add seccomp PACKAGECONFIG option

In reply to Ruslan Babayev (fib)

From: Nathan Rossi <[email protected]>

Add the seccomp PACKAGECONFIG option to allow building seccomp features in QEMU. The libseccomp library is available in additional layers (e.g. meta-security).

Additionally this serves as a way to disable seccomp by default to avoid the configure of QEMU automatically finding it (via pkg-config) on the build host when building qemu-system-native and auto enabling the feature.

---
 meta/recipes-devtools/qemu/qemu.inc | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/qemu/qemu.inc +1 -0
index 8f927bdf54..e25c2524aa 100644
@@ -210,6 +210,7 @@ PACKAGECONFIG[glusterfs] = "--enable-glusterfs,--disable-glusterfs"
 PACKAGECONFIG[xkbcommon] = "--enable-xkbcommon,--disable-xkbcommon,libxkbcommon"
 PACKAGECONFIG[libudev] = "--enable-libudev,--disable-libudev,eudev"
 PACKAGECONFIG[libxml2] = "--enable-libxml2,--disable-libxml2,libxml2"
+PACKAGECONFIG[seccomp] = "--enable-seccomp,--disable-seccomp,libseccomp"
 
 INSANE_SKIP_${PN} = "arch"
 
Signature · 1 line
2.26.2.Cisco
#3 lore raw

Re: [OE-core] [PATCH 2/2] qemu.inc: Add seccomp PACKAGECONFIG option

Quoted 23 lines · Ruslan Babayev (fib) via lists.openembedded.org

From: Nathan Rossi <[email protected]>

Add the seccomp PACKAGECONFIG option to allow building seccomp features in QEMU. The libseccomp library is available in additional layers (e.g. meta-security).

Additionally this serves as a way to disable seccomp by default to avoid the configure of QEMU automatically finding it (via pkg-config) on the build host when building qemu-system-native and auto enabling the feature.

---
 meta/recipes-devtools/qemu/qemu.inc | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/qemu/qemu.inc +0 -0
index 8f927bdf54..e25c2524aa 100644

meta/recipes-devtools/qemu/qemu.inc PACKAGECONFIG[glusterfs] = "--enable-glusterfs,--disable-glusterfs" · line 214

Quoted 5 lines
meta/recipes-devtools/qemu/qemu.inc +1 -0
@@ -210,6 +210,7 @@ PACKAGECONFIG[glusterfs] = "--enable-glusterfs,--disable-glusterfs"
 PACKAGECONFIG[xkbcommon] = "--enable-xkbcommon,--disable-xkbcommon,libxkbcommon"
 PACKAGECONFIG[libudev] = "--enable-libudev,--disable-libudev,eudev"
 PACKAGECONFIG[libxml2] = "--enable-libxml2,--disable-libxml2,libxml2"
+PACKAGECONFIG[seccomp] = "--enable-seccomp,--disable-seccomp,libseccomp"
 

also enable it when seccomp is in DISTRO_FEATURES please

Quoted 8 lines
meta/recipes-devtools/qemu/qemu.inc +0 -1
 INSANE_SKIP_${PN} = "arch"
 
--

2.26.2.Cisco