pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
devel/cmocka: update to 1.1.7
Module Name: pkgsrc-wip
Committed By: pin <voidpin%protonmail.com@localhost>
Pushed By: pin
Date: Fri Jan 5 10:55:38 2024 +0100
Changeset: 61e467f22570011e22c14650b1c6eb5c288e6e40
Modified Files:
Makefile
Added Files:
cmocka/DESCR
cmocka/Makefile
cmocka/PLIST
cmocka/buildlink3.mk
cmocka/distinfo
cmocka/patches/patch-CompilerChecks.cmake
cmocka/patches/patch-include_cmocka.h
Log Message:
devel/cmocka: update to 1.1.7
Update cmocka from 1.1.5 to 1.1.7.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=61e467f22570011e22c14650b1c6eb5c288e6e40
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
cmocka/DESCR | 4 ++++
cmocka/Makefile | 18 ++++++++++++++++
cmocka/PLIST | 10 +++++++++
cmocka/buildlink3.mk | 13 +++++++++++
cmocka/distinfo | 7 ++++++
cmocka/patches/patch-CompilerChecks.cmake | 36 +++++++++++++++++++++++++++++++
cmocka/patches/patch-include_cmocka.h | 18 ++++++++++++++++
8 files changed, 107 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 2cd9fa4e14..f9f0cfd5f3 100644
--- a/Makefile
+++ b/Makefile
@@ -487,6 +487,7 @@ SUBDIR+= clustershell
SUBDIR+= cm-unicode-ttf
SUBDIR+= cmetrics
SUBDIR+= cmoc
+SUBDIR+= cmocka
SUBDIR+= cmvnd-fonts
SUBDIR+= coccigrep
SUBDIR+= cockatrice
diff --git a/cmocka/DESCR b/cmocka/DESCR
new file mode 100644
index 0000000000..6a138e7859
--- /dev/null
+++ b/cmocka/DESCR
@@ -0,0 +1,4 @@
+cmocka is an elegant unit testing framework for C with support for
+mock objects. It only requires the standard C library, works on a
+range of computing platforms (including embedded) and with different
+compilers.
diff --git a/cmocka/Makefile b/cmocka/Makefile
new file mode 100644
index 0000000000..5279f318ed
--- /dev/null
+++ b/cmocka/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.11 2023/01/24 22:20:20 wiz Exp $
+
+DISTNAME= cmocka-1.1.7
+CATEGORIES= devel
+MASTER_SITES= https://cmocka.org/files/${PKGVERSION_NOREV:R}/
+EXTRACT_SUFX= .tar.xz
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://cmocka.org/
+COMMENT= Unit testing framework for C supporting mock objects
+LICENSE= apache-2.0
+
+# GCC 4.3/4.4 provides wrong warnings:
+# cmocka.c:3281: error: 'setup_name' may be used uninitialized in this function
+CMAKE_ARGS+= -DWITH_WERROR_UNINITIALIZED_FLAG=0
+
+.include "../../devel/cmake/build.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/cmocka/PLIST b/cmocka/PLIST
new file mode 100644
index 0000000000..65e6e85392
--- /dev/null
+++ b/cmocka/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD$
+include/cmocka.h
+include/cmocka_pbc.h
+lib/cmake/cmocka/cmocka-config-noconfig.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
+lib/pkgconfig/cmocka.pc
diff --git a/cmocka/buildlink3.mk b/cmocka/buildlink3.mk
new file mode 100644
index 0000000000..4f2c767187
--- /dev/null
+++ b/cmocka/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.2 2019/11/23 08:45:45 mef Exp $
+
+BUILDLINK_TREE+= cmocka
+
+.if !defined(CMOCKA_BUILDLINK3_MK)
+CMOCKA_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.cmocka+= cmocka>=1.1.3
+BUILDLINK_ABI_DEPENDS.cmocka?= cmocka>=1.1.7
+BUILDLINK_PKGSRCDIR.cmocka?= ../../wip/cmocka
+.endif # CMOCKA_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -cmocka
diff --git a/cmocka/distinfo b/cmocka/distinfo
new file mode 100644
index 0000000000..7667724afb
--- /dev/null
+++ b/cmocka/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.11 2021/10/26 10:14:25 nia Exp $
+
+BLAKE2s (cmocka-1.1.7.tar.xz) = 319b75e3a0ed138f512913cd4e130d1dc977763a5d25f7378392ca28396a2955
+SHA512 (cmocka-1.1.7.tar.xz) = fe451893474dce1270e12af707a9a8fe1f0217e1782b4e1a67d25dadf56ff4a5e7dbc9ba4431f774aedffa46a40a28a6a0488df24feefb2f93e90fd2369c2c88
+Size (cmocka-1.1.7.tar.xz) = 84064 bytes
+SHA1 (patch-CompilerChecks.cmake) = 08052e3fac8c3c850bfa9a96c2fa30fde377dd95
+SHA1 (patch-include_cmocka.h) = bfde5dbac32b37d1cd31fa1f1b452ce163b0cf53
diff --git a/cmocka/patches/patch-CompilerChecks.cmake b/cmocka/patches/patch-CompilerChecks.cmake
new file mode 100644
index 0000000000..dce2aca337
--- /dev/null
+++ b/cmocka/patches/patch-CompilerChecks.cmake
@@ -0,0 +1,36 @@
+$NetBSD$
+
+Let PkgSrc handle security features.
+
+--- CompilerChecks.cmake.orig 2024-01-05 09:27:46.665856486 +0000
++++ CompilerChecks.cmake
+@@ -66,29 +66,6 @@ if (UNIX)
+ endif()
+ endif()
+
+- check_c_compiler_flag_ssp("-fstack-protector-strong" WITH_STACK_PROTECTOR_STRONG)
+- if (WITH_STACK_PROTECTOR_STRONG)
+- list(APPEND SUPPORTED_COMPILER_FLAGS "-fstack-protector-strong")
+- # This is needed as Solaris has a seperate libssp
+- if (SOLARIS)
+- list(APPEND SUPPORTED_LINKER_FLAGS "-fstack-protector-strong")
+- endif()
+- else (WITH_STACK_PROTECTOR_STRONG)
+- check_c_compiler_flag_ssp("-fstack-protector" WITH_STACK_PROTECTOR)
+- if (WITH_STACK_PROTECTOR)
+- list(APPEND SUPPORTED_COMPILER_FLAGS "-fstack-protector")
+- # This is needed as Solaris has a seperate libssp
+- if (SOLARIS)
+- list(APPEND SUPPORTED_LINKER_FLAGS "-fstack-protector")
+- endif()
+- endif()
+- endif (WITH_STACK_PROTECTOR_STRONG)
+-
+- check_c_compiler_flag_ssp("-fstack-clash-protection" WITH_STACK_CLASH_PROTECTION)
+- if (WITH_STACK_CLASH_PROTECTION)
+- list(APPEND SUPPORTED_COMPILER_FLAGS "-fstack-clash-protection")
+- endif()
+-
+ if (PICKY_DEVELOPER)
+ add_c_compiler_flag("-Wno-error=deprecated-declarations" SUPPORTED_COMPILER_FLAGS)
+ add_c_compiler_flag("-Wno-error=tautological-compare" SUPPORTED_COMPILER_FLAGS)
diff --git a/cmocka/patches/patch-include_cmocka.h b/cmocka/patches/patch-include_cmocka.h
new file mode 100644
index 0000000000..3735807aaf
--- /dev/null
+++ b/cmocka/patches/patch-include_cmocka.h
@@ -0,0 +1,18 @@
+$NetBSD$
+
+C99 fix.
+
+--- include/cmocka.h.orig 2024-01-05 09:30:00.219203105 +0000
++++ include/cmocka.h
+@@ -121,6 +121,11 @@ typedef uintmax_t LargestIntegralType;
+ ((LargestIntegralType)(value))
+
+ /* Smallest integral type capable of holding a pointer. */
++#if (__STDC_VERSION__ - 0 >= 199901L) && !defined(_UINTPTR_T) && !defined(_UINTPTR_T_DEFINED)
++# include <stdint.h>
++# define _UINTPTR_T
++# define _UINTPTR_T_DEFINED
++#endif
+ #if !defined(_UINTPTR_T) && !defined(_UINTPTR_T_DEFINED) && !defined(HAVE_UINTPTR_T)
+ # if defined(_WIN32)
+ /* WIN32 is an ILP32 platform */
Home |
Main Index |
Thread Index |
Old Index