sysutils/cmocka: Update to 1.1.7

Backport upstream commit 0e70150002ab7bcb626109b287f23c62ecf97565

Changelog:
https://gitlab.com/cmocka/cmocka/-/compare/cmocka-1.1.5...cmocka-1.1.7?from_project_id=6918754&straight=false

Sources:
https://git.cryptomilk.org/projects/cmocka.git/commit/?id=0e70150002ab7bcb626109b287f23c62ecf97565
https://git.alpinelinux.org/aports/tree/main/cmocka/wordsize.patch

PR:		274477
Approved by:	maintainer timeout, 1+ year
This commit is contained in:
Daniel Engberg
2025-05-17 03:04:12 +02:00
parent f92e787c81
commit aab2944868
5 changed files with 1299 additions and 42 deletions
+5 -20
View File
@@ -1,33 +1,18 @@
PORTNAME= cmocka
PORTVERSION= 1.1.5
DISTVERSION= 1.1.7
CATEGORIES= sysutils
MASTER_SITES= https://cmocka.org/files/1.1/ \
LOCAL/dteske
MASTER_SITES= https://cmocka.org/files/1.1/
MAINTAINER= dteske@FreeBSD.org
COMMENT= Unit testing framework for C with support for mock objects
WWW= https://cmocka.org/
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/COPYING
USES= cmake tar:xz
USES= cmake:testing pathfix tar:xz
USE_LDCONFIG= yes
PLIST_FILES= include/cmocka.h \
include/cmocka_pbc.h \
lib/cmake/cmocka/cmocka-config-version.cmake \
lib/cmake/cmocka/cmocka-config.cmake \
lib/libcmocka.so \
lib/libcmocka.so.0 \
lib/libcmocka.so.0.7.0 \
libdata/pkgconfig/cmocka.pc
OPTIONS_DEFINE= STATIC
STATIC_CMAKE_BOOL= WITH_STATIC_LIB
STATIC_PLIST_FILES= lib/libcmocka.a
post-install-STATIC-on:
@${MV} "${STAGEDIR}${PREFIX}/lib/libcmocka-static.a" "${STAGEDIR}${PREFIX}/lib/libcmocka.a"
CMAKE_TESTING_ON= UNIT_TESTING
.include <bsd.port.mk>
+3 -3
View File
@@ -1,3 +1,3 @@
TIMESTAMP = 1572277190
SHA256 (cmocka-1.1.5.tar.xz) = f0ccd8242d55e2fd74b16ba518359151f6f8383ff8aef4976e48393f77bba8b6
SIZE (cmocka-1.1.5.tar.xz) = 81004
TIMESTAMP = 1683241770
SHA256 (cmocka-1.1.7.tar.xz) = 810570eb0b8d64804331f82b29ff47c790ce9cd6b163e98d47a4807047ecad82
SIZE (cmocka-1.1.7.tar.xz) = 84064
File diff suppressed because it is too large Load Diff
@@ -1,19 +0,0 @@
--- include/cmocka.h.orig 2018-09-06 06:15:11 UTC
+++ include/cmocka.h
@@ -111,7 +111,7 @@ typedef uintmax_t LargestIntegralType;
((LargestIntegralType)(value))
/* Smallest integral type capable of holding a pointer. */
-#if !defined(_UINTPTR_T) && !defined(_UINTPTR_T_DEFINED)
+#if !defined(_UINTPTR_T) && !defined(_UINTPTR_T_DEFINED) && !defined(_UINTPTR_T_DECLARED)
# if defined(_WIN32)
/* WIN32 is an ILP32 platform */
typedef unsigned int uintptr_t;
@@ -137,6 +137,7 @@ typedef uintmax_t LargestIntegralType;
# define _UINTPTR_T
# define _UINTPTR_T_DEFINED
+# define _UINTPTR_T_DECLARED
#endif /* !defined(_UINTPTR_T) || !defined(_UINTPTR_T_DEFINED) */
/* Perform an unsigned cast to uintptr_t. */
+9
View File
@@ -0,0 +1,9 @@
include/cmocka.h
include/cmocka_pbc.h
lib/cmake/cmocka/cmocka-config-%%CMAKE_BUILD_TYPE%%.cmake
lib/cmake/cmocka/cmocka-config-version.cmake
lib/cmake/cmocka/cmocka-config.cmake
lib/libcmocka.so
lib/libcmocka.so.0
lib/libcmocka.so.0.8.0
libdata/pkgconfig/cmocka.pc