botan: Upgrade to 3.9.0
PATCH 1/11 botan: Upgrade to 3.9.0
Drop unsupported configure options
Fix reproducible builds
---
.../botan/{botan_3.7.1.bb => botan_3.9.0.bb} | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
rename meta-oe/recipes-crypto/botan/{botan_3.7.1.bb => botan_3.9.0.bb} (86%)meta-oe/recipes-crypto/botan/botan_3.9.0.bb renamed from meta-oe/recipes-crypto/botan/botan_3.7.1.bb +4 -4
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://license.txt;md5=3f911cecfc74a2d9f1ead9a07bd92a6e" SECTION = "libs" SRC_URI = "https://botan.randombit.net/releases/Botan-${PV}.tar.xz" -SRC_URI[sha256sum] = "fc0620463461caaea8e60f06711d7e437a3ad1eebd6de4ac29c14bbd901ccd1b" +SRC_URI[sha256sum] = "8c3f284b58ddd42e8e43e9fa86a7129d87ea7c3f776a80d3da63ec20722b0883" S = "${UNPACKDIR}/Botan-${PV}"
@@ -24,8 +24,6 @@ do_configure() { --cc-bin="${CXX}" \ --cxxflags="${CXXFLAGS}" \ --ldflags="${LDFLAGS}" \ - --with-endian=${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', 'little', 'big', d)} \ - ${@bb.utils.contains("TUNE_FEATURES","neon","","--disable-neon",d)} \ --with-sysroot-dir=${STAGING_DIR_HOST} \ --with-build-dir="${B}" \ --optimize-for-size \
@@ -36,12 +34,14 @@ do_configure() { } do_compile() { + sed -i -e 's|${WORKDIR}|<scrubbed>|g' ${B}/build/target_info.h oe_runmake } + do_install() { oe_runmake DESTDIR=${D} install sed -i -e 's|${WORKDIR}|<scrubbed>|g' ${D}${includedir}/botan-3/botan/build.h - + # Add botan binary and test tool install -d ${D}${bindir} install -d ${D}${datadir}/${PN}/tests/data
PATCH 2/11 libcamera: Detect platform/toolchain defaults for C++ library
This ensures that meson does not detect it and automatically link to it when using clang with gnu runtime
--- ...camera-Do-not-assume-libc-with-clang.patch | 68 +++++++++++++++++++ .../libcamera/libcamera_0.5.2.bb | 1 + 2 files changed, 69 insertions(+) create mode 100644 meta-multimedia/recipes-multimedia/libcamera/libcamera/0001-libcamera-Do-not-assume-libc-with-clang.patch
meta-multimedia/recipes-multimedia/libcamera/libcamera/0001-libcamera-Do-not-assume-libc-with-clang.patch new file +68 -0
@@ -0,0 +1,68 @@ +From 82e9d391d312d65e7a62252e9e153b93c06ad37b Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 24 Oct 2025 11:10:59 -0700 +Subject: [PATCH] libcamera: Do not assume libc++ with clang + +Clang on linux can be defaulting to use libstdc++, it +should be using default platform C++ runtime library which the +toolchain should be configured to do the right thing + +Add logic in meson file to detect C++ runtime used by toolchain +and defile -stdlib= parameter accordingly + +Upstream-Status: Submitted [https://lists.libcamera.org/pipermail/libcamera-devel/2025-October/054151.html] +Signed-off-by: Khem Raj <[email protected]> +--- + meson.build | 32 +++++++++++++++++++++----------- + 1 file changed, 21 insertions(+), 11 deletions(-) + +diff --git a/meson.build b/meson.build +index fd508fd7..5707f850 100644 +--- a/meson.build ++++ b/meson.build +@@ -118,7 +118,24 @@ cpp_arguments = [ + '-Wnon-virtual-dtor', + ] + +-cxx_stdlib = 'libstdc++' ++# Try to detect libc++ ++libcxx_ver = cxx.get_define('_LIBCPP_VERSION', ++ prefix: '#include <vector>\n') ++ ++# Try to detect libstdc++ ++glibcxx_ver = cxx.get_define('__GLIBCXX__', ++ prefix: '#include <vector>\n') ++ ++stdlib_msg = 'unknown' ++ ++if libcxx_ver != '' ++ cxx_stdlib = 'libc++' ++elif glibcxx_ver != '' ++ # __GLIBCXX__ is usually a yyyymmdd date code ++ cxx_stdlib = 'libstdc++' ++endif ++ ++message('Detected C++ standard library: ' + cxx_stdlib) + + if cc.get_id() == 'clang' + if cc.version().version_compare('<9') +@@ -138,16 +155,9 @@ if cc.get_id() == 'clang' + ] + endif + endif +- +- # Use libc++ by default if available instead of libstdc++ when compiling +- # with clang. +- if cc.find_library('c++', required : false).found() +- cpp_arguments += [ +- '-stdlib=libc++', +- ] +- cxx_stdlib = 'libc++' +- endif +- ++ cpp_arguments += [ ++ '-stdlib=' + cxx_stdlib, ++ ] + cpp_arguments += [ + '-Wextra-semi', + '-Wthread-safety',
meta-multimedia/recipes-multimedia/libcamera/libcamera_0.5.2.bb +1 -0
@@ -10,6 +10,7 @@ LIC_FILES_CHKSUM = "\ SRC_URI = " \ git://git.libcamera.org/libcamera/libcamera.git;protocol=https;branch=master;tag=v${PV} \ + file://0001-libcamera-Do-not-assume-libc-with-clang.patch \ " SRCREV = "096c50ca881f72d858aca19757a5e73b4775a7cc"
PATCH 3/11 rocksdb: stdint.h needs to included in transaction_db_mutex.h
In reply to Khem RajIt uses int64_t type
--- ...eckpoint.h-Add-missing-includes-cstdint.patch | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-)
meta-oe/recipes-dbs/rocksdb/files/0001-checkpoint.h-Add-missing-includes-cstdint.patch +12 -4
@@ -27,10 +27,8 @@ Signed-off-by: mark.yang <[email protected]> include/rocksdb/utilities/checkpoint.h | 1 + 1 file changed, 1 insertion(+) -Index: git/include/rocksdb/utilities/checkpoint.h -=================================================================== ---- git.orig/include/rocksdb/utilities/checkpoint.h -+++ git/include/rocksdb/utilities/checkpoint.h +--- a/include/rocksdb/utilities/checkpoint.h ++++ b/include/rocksdb/utilities/checkpoint.h @@ -7,6 +7,7 @@ #pragma once
@@ -39,3 +37,13 @@ Index: git/include/rocksdb/utilities/checkpoint.h #include <string> #include <vector> +--- a/include/rocksdb/utilities/transaction_db_mutex.h ++++ b/include/rocksdb/utilities/transaction_db_mutex.h +@@ -5,6 +5,7 @@ + + #pragma once + ++#include <cstdint> + #include <memory> + + #include "rocksdb/status.h"
PATCH 4/11 rocksdb: Link with libatomic on x86 when using clang/libgcc
In reply to Khem RajFixes
| i686-yoe-linux-ld.lld: error: undefined reference: __atomic_compare_exchange | >>> referenced by librocksdb.so.9.10.0 (disallowed by --no-allow-shlib-undefined) | i686-yoe-linux-clang++: error: linker command failed with exit code 1 (use -v to see invocation) | ninja: build stopped: subcommand failed.
--- meta-oe/recipes-dbs/rocksdb/rocksdb_9.10.0.bb | 1 + 1 file changed, 1 insertion(+)
meta-oe/recipes-dbs/rocksdb/rocksdb_9.10.0.bb +1 -0
@@ -29,6 +29,7 @@ SRC_URI:append:mips = " file://0001-replace-old-sync-with-new-atomic-builtin-equ SRC_URI:append:powerpc = " file://0001-replace-old-sync-with-new-atomic-builtin-equivalents.patch" SRC_URI:remove:toolchain-clang:riscv32 = "file://0001-replace-old-sync-with-new-atomic-builtin-equivalents.patch" +LDFLAGS:append:toolchain-clang:x86 = "${@bb.utils.contains_any("TC_CXX_RUNTIME", "gnu", " -latomic", "", d)}" inherit cmake ptest
PATCH 5/11 libtorrent: Upgrade to 0.16.1
In reply to Khem RajFix a m4 script bug
Drop CVE_STATUS since this is only needed for < 0.14 release Enable using posix_fallocate when creating a new file to avoid fragmentation
---
...mmon.m4-Insert-spaces-in-shell-lists.patch | 45 +++++++++++++++++++
...torrent_0.14.0.bb => libtorrent_0.16.1.bb} | 12 +++--
2 files changed, 50 insertions(+), 7 deletions(-)
create mode 100644 meta-oe/recipes-connectivity/libtorrent/libtorrent/0001-scripts-common.m4-Insert-spaces-in-shell-lists.patch
rename meta-oe/recipes-connectivity/libtorrent/{libtorrent_0.14.0.bb => libtorrent_0.16.1.bb} (76%)meta-oe/recipes-connectivity/libtorrent/libtorrent/0001-scripts-common.m4-Insert-spaces-in-shell-lists.patch new file +45 -0
@@ -0,0 +1,45 @@ +From 9df2559d55c454c7128b65103456c2f88b3bf2f5 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 24 Oct 2025 08:45:02 -0700 +Subject: [PATCH] scripts/common.m4: Insert spaces in shell lists +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +$1=$(echo "$result" | tr -d '\n') + +removes all newlines without inserting spaces +That usually isn’t what we want for shell lists. +It should typically be space-separated output. + +Fixes a bug seen with yocto where compiler is not a single word +but a string e.g. + +ccache aarch64-yoe-linux-musl-clang++ -mcpu=cortex-a72+crc+nocrypto --dyld-prefix=/usr -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux-musl/libtorrent/0.16.1/recipe-sysroot + +It changes it to + +ccacheaarch64-yoe-linux-musl-clang++-mcpu=cortex-a72+crc+nocrypto--dyld-prefix=/usr-fstack-protector-strong-O2-D_FORTIFY_SOURCE=2-Wformat-Wformat-security-Werror=format-security--sysroot=/mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux-musl/libtorrent/0.16.1/recipe-sysroot + +When doing c++17 checks on compiler, resulting in failure + +Upstream-Status: Submitted [https://github.com/rakshasa/libtorrent/pull/583] +Signed-off-by: Khem Raj <[email protected]> +--- + scripts/common.m4 | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/scripts/common.m4 b/scripts/common.m4 +index 74b99e6a..44a5fe65 100644 +--- a/scripts/common.m4 ++++ b/scripts/common.m4 +@@ -30,7 +30,8 @@ AC_DEFUN([TORRENT_REMOVE_UNWANTED], + $1="$2" + else + result=`echo "${values_to_check}" | $GREP -Fvx -- "${unwanted_values}" | $GREP -v '^$'` +- $1=$(echo "$result" | tr -d '\n') ++ # join with spaces, squeeze repeats, and trim trailing space ++ $1=$(printf '%s\n' "$result" | tr '\n' ' ' | sed 's/ */ /g; s/ *$//') + fi + ]) +
meta-oe/recipes-connectivity/libtorrent/libtorrent_0.16.1.bb renamed from meta-oe/recipes-connectivity/libtorrent/libtorrent_0.14.0.bb +5 -7
@@ -4,16 +4,14 @@ HOMEPAGE = "http://libtorrent.rakshasa.no/" LICENSE = "GPL-2.0-or-later" LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" -DEPENDS = "zlib libsigc++-2.0 openssl cppunit" +DEPENDS = "zlib curl libsigc++-2.0 openssl cppunit" -SRC_URI = "git://github.com/rakshasa/libtorrent;branch=master;protocol=https" -SRCREV = "08fb6635ba249665cb08a4de1b955288d25c21e1" +SRC_URI = "git://github.com/rakshasa/libtorrent;branch=master;protocol=https;tag=v${PV} \ + file://0001-scripts-common.m4-Insert-spaces-in-shell-lists.patch" +SRCREV = "919d23923ad0a483fa24441093eda1c12cea4c0b" UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)" -CVE_STATUS[CVE-2009-1760] = "backported-patch: patched in our product" - - CVE_PRODUCT = "" PACKAGECONFIG ??= "instrumentation aligned"
@@ -27,4 +25,4 @@ PACKAGECONFIG[aligned] = "--enable-aligned,--disable-aligned," inherit autotools pkgconfig -EXTRA_OECONF = "--with-zlib=${STAGING_EXECPREFIXDIR}" +EXTRA_OECONF = "--with-posix-fallocate"
PATCH 6/11 python3-ukkonen: Update to latest from git repo
In reply to Khem RajIt has no releases in past 4 years but git repo is getting updates there are fixes needed to build with newer python and gcc-15 accumulated over time.
Switch URI to use git fetcher until next release comes out
---
.../{python3-ukkonen_1.0.1.bb => python3-ukkonen_git.bb} | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
rename meta-python/recipes-devtools/python/{python3-ukkonen_1.0.1.bb => python3-ukkonen_git.bb} (63%)meta-python/recipes-devtools/python/python3-ukkonen_git.bb renamed from meta-python/recipes-devtools/python/python3-ukkonen_1.0.1.bb +4 -2
@@ -4,9 +4,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=7e49a187324d5a1a6c4ba2b9c3fd4033" PYPI_PACKAGE = "ukkonen" -inherit pypi setuptools3 -SRC_URI[sha256sum] = "976ad9a991c9cb99a7c318695a5f6b46236bbd4c33c5b55273fa241dfca8e0fa" +inherit setuptools3 +PV = "1.0.1+git" +SRC_URI += "git://github.com/asottile/ukkonen;protocol=https;branch=main" +SRCREV = "ad108a16e8203867f4860287b61149e0bdd838ca" DEPENDS += " \ python3-pip-native \ python3-cffi-native \
PATCH 7/11 avro-c,avro-c++: Upgrade to 1.12.1 release
In reply to Khem RajThe patches are no longer needed
---
...0001-Remove-cpp-unittest-compilation.patch | 99 -------------------
...1-cmake-Port-to-work-with-boost-1.89.patch | 49 ---------
...0002-Add-package-configuration-files.patch | 90 -----------------
.../{avro-c++_1.12.bb => avro-c++_1.12.1.bb} | 16 ++-
.../{avro-c_1.12.0.bb => avro-c_1.12.1.bb} | 2 +-
5 files changed, 8 insertions(+), 248 deletions(-)
delete mode 100644 meta-oe/recipes-support/avro/avro-c++/0001-Remove-cpp-unittest-compilation.patch
delete mode 100644 meta-oe/recipes-support/avro/avro-c++/0001-cmake-Port-to-work-with-boost-1.89.patch
delete mode 100644 meta-oe/recipes-support/avro/avro-c++/0002-Add-package-configuration-files.patch
rename meta-oe/recipes-support/avro/{avro-c++_1.12.bb => avro-c++_1.12.1.bb} (75%)
rename meta-oe/recipes-support/avro/{avro-c_1.12.0.bb => avro-c_1.12.1.bb} (88%)meta-oe/recipes-support/avro/avro-c++/0001-Remove-cpp-unittest-compilation.patch deleted +0 -99
@@ -1,99 +0,0 @@ -From d75f0c5e7a51c9874edad0ea60957e006fb6def5 Mon Sep 17 00:00:00 2001 -From: Rui Costa <[email protected]> -Date: Mon, 7 Jul 2025 16:58:30 +0300 -Subject: [PATCH] Remove cpp unittest compilation - -Upstream-Status: Inappropriate [oe-specific] - -Signed-off-by: Rui Costa <[email protected]> -Signed-off-by: Alper Ak <[email protected]> ---- - lang/c++/CMakeLists.txt | 65 ----------------------------------------- - 1 file changed, 65 deletions(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 19059a41b..1f5f98c83 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -149,39 +149,6 @@ set_target_properties (avrocpp_s PROPERTIES - target_link_libraries (avrocpp ${Boost_LIBRARIES} ${SNAPPY_LIBRARIES} fmt::fmt-header-only) - target_include_directories(avrocpp PRIVATE ${SNAPPY_INCLUDE_DIR}) - --add_executable (precompile test/precompile.cc) -- --target_link_libraries (precompile avrocpp_s) -- --macro (gen file ns) -- add_custom_command (OUTPUT ${file}.hh -- COMMAND avrogencpp -- -p - -- -i ${CMAKE_CURRENT_SOURCE_DIR}/jsonschemas/${file} -- -o ${file}.hh -n ${ns} -- DEPENDS avrogencpp ${CMAKE_CURRENT_SOURCE_DIR}/jsonschemas/${file}) -- add_custom_target (${file}_hh DEPENDS ${file}.hh) --endmacro (gen) -- --gen (empty_record empty) --gen (bigrecord testgen) --gen (bigrecord_r testgen_r) --gen (bigrecord2 testgen2) --gen (tweet testgen3) --gen (union_array_union uau) --gen (union_map_union umu) --gen (union_conflict uc) --gen (union_empty_record uer) --gen (recursive rec) --gen (reuse ru) --gen (circulardep cd) --gen (tree1 tr1) --gen (tree2 tr2) --gen (crossref cr) --gen (primitivetypes pt) --gen (cpp_reserved_words cppres) --gen (cpp_reserved_words_union_typedef cppres_union) -- - add_executable (avrogencpp impl/avrogencpp.cc) - target_link_libraries (avrogencpp avrocpp_s) - -@@ -194,38 +161,6 @@ target_include_directories(avrocpp PUBLIC - $<INSTALL_INTERFACE:include> - ) - --enable_testing() -- --macro (unittest name) -- add_executable (${name} test/${name}.cc) -- target_link_libraries (${name} avrocpp ${Boost_LIBRARIES} ${SNAPPY_LIBRARIES}) -- add_test (NAME ${name} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} -- COMMAND ${CMAKE_CURRENT_BINARY_DIR}/${name}) --endmacro (unittest) -- --unittest (buffertest) --unittest (unittest) --unittest (SchemaTests) --unittest (LargeSchemaTests) --unittest (CodecTests) --unittest (StreamTests) --unittest (SpecificTests) --unittest (DataFileTests) --unittest (JsonTests) --unittest (AvrogencppTests) --unittest (CompilerTests) --unittest (AvrogencppTestReservedWords) --unittest (CommonsSchemasTests) -- --add_dependencies (AvrogencppTestReservedWords cpp_reserved_words_hh) -- --add_dependencies (AvrogencppTests bigrecord_hh bigrecord_r_hh bigrecord2_hh -- tweet_hh -- union_array_union_hh union_map_union_hh union_conflict_hh -- recursive_hh reuse_hh circulardep_hh tree1_hh tree2_hh crossref_hh -- primitivetypes_hh empty_record_hh cpp_reserved_words_union_typedef_hh -- union_empty_record_hh) -- - include (InstallRequiredSystemLibraries) - - set (CPACK_PACKAGE_FILE_NAME "avrocpp-${AVRO_VERSION_MAJOR}") --- -2.43.0 -
meta-oe/recipes-support/avro/avro-c++/0001-cmake-Port-to-work-with-boost-1.89.patch deleted +0 -49
49 lines not on this page · raw message
meta-oe/recipes-support/avro/avro-c++/0002-Add-package-configuration-files.patch deleted +0 -90
90 lines not on this page · raw message
meta-oe/recipes-support/avro/avro-c++_1.12.1.bb renamed from meta-oe/recipes-support/avro/avro-c++_1.12.bb +7 -9
@@ -7,15 +7,12 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=34cb96edab958a981837bf6f44bf654d" DEPENDS = "boost" -SRC_URI = "git://github.com/apache/avro.git;branch=branch-1.12;protocol=https;name=avro-c++ \ - git://github.com/fmtlib/fmt.git;branch=10.x;protocol=https;name=fmt;destsuffix=_deps/fmt-src \ - file://0001-Remove-cpp-unittest-compilation.patch \ - file://0002-Add-package-configuration-files.patch \ - file://0001-cmake-Port-to-work-with-boost-1.89.patch \ - " - -SRCREV_FORMAT = "avro-c++ fmt" -SRCREV_avro-c++ = "8c27801dc8d42ccc00997f25c0b8f45f8d4a233e" +SRC_URI = "git://github.com/apache/avro.git;branch=branch-1.12;protocol=https;name=avro-c++;tag=release-${PV} \ + git://github.com/fmtlib/fmt.git;branch=10.x;protocol=https;name=fmt;destsuffix=_deps/fmt-src \ + " + +SRCREV_FORMAT = "avro-c++_fmt" +SRCREV_avro-c++ = "9110c693767c1dde2665b2b57939333478b12036" # Tag 10.2.1 SRCREV_fmt = "e69e5f977d458f2650bb346dadf2ad30c5320281"
@@ -23,6 +20,7 @@ S = "${UNPACKDIR}/${BP}/lang/c++" inherit cmake pkgconfig +EXTRA_OECMAKE += "-DAVRO_BUILD_TESTS=OFF" do_configure:prepend() { install -d ${B}/_deps cp -r ${UNPACKDIR}/_deps/fmt-src ${B}/_deps/
meta-oe/recipes-support/avro/avro-c_1.12.1.bb renamed from meta-oe/recipes-support/avro/avro-c_1.12.0.bb +1 -1
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=6d502b41f76179fc84e536236f359cae" DEPENDS = "jansson zlib xz" BRANCH = "branch-1.12" -SRCREV = "8c27801dc8d42ccc00997f25c0b8f45f8d4a233e" +SRCREV = "9110c693767c1dde2665b2b57939333478b12036" SRC_URI = " \ git://github.com/apache/avro;branch=${BRANCH};protocol=https;tag=release-${PV} \ "
PATCH 8/11 mariadb: Fix build with musl/gcc-15
In reply to Khem RajAdd cstdint for uint_64_t for more files
--- ...-missing-includes-cstdint-and-cstdio.patch | 40 ++++++++++++++----- 1 file changed, 30 insertions(+), 10 deletions(-)
meta-oe/recipes-dbs/mysql/mariadb/0001-Add-missing-includes-cstdint-and-cstdio.patch +30 -10
@@ -17,8 +17,6 @@ Signed-off-by: Mingli Yu <[email protected]> storage/rocksdb/rocksdb/util/string_util.h | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) -diff --git a/storage/rocksdb/rocksdb/include/rocksdb/utilities/checkpoint.h b/storage/rocksdb/rocksdb/include/rocksdb/utilities/checkpoint.h -index 7fb9d489..f7b4e6f0 100644 --- a/storage/rocksdb/rocksdb/include/rocksdb/utilities/checkpoint.h +++ b/storage/rocksdb/rocksdb/include/rocksdb/utilities/checkpoint.h @@ -8,6 +8,7 @@
@@ -29,8 +27,6 @@ index 7fb9d489..f7b4e6f0 100644 #include <string> #include <vector> #include "rocksdb/status.h" -diff --git a/storage/rocksdb/rocksdb/table/block_based/data_block_hash_index.h b/storage/rocksdb/rocksdb/table/block_based/data_block_hash_index.h -index f356395f..32152217 100644 --- a/storage/rocksdb/rocksdb/table/block_based/data_block_hash_index.h +++ b/storage/rocksdb/rocksdb/table/block_based/data_block_hash_index.h @@ -5,6 +5,7 @@
@@ -41,8 +37,6 @@ index f356395f..32152217 100644 #include <string> #include <vector> -diff --git a/storage/rocksdb/rocksdb/util/slice.cc b/storage/rocksdb/rocksdb/util/slice.cc -index 3c3656de..b18d7f5d 100644 --- a/storage/rocksdb/rocksdb/util/slice.cc +++ b/storage/rocksdb/rocksdb/util/slice.cc @@ -12,7 +12,7 @@
@@ -54,8 +48,6 @@ index 3c3656de..b18d7f5d 100644 #include "rocksdb/convenience.h" #include "rocksdb/slice_transform.h" #include "rocksdb/utilities/object_registry.h" -diff --git a/storage/rocksdb/rocksdb/util/string_util.h b/storage/rocksdb/rocksdb/util/string_util.h -index 7794dbb0..b480177e 100644 --- a/storage/rocksdb/rocksdb/util/string_util.h +++ b/storage/rocksdb/rocksdb/util/string_util.h @@ -6,6 +6,7 @@
@@ -66,5 +58,33 @@ index 7794dbb0..b480177e 100644 #include <sstream> #include <string> #include <unordered_map> --- -2.40.0 +--- a/storage/rocksdb/rocksdb/include/rocksdb/trace_record.h ++++ b/storage/rocksdb/rocksdb/include/rocksdb/trace_record.h +@@ -5,6 +5,7 @@ + + #pragma once + ++#include <cstdint> + #include <memory> + #include <string> + #include <vector> +--- a/storage/rocksdb/rocksdb/db/blob/blob_file_meta.h ++++ b/storage/rocksdb/rocksdb/db/blob/blob_file_meta.h +@@ -6,6 +6,7 @@ + #pragma once + + #include <cassert> ++#include <cstdint> + #include <iosfwd> + #include <memory> + #include <string> +--- a/storage/rocksdb/rocksdb/include/rocksdb/utilities/transaction_db_mutex.h ++++ b/storage/rocksdb/rocksdb/include/rocksdb/utilities/transaction_db_mutex.h +@@ -6,6 +6,7 @@ + #pragma once + #ifndef ROCKSDB_LITE + ++#include <cstdint> + #include <memory> + + #include "rocksdb/status.h"
PATCH 9/11 python3-pybase64: Switch to PEP-517 build backend
In reply to Khem RajThe project has a proper pyproject.toml which declares the setuptools.build.meta PEP-517 backend.
Fixes
WARNING: python3-pybase64-1.4.2-r0 do_check_backend: QA Issue: inherits setuptools3 but has pyproject.toml with setuptools.build_meta, use the correct class [pep517-backend]
--- meta-python/recipes-devtools/python/python3-pybase64_1.4.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-pybase64_1.4.2.bb +1 -1
@@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/mayeut/pybase64" LICENSE = "BSD-2-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=84b11fa55a5d83cf6fa202fd3b49c7e8" -inherit pypi setuptools3 +inherit pypi python_setuptools_build_meta SRC_URI[sha256sum] = "46cdefd283ed9643315d952fe44de80dc9b9a811ce6e3ec97fd1827af97692d0"
PATCH 10/11 poco: Link with libatomic on x86
In reply to Khem RajIt does not have compiler intrinsics for 64bit atomics
Fixes
i686-yoe-linux-ld.lld: error: undefined symbol: __atomic_compare_exchange
--- meta-oe/recipes-support/poco/poco_1.14.2.bb | 1 + 1 file changed, 1 insertion(+)
meta-oe/recipes-support/poco/poco_1.14.2.bb +1 -0
@@ -77,6 +77,7 @@ EXTRA_OECMAKE:append = " -DCMAKE_SKIP_RPATH=ON" LDFLAGS:append:riscv32 = "${@bb.utils.contains('PACKAGECONFIG', 'Prometheus', ' -Wl,--no-as-needed -latomic -Wl,--as-needed', '', d)}" LDFLAGS:append:mips = "${@bb.utils.contains('PACKAGECONFIG', 'Prometheus', ' -Wl,--no-as-needed -latomic -Wl,--as-needed', '', d)}" LDFLAGS:append:powerpc = "${@bb.utils.contains('PACKAGECONFIG', 'Prometheus', ' -Wl,--no-as-needed -latomic -Wl,--as-needed', '', d)}" +LDFLAGS:append:x86 = "${@bb.utils.contains('PACKAGECONFIG', 'Prometheus', ' -Wl,--no-as-needed -latomic -Wl,--as-needed', '', d)}" python populate_packages:prepend () { poco_libdir = d.expand('${libdir}')
PATCH 11/11 rtorrent: Upgrade to 0.16.1
In reply to Khem RajAdd a patch for m4 macros
Disable execinfo on musl as it does not support it
---
...mmon.m4-Insert-spaces-in-shell-lists.patch | 45 +++++++++++++++++++
...{rtorrent_0.10.0.bb => rtorrent_0.16.1.bb} | 15 +++----
2 files changed, 50 insertions(+), 10 deletions(-)
create mode 100644 meta-oe/recipes-connectivity/rtorrent/rtorrent/0001-scripts-common.m4-Insert-spaces-in-shell-lists.patch
rename meta-oe/recipes-connectivity/rtorrent/{rtorrent_0.10.0.bb => rtorrent_0.16.1.bb} (57%)meta-oe/recipes-connectivity/rtorrent/rtorrent/0001-scripts-common.m4-Insert-spaces-in-shell-lists.patch new file +45 -0
@@ -0,0 +1,45 @@ +From da3687c276078e8ad1df3c972bd1d5deaffb3dc5 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 24 Oct 2025 08:45:02 -0700 +Subject: [PATCH] scripts/common.m4: Insert spaces in shell lists +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +$1=$(echo "$result" | tr -d '\n') + +removes all newlines without inserting spaces +That usually isn’t what we want for shell lists. +It should typically be space-separated output. + +Fixes a bug seen with yocto where compiler is not a single word +but a string e.g. + +ccache aarch64-yoe-linux-musl-clang++ -mcpu=cortex-a72+crc+nocrypto --dyld-prefix=/usr -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux-musl/libtorrent/0.16.1/recipe-sysroot + +It changes it to + +ccacheaarch64-yoe-linux-musl-clang++-mcpu=cortex-a72+crc+nocrypto--dyld-prefix=/usr-fstack-protector-strong-O2-D_FORTIFY_SOURCE=2-Wformat-Wformat-security-Werror=format-security--sysroot=/mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux-musl/libtorrent/0.16.1/recipe-sysroot + +When doing c++17 checks on compiler, resulting in failure + +Upstream-Status: Submitted [https://github.com/rakshasa/rtorrent/pull/1620] +Signed-off-by: Khem Raj <[email protected]> +--- + scripts/common.m4 | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/scripts/common.m4 b/scripts/common.m4 +index 7129204..d8ee019 100644 +--- a/scripts/common.m4 ++++ b/scripts/common.m4 +@@ -30,7 +30,8 @@ AC_DEFUN([TORRENT_REMOVE_UNWANTED], + $1="$2" + else + result=`echo "${values_to_check}" | $GREP -Fvx -- "${unwanted_values}" | $GREP -v '^$'` +- $1=$(echo "$result" | tr -d '\n') ++ # join with spaces, squeeze repeats, and trim trailing space ++ $1=$(printf '%s\n' "$result" | tr '\n' ' ' | sed 's/ */ /g; s/ *$//') + fi + ]) +
meta-oe/recipes-connectivity/rtorrent/rtorrent_0.16.1.bb renamed from meta-oe/recipes-connectivity/rtorrent/rtorrent_0.10.0.bb +5 -10
@@ -5,16 +5,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" DEPENDS = "autoconf-archive libsigc++-2.0 curl cppunit libtool libtorrent ncurses" -SRC_URI = "git://github.com/rakshasa/rtorrent;branch=master;protocol=https" -SRCREV = "a88cab6d2e764e22cac232ef8d5af039d41b8280" - - -PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" - -PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," +SRC_URI = "git://github.com/rakshasa/rtorrent;branch=master;protocol=https;tag=v${PV} \ + file://0001-scripts-common.m4-Insert-spaces-in-shell-lists.patch \ + " +SRCREV = "b38f80e59795dc6728b2c31ac3eab564651ce46d" inherit autotools pkgconfig -EXTRA_AUTORECONF += "--exclude=aclocal" - -CXXFLAGS += "-std=gnu++14" +EXTRA_OECONF:append:libc-musl = " --disable-execinfo"