glog: Upgrade to 0.4.0
PATCH 1/3 glog: Upgrade to 0.4.0
Drop upstreamed patch
Signed-off-by Khem Raj <[email protected]>
Cc Vyacheslav Yurkov <[email protected]>
---
...001-Find-Libunwind-during-configure.patch} | 40 +++++------
...Rework-CMake-glog-VERSION-management.patch | 71 -------------------
.../glog/0003-installation-path-fix.patch | 65 -----------------
.../glog/{glog_0.3.5.bb => glog_0.4.0.bb} | 6 +-
4 files changed, 21 insertions(+), 161 deletions(-)
rename meta-oe/recipes-support/glog/glog/{0002-Find-Libunwind-during-configure.patch => 0001-Find-Libunwind-during-configure.patch} (79%)
delete mode 100644 meta-oe/recipes-support/glog/glog/0001-Rework-CMake-glog-VERSION-management.patch
delete mode 100644 meta-oe/recipes-support/glog/glog/0003-installation-path-fix.patch
rename meta-oe/recipes-support/glog/{glog_0.3.5.bb => glog_0.4.0.bb} (80%)meta-oe/recipes-support/glog/glog/0001-Find-Libunwind-during-configure.patch renamed from meta-oe/recipes-support/glog/glog/0002-Find-Libunwind-during-configure.patch +19 -21
@@ -1,6 +1,5 @@ -diff -uNr a/cmake/FindLibunwind.cmake b/cmake/FindLibunwind.cmake ---- a/cmake/FindLibunwind.cmake 1970-01-01 01:00:00.000000000 +0100 -+++ b/cmake/FindLibunwind.cmake 2018-11-20 15:53:48.799078114 +0100 +--- /dev/null ++++ b/cmake/FindLibunwind.cmake @@ -0,0 +1,54 @@ +# - Try to find libunwind +# Once done this will define
@@ -56,10 +55,9 @@ diff -uNr a/cmake/FindLibunwind.cmake b/cmake/FindLibunwind.cmake +else() + message("Can't find libunwind library") +endif() -diff -uNr a/CMakeLists.txt b/CMakeLists.txt ---- a/CMakeLists.txt 2018-11-20 15:49:07.576278417 +0100 -+++ b/CMakeLists.txt 2018-11-20 15:49:32.106819928 +0100 -@@ -58,7 +58,6 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -64,7 +64,6 @@ check_include_file (dlfcn.h HAVE_DLFCN_H check_include_file (execinfo.h HAVE_EXECINFO_H) check_include_file (glob.h HAVE_GLOB_H) check_include_file (inttypes.h HAVE_INTTYPES_H)
@@ -67,27 +65,28 @@ diff -uNr a/CMakeLists.txt b/CMakeLists.txt check_include_file (memory.h HAVE_MEMORY_H) check_include_file (pwd.h HAVE_PWD_H) check_include_file (stdint.h HAVE_STDINT_H) -@@ -74,7 +73,6 @@ +@@ -80,7 +79,6 @@ check_include_file (syscall.h HAVE_SYSCA check_include_file (syslog.h HAVE_SYSLOG_H) check_include_file (ucontext.h HAVE_UCONTEXT_H) check_include_file (unistd.h HAVE_UNISTD_H) -check_include_file (unwind.h HAVE_UNWIND_H) + check_include_file (pwd.h HAVE_PWD_H) check_include_file_cxx ("ext/hash_map" HAVE_EXT_HASH_MAP) - check_include_file_cxx ("ext/hash_set" HAVE_EXT_HASH_SET) -@@ -109,10 +107,7 @@ +@@ -116,11 +114,9 @@ check_cxx_compiler_flag (-Wunnamed-type- # snprintf as an inline function check_symbol_exists (snprintf stdio.h HAVE_SNPRINTF) -check_library_exists (unwind get_static_proc_name "" HAVE_LIB_UNWIND) -- + check_library_exists (dbghelp UnDecorateSymbolName "" HAVE_DBGHELP) + -find_library (UNWIND_LIBRARY NAMES unwind DOC "unwind library") -mark_as_advanced (UNWIND_LIBRARY) +find_package(Libunwind) check_c_source_compiles (" #include <stdlib.h> -@@ -376,9 +371,9 @@ +@@ -471,9 +467,9 @@ add_library(glog::glog ALIAS glog) set_target_properties (glog PROPERTIES POSITION_INDEPENDENT_CODE ON)
@@ -98,20 +97,19 @@ diff -uNr a/CMakeLists.txt b/CMakeLists.txt + target_link_libraries (glog PUBLIC unwind) +endif (Libunwind_FOUND) - if (HAVE_PTHREAD) - target_link_libraries (glog PUBLIC ${CMAKE_THREAD_LIBS_INIT}) -@@ -571,6 +566,7 @@ + if (HAVE_DBGHELP) + target_link_libraries (glog PUBLIC dbghelp) +@@ -678,6 +674,7 @@ export (PACKAGE glog) install (FILES ${CMAKE_CURRENT_BINARY_DIR}/glog-config.cmake ${CMAKE_CURRENT_BINARY_DIR}/glog-config-version.cmake + ${CMAKE_CURRENT_SOURCE_DIR}/cmake/FindLibunwind.cmake - DESTINATION lib/cmake/glog) + DESTINATION ${_glog_CMake_INSTALLDIR}) - install (EXPORT glog-targets NAMESPACE glog:: DESTINATION lib/cmake/glog) -diff -uNr a/glog-config.cmake.in b/glog-config.cmake.in ---- a/glog-config.cmake.in 2018-11-20 15:49:07.576278417 +0100 -+++ b/glog-config.cmake.in 2018-11-20 15:52:32.330418489 +0100 -@@ -4,4 +4,6 @@ + install (EXPORT glog-targets NAMESPACE glog:: DESTINATION +--- a/glog-config.cmake.in ++++ b/glog-config.cmake.in +@@ -8,4 +8,6 @@ include (CMakeFindDependencyMacro) @gflags_DEPENDENCY@
meta-oe/recipes-support/glog/glog/0001-Rework-CMake-glog-VERSION-management.patch deleted +0 -71
71 lines not on this page · raw message
meta-oe/recipes-support/glog/glog/0003-installation-path-fix.patch deleted +0 -65
65 lines not on this page · raw message
meta-oe/recipes-support/glog/glog_0.4.0.bb renamed from meta-oe/recipes-support/glog/glog_0.3.5.bb +2 -4
@@ -8,12 +8,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=dc9db360e0bbd4e46672f3fd91dd6c4b" SRC_URI = " \ git://github.com/google/glog.git;nobranch=1 \ - file://0001-Rework-CMake-glog-VERSION-management.patch \ - file://0002-Find-Libunwind-during-configure.patch \ - file://0003-installation-path-fix.patch \ + file://0001-Find-Libunwind-during-configure.patch \ " -SRCREV = "a6a166db069520dbbd653c97c2e5b12e08a8bb26" +SRCREV = "96a2f23dca4cc7180821ca5f32e526314395d26a" S = "${WORKDIR}/git"
Signature · 1 line
2.30.1
PATCH 2/3 mpd: Upgrade to 0.22 series
Drop the gcc10 patches the problem is fixed in newer versions Migrate to use meson build system
Drop libwrap packageconfig, its dropped upstream too
Signed-off-by Khem Raj <[email protected]>
Cc Max Kellermann <[email protected]>
Cc Andreas Müller <[email protected]>
--- ...ingBuffer-Include-cstddef-for-size_t.patch | 27 ----- ...-Include-stdexcept-for-runtime_error.patch | 38 ------- .../recipes-multimedia/musicpd/mpd_0.20.22.bb | 103 ------------------ .../recipes-multimedia/musicpd/mpd_0.22.6.bb | 96 ++++++++++++++++ 4 files changed, 96 insertions(+), 168 deletions(-) delete mode 100644 meta-multimedia/recipes-multimedia/musicpd/mpd/0001-StringBuffer-Include-cstddef-for-size_t.patch delete mode 100644 meta-multimedia/recipes-multimedia/musicpd/mpd/0002-Include-stdexcept-for-runtime_error.patch delete mode 100644 meta-multimedia/recipes-multimedia/musicpd/mpd_0.20.22.bb create mode 100644 meta-multimedia/recipes-multimedia/musicpd/mpd_0.22.6.bb
meta-multimedia/recipes-multimedia/musicpd/mpd/0001-StringBuffer-Include-cstddef-for-size_t.patch deleted +0 -27
@@ -1,27 +0,0 @@ -From c14877071f14b218835f7fb034dea11bd1ba56f5 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Wed, 25 Dec 2019 09:40:16 -0800 -Subject: [PATCH] StringBuffer: Include cstddef for size_t - -Fixes -a.cpp:3:1: error: 'size_t' does not name a type - 3 | size_t s; - | ^~~~~~ -a.cpp:2:1: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'? - -Upstream-Status: Submitted [https://github.com/MusicPlayerDaemon/MPD/pull/697] -Signed-off-by: Khem Raj <[email protected]> ---- - src/util/StringBuffer.hxx | 1 + - 1 file changed, 1 insertion(+) - ---- a/src/util/StringBuffer.hxx -+++ b/src/util/StringBuffer.hxx -@@ -31,6 +31,7 @@ - #define STRING_BUFFER_HPP - - #include <array> -+#include <cstddef> - - /** - * A statically allocated string buffer.
meta-multimedia/recipes-multimedia/musicpd/mpd/0002-Include-stdexcept-for-runtime_error.patch deleted +0 -38
@@ -1,38 +0,0 @@ -From 06f78ced45f6622a2e02cd09e6a2c0c22a98b89e Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Wed, 25 Dec 2019 09:41:55 -0800 -Subject: [PATCH 2/2] Include <stdexcept> for runtime_error - -Fixes - -../git/src/LocateUri.cxx:65:14: error: 'runtime_error' is not a member of 'std' - 65 | throw std::runtime_error("Unsupported URI scheme"); - | ^~~~~~~~~~~~~ - -Upstream-Status: Inappropriate [ Fixed differently upstream ] -Signed-off-by: Khem Raj <[email protected]> ---- - src/LocateUri.cxx | 1 + - src/pcm/PcmConvert.cxx | 1 + - 2 files changed, 2 insertions(+) - ---- a/src/LocateUri.cxx -+++ b/src/LocateUri.cxx -@@ -17,6 +17,7 @@ - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -+#include <stdexcept> - #include "config.h" - #include "LocateUri.hxx" - #include "client/Client.hxx" ---- a/src/pcm/PcmConvert.cxx -+++ b/src/pcm/PcmConvert.cxx -@@ -17,6 +17,7 @@ - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -+#include <stdexcept> - #include "config.h" - #include "PcmConvert.hxx" - #include "ConfiguredResampler.hxx"
meta-multimedia/recipes-multimedia/musicpd/mpd_0.20.22.bb deleted +0 -103
103 lines not on this page · raw message
meta-multimedia/recipes-multimedia/musicpd/mpd_0.22.6.bb new file +96 -0
96 lines not on this page · raw message
Signature · 1 line
2.30.1
PATCH 3/3 mbedtls: Fix gcc11 stringop-overflow warning
In reply to Khem RajSigned-off-by Khem Raj <[email protected]>
--- ...sl_tls-Increase-size-of-padbuf-to-64.patch | 34 +++++++++++++++++++ .../mbedtls/mbedtls_2.25.0.bb | 1 + 2 files changed, 35 insertions(+) create mode 100644 meta-networking/recipes-connectivity/mbedtls/mbedtls/0001-ssl_tls-Increase-size-of-padbuf-to-64.patch
meta-networking/recipes-connectivity/mbedtls/mbedtls/0001-ssl_tls-Increase-size-of-padbuf-to-64.patch new file +34 -0
@@ -0,0 +1,34 @@ +From c3d7321d59e959b357a7d3d69782d9105f3d04aa Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Mon, 1 Mar 2021 21:04:57 -0800 +Subject: [PATCH] ssl_tls: Increase size of padbuf to 64 + +This fixes warnings with gcc11 + +git/library/ssl_tls.c: In function 'ssl_calc_finished_tls_sha384': +git/library/ssl_tls.c:3267:5: error: 'mbedtls_sha512_finish_ret' accessing 64 bytes in a region of size 48 [-Werror=stringop-overflow=] + 3267 | finish( &sha512, padbuf ); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +git/library/ssl_tls.c:3267:5: note: referencing argument 2 of type 'unsigned char *' + +Signed-off-by: Khem Raj <[email protected]> +--- + library/ssl_tls.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/library/ssl_tls.c b/library/ssl_tls.c +index a1a5859f0..4c98a4104 100644 +--- a/library/ssl_tls.c ++++ b/library/ssl_tls.c +@@ -3205,7 +3205,7 @@ static void ssl_calc_finished_tls_sha384( + { + int len = 12; + const char *sender; +- unsigned char padbuf[48]; ++ unsigned char padbuf[64]; + #if defined(MBEDTLS_USE_PSA_CRYPTO) + size_t hash_size; + psa_hash_operation_t sha384_psa = PSA_HASH_OPERATION_INIT; +-- +2.30.1 +
meta-networking/recipes-connectivity/mbedtls/mbedtls_2.25.0.bb +1 -0
@@ -25,6 +25,7 @@ SECTION = "libs" S = "${WORKDIR}/git" SRCREV = "1c54b5410fd48d6bcada97e30cac417c5c7eea67" SRC_URI = "git://github.com/ARMmbed/mbedtls.git;protocol=https;branch=development" +SRC_URI += "file://0001-ssl_tls-Increase-size-of-padbuf-to-64.patch" inherit cmake
Signature · 1 line
2.30.1