12 Commits

Author SHA1 Message Date
9583424666 automatic version update by autodist [release 5.4.50-1mamba;Tue Oct 21 2025] 2025-10-22 09:49:02 +02:00
f892b3ae51 update to 5.4.49 [release 5.4.49-1mamba;Tue Oct 14 2025] 2025-10-18 13:09:06 +02:00
cbb573b2ee automatic version update by autodist [release 5.3.81-1mamba;Sun Sep 08 2024] 2024-09-08 15:49:23 +02:00
5bc7bd5ccf automatic version update by autodist [release 5.3.79-1mamba;Sun Sep 08 2024] 2024-09-08 11:10:41 +02:00
5c476fc1ab automatic version update by autodist [release 5.3.77-1mamba;Thu Aug 29 2024] 2024-08-29 11:30:55 +02:00
dd14ffc95b automatic version update by autodist [release 5.3.74-1mamba;Tue Aug 06 2024] 2024-08-07 09:25:14 +02:00
c768020303 automatic version update by autodist [release 5.3.72-1mamba;Tue Jul 23 2024] 2024-07-24 08:57:25 +02:00
cb12e444a6 automatic version update by autodist [release 5.3.56-1mamba;Tue Jun 04 2024] 2024-06-04 17:09:15 +02:00
c9a87fb12a automatic version update by autodist [release 5.3.41-1mamba;Sun Apr 14 2024] 2024-04-15 10:01:46 +02:00
a2771e5296 rebuilt by autoport with build requirements: libmbedtls-devel>=3.6.0-1mamba [release 5.3.38-2mamba;Thu Apr 11 2024] 2024-04-12 12:29:07 +02:00
c3133503e9 automatic version update by autodist [release 5.3.38-1mamba;Mon Apr 01 2024] 2024-04-02 02:13:49 +02:00
9ac5dee5a8 automatic version update by autodist [release 5.3.34-1mamba;Wed Mar 13 2024] 2024-03-13 09:37:37 +01:00
3 changed files with 56 additions and 31 deletions

View File

@@ -1,18 +0,0 @@
--- bctoolbox-0.6.0/src/utils/exception.cc.orig 2017-11-20 11:17:25.586640087 +0100
+++ bctoolbox-0.6.0/src/utils/exception.cc 2017-11-20 11:17:59.044499675 +0100
@@ -28,6 +28,7 @@
using namespace std;
static void uncaught_handler() {
+#if ATOMIC_INT_LOCK_FREE >= 2
std::exception_ptr p = current_exception();
try {
rethrow_exception(p);
@@ -36,6 +37,7 @@
} catch (std::exception &ee) {
BCTBX_SLOGE(NULL) << "Unexpected exception [" << ee.what() << " ] use BctbxException for better debug";
}
+#endif
abort();
}

View File

@@ -0,0 +1,13 @@
--- bctoolbox-5.4.49/src/crypto/mbedtls.cc.orig 2025-10-14 17:25:58.511868745 +0200
+++ bctoolbox-5.4.49/src/crypto/mbedtls.cc 2025-10-14 17:28:14.619303571 +0200
@@ -25,6 +25,10 @@
#include <mbedtls/entropy.h>
#include <mbedtls/hkdf.h>
#include <mbedtls/md.h>
+
+#define MBEDTLS_THREADING_ALT
+
+#include <mbedtls/threading.h>
#include <psa/crypto.h>
#include "bctoolbox/crypto.hh"

View File

@@ -1,14 +1,14 @@
Name: bctoolbox
Version: 5.3.24
Version: 5.4.50
Release: 1mamba
Summary: Utilities library used by Belledonne Communications softwares like belle-sip, mediastreamer2 and linphone
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://linphone.org
URL: https://www.linphone.org/home/
Source: https://github.com/BelledonneCommunications/bctoolbox.git/%{version}/bctoolbox-%{version}.tar.bz2
Patch0: bctoolbox-0.6.0-ftbfs-arm.patch
Patch0: bctoolbox-5.4.49-libmbedtls-3.6.4.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
@@ -16,6 +16,7 @@ BuildRequires: libgcc
BuildRequires: libmbedtls-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: libmbedtls-devel >= 3.6.0-1mamba
BuildRequires: cmake
BuildRequires: libmbedtls2-devel
BuildRequires: libbcunit-devel >= 3.0.2.20200229git-2mamba
@@ -40,16 +41,12 @@ Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
#%ifarch arm
#% patch0 -p1
#%endif
sed -i '89i include_directories(%{_includedir}/mbedtls2)' CMakeLists.txt
sed -i -e "s|PRIVATE \${MBEDTLS_TARGETS}|PRIVATE \${MBEDTLS_TARGETS} -L%{_libdir}/mbedtls2|" src/CMakeLists.txt
%patch 0 -p1
echo "typedef void* mbedtls_threading_mutex_t;" > include/threading_alt.h
%build
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
@@ -58,7 +55,6 @@ export CXX=/usr/bin/clang++
-DDISABLE_MBEDTLS_SEARCH=ON \
-DENABLE_STRICT=OFF \
-DENABLE_STATIC=OFF \
-DCMAKE_C_FLAGS="${CFLAGS} -Wno-error=unused-parameter" \
-DENABLE_TESTS_COMPONENT=OFF
%make
@@ -70,8 +66,6 @@ export CXX=/usr/bin/clang++
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files -n lib%{name}
%defattr(-,root,root)
@@ -89,6 +83,42 @@ export CXX=/usr/bin/clang++
%{_libdir}/pkgconfig/bctoolbox.pc
%changelog
* Tue Oct 21 2025 Automatic Build System <autodist@openmamba.org> 5.4.50-1mamba
- automatic version update by autodist
* Tue Oct 14 2025 Silvan Calarco <silvan.calarco@mambasoft.it> 5.4.49-1mamba
- update to 5.4.49
* Sun Sep 08 2024 Automatic Build System <autodist@openmamba.org> 5.3.81-1mamba
- automatic version update by autodist
* Sun Sep 08 2024 Automatic Build System <autodist@openmamba.org> 5.3.79-1mamba
- automatic version update by autodist
* Thu Aug 29 2024 Automatic Build System <autodist@openmamba.org> 5.3.77-1mamba
- automatic version update by autodist
* Tue Aug 06 2024 Automatic Build System <autodist@openmamba.org> 5.3.74-1mamba
- automatic version update by autodist
* Tue Jul 23 2024 Automatic Build System <autodist@openmamba.org> 5.3.72-1mamba
- automatic version update by autodist
* Tue Jun 04 2024 Automatic Build System <autodist@openmamba.org> 5.3.56-1mamba
- automatic version update by autodist
* Sun Apr 14 2024 Automatic Build System <autodist@openmamba.org> 5.3.41-1mamba
- automatic version update by autodist
* Thu Apr 11 2024 Automatic Build System <autodist@mambasoft.it> 5.3.38-2mamba
- rebuilt by autoport with build requirements: libmbedtls-devel>=3.6.0-1mamba
* Mon Apr 01 2024 Automatic Build System <autodist@openmamba.org> 5.3.38-1mamba
- automatic version update by autodist
* Wed Mar 13 2024 Automatic Build System <autodist@openmamba.org> 5.3.34-1mamba
- automatic version update by autodist
* Tue Feb 27 2024 Automatic Build System <autodist@openmamba.org> 5.3.24-1mamba
- automatic version update by autodist