From e9584a606f65a0b0447652ecd3b2c63479f9dc34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20P=C3=B6tzsch?= Date: Thu, 24 Sep 2026 10:03:01 +0200 Subject: [PATCH 1/5] devel::swig: take the pcre2 flags from pkg-config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since 5a1d6a7 libpcre2 uses the basement version and this one is built with cmake and ships no pcre2-config anymore. Use pkg-config directly now. Signed-off-by: Christian Pötzsch --- recipes/devel/swig.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes/devel/swig.yaml b/recipes/devel/swig.yaml index ba87b166..a501cfd5 100644 --- a/recipes/devel/swig.yaml +++ b/recipes/devel/swig.yaml @@ -18,7 +18,8 @@ depends: buildScript: | autotoolsBuild $1 \ - --with-pcre2-prefix=${BOB_DEP_PATHS[libs::libpcre2-dev]}/usr + PCRE2_CFLAGS="$(pkg-config --cflags libpcre2-8)" \ + PCRE2_LIBS="$(pkg-config --libs libpcre2-8)" multiPackage: "": From abc1729e7c5bb9efeb0fe79578918e0ac32ec337 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20P=C3=B6tzsch?= Date: Tue, 22 Sep 2026 12:52:25 +0200 Subject: [PATCH 2/5] l4re: reapply the defconfig when it changed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit L4Re reads the defconfig only while it creates the build directory, so a later change to the file had no effect and the build silently kept the old configuration. Signed-off-by: Christian Pötzsch --- classes/l4re.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/l4re.yaml b/classes/l4re.yaml index a03a61be..65a11601 100644 --- a/classes/l4re.yaml +++ b/classes/l4re.yaml @@ -67,7 +67,7 @@ buildSetup: | # $3: targets (optional) l4reBuild() { - if [[ ! -e build/.bob-init-done ]] ; then + if [[ ! -e build/.bob-init-done || "$2" -nt build/.kconfig ]] ; then rm -rf $BOB_CWD/build make -C $1 B=$BOB_CWD/build \ DEFCONFIG="$2" From cb981ebe47bff6dbcef377c96ea6f12a1337f742 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20P=C3=B6tzsch?= Date: Fri, 25 Sep 2026 14:30:15 +0200 Subject: [PATCH 3/5] python::cryptography: link zlib with a static libcrypto MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Host builds link a static libcrypto, which is built with zlib support but does not pull in zlib. Any tool running on the host will fail later on. Fix this by adding zlib to the linker command line. Signed-off-by: Christian Pötzsch --- recipes/python/cryptography.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/recipes/python/cryptography.yaml b/recipes/python/cryptography.yaml index fc9f4cf1..f4645da4 100644 --- a/recipes/python/cryptography.yaml +++ b/recipes/python/cryptography.yaml @@ -41,6 +41,13 @@ buildSetup: | # caro builds a native-tool depending on python::cffi export HOST_CC=gcc export CARGO_BUILD_RUSTFLAGS="-C link-arg=-L${BOB_DEP_PATHS['openssl-host']}/usr/lib" + # A static libcrypto (host build) is built with zlib support but does not + # pull in zlib by itself. + if [[ ! -e ${OPENSSL_DIR}/lib/libcrypto.so ]] ; then + CARGO_TARGET_RUSTFLAGS_VAR=CARGO_TARGET_${CARGO_TARGET}_RUSTFLAGS + ZLIB_LIB_DIR="${BOB_ALL_PATHS['libs::zlib-dev']}/usr/lib" + export $CARGO_TARGET_RUSTFLAGS_VAR="${!CARGO_TARGET_RUSTFLAGS_VAR} -C link-arg=-L$ZLIB_LIB_DIR -C link-arg=-lz" + fi buildScript: | # without a git directory maturin fails with: From 7a5005e3c92e9e9edfa572112fc4c3fab0b3e2a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20P=C3=B6tzsch?= Date: Fri, 25 Sep 2026 14:48:23 +0200 Subject: [PATCH 4/5] python::cryptography: provide python::cffi MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The bindings import the cffi module at runtime, but cffi was only a build dependency for the build machine. Users of python::cryptography then fail to start. Add it as a regular dependency and provide it. Signed-off-by: Christian Pötzsch --- recipes/python/cryptography.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/recipes/python/cryptography.yaml b/recipes/python/cryptography.yaml index f4645da4..f5e7c340 100644 --- a/recipes/python/cryptography.yaml +++ b/recipes/python/cryptography.yaml @@ -17,7 +17,9 @@ depends: - name: python::maturin alias: python::maturin-host use: [tools] - - python::cffi + - name: python::cffi + alias: python::cffi-host + use: [result] - name: libs::openssl-dev alias: openssl-host use: [result] @@ -25,6 +27,7 @@ depends: - python::setuptools-rust - python::pycparser - python::semantic-version + - python::cffi - libs::openssl-dev - use: [] depends: @@ -69,4 +72,5 @@ provideDeps: - python::setuptools-rust - python::pycparser - python::semantic-version + - python::cffi - '*-tgt' From c55fa1f04a7b7e59d24ff1796e4f422e4f92a0ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20P=C3=B6tzsch?= Date: Thu, 24 Sep 2026 09:42:39 +0200 Subject: [PATCH 5/5] add utils::bmaptool v3.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian Pötzsch --- recipes/utils/bmaptool.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 recipes/utils/bmaptool.yaml diff --git a/recipes/utils/bmaptool.yaml b/recipes/utils/bmaptool.yaml new file mode 100644 index 00000000..bb01bb24 --- /dev/null +++ b/recipes/utils/bmaptool.yaml @@ -0,0 +1,25 @@ +inherit: ["python3::build"] + +metaEnvironment: + PKG_VERSION: "3.9.0" + PKG_LICENSE: "GPL-2.0-only" + +depends: + - python::hatchling + +checkoutSCM: + scm: url + url: ${GITHUB_MIRROR}/yoctoproject/bmaptool/archive/refs/tags/v${PKG_VERSION}.tar.gz + digestSHA256: 9940bb97fa0f2c11ee4625a2f620a4ae2b94c556f8d01c070aee08486a2a1812 + stripComponents: 1 + +buildScript: | + python3Build $1 + +packageScript: | + python3PackageTgt + +provideTools: + bmaptool: + path: usr/bin + dependTools: [python3]