bctoolbox: update to 5.2.6.

This commit is contained in:
John 2023-01-06 19:08:37 +01:00 committed by John Zimmermann
parent 14cef36534
commit b2d45eba83
2 changed files with 3 additions and 32 deletions

View File

@ -1,29 +0,0 @@
Index: bctoolbox-5.1.17/src/utils/port.c
===================================================================
--- bctoolbox-5.1.17.orig/src/utils/port.c
+++ bctoolbox-5.1.17/src/utils/port.c
@@ -398,6 +398,7 @@ char * WSAAPI gai_strerror(int errnum){
#include <netdb.h>
#include <sys/un.h>
#include <sys/stat.h>
+#include <stddef.h>
static char *make_pipe_name(const char *name){
return bctbx_strdup_printf("/tmp/%s",name);
@@ -1508,6 +1509,7 @@ char * bctbx_concat(const char *str, ...
/* Resize the allocated memory if necessary. */
if (wp + len + 1 > result + allocated)
{
+ ptrdiff_t offset = wp - result;
allocated = (allocated + len) * 2;
newp = (char *) realloc (result, allocated);
if (newp == NULL)
@@ -1515,7 +1517,7 @@ char * bctbx_concat(const char *str, ...
free (result);
return NULL;
}
- wp = newp + (wp - result);
+ wp = newp + offset;
result = newp;
}
memcpy (wp, s, len);

View File

@ -1,7 +1,7 @@
# Template file for 'bctoolbox'
pkgname=bctoolbox
version=5.1.17
revision=2
version=5.2.6
revision=1
build_style=cmake
configure_args="-DENABLE_TESTS=ON -DENABLE_TESTS_COMPONENT=FALSE
-DCMAKE_MODULE_PATH=/usr/lib/cmake"
@ -11,7 +11,7 @@ maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-only"
homepage="https://gitlab.linphone.org/BC/public/bctoolbox"
distfiles="https://gitlab.linphone.org/BC/public/bctoolbox/-/archive/${version}/bctoolbox-${version}.tar.gz"
checksum=cbfea331dde994122a8bf04f05c03da6592aa53612f1da93eca3932d5460f231
checksum=573dd538cfdb6b13007c843ded101601d441b5da717597171823e49a619083c4
bctoolbox-devel_package() {
depends="bctoolbox-${version}_${revision}"