pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/cmocka cmocka: updated to 1.1.3



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a80ae55c0200
branches:  trunk
changeset: 326304:a80ae55c0200
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Dec 03 15:16:33 2018 +0000

description:
cmocka: updated to 1.1.3

cmocka version 1.1.3
* Fixed subunit output on failures
* Do not abort if a test is skipped
* Switched to Modern CMake

cmocka version 1.1.2
* Added function to filter tests (cmocka_set_test_filter)
* Added new mocking example (uptime)
* Fixed fixture error reporting
* Fixed compiler flags detection
* Some improvement for API documentation

cmocka: version 1.1.1
* Fixed TAP output
* Fixed cmocka on Windows x64
* Fixed xUnit output durations

cmocka: version 1.1.0
* Added support to catch multiple exceptions
* Added support to verify call ordering
* Added support to pass initial data to test cases
* Added will_return_maybe() for ignoring mock returns
* Added subtests for groups using TAP output
* Added support to write multiple XML files for groups
* Improved documentation
* Fixed XML output generataion
* Fixed Windows builds with VS2015

diffstat:

 devel/cmocka/Makefile                                              |   8 +-
 devel/cmocka/PLIST                                                 |   4 +-
 devel/cmocka/buildlink3.mk                                         |  12 +++
 devel/cmocka/distinfo                                              |  13 +--
 devel/cmocka/patches/patch-CompilerChecks.cmake                    |  35 ++++++++++
 devel/cmocka/patches/patch-cmake_Modules_DefineCompilerFlags.cmake |  22 ------
 6 files changed, 59 insertions(+), 35 deletions(-)

diffs (135 lines):

diff -r 4e4f555dea48 -r a80ae55c0200 devel/cmocka/Makefile
--- a/devel/cmocka/Makefile     Mon Dec 03 14:19:38 2018 +0000
+++ b/devel/cmocka/Makefile     Mon Dec 03 15:16:33 2018 +0000
@@ -1,12 +1,12 @@
-# $NetBSD: Makefile,v 1.5 2018/02/02 10:31:07 jperkin Exp $
+# $NetBSD: Makefile,v 1.6 2018/12/03 15:16:33 adam Exp $
 
-DISTNAME=      cmocka-1.0.1
+DISTNAME=      cmocka-1.1.3
 CATEGORIES=    devel
-MASTER_SITES=  https://cmocka.org/files/1.0/
+MASTER_SITES=  https://cmocka.org/files/${PKGVERSION_NOREV:R}/
 EXTRACT_SUFX=  .tar.xz
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      https://cmocka.org/files/1.0/
+HOMEPAGE=      https://cmocka.org/
 COMMENT=       Unit testing framework for C supporing mock objects
 LICENSE=       apache-2.0
 
diff -r 4e4f555dea48 -r a80ae55c0200 devel/cmocka/PLIST
--- a/devel/cmocka/PLIST        Mon Dec 03 14:19:38 2018 +0000
+++ b/devel/cmocka/PLIST        Mon Dec 03 15:16:33 2018 +0000
@@ -1,9 +1,9 @@
-@comment $NetBSD: PLIST,v 1.2 2016/09/11 04:35:54 dholland Exp $
+@comment $NetBSD: PLIST,v 1.3 2018/12/03 15:16:33 adam Exp $
 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.3.1
+lib/libcmocka.so.0.5.1
 lib/pkgconfig/cmocka.pc
diff -r 4e4f555dea48 -r a80ae55c0200 devel/cmocka/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cmocka/buildlink3.mk        Mon Dec 03 15:16:33 2018 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2018/12/03 15:16:33 adam Exp $
+
+BUILDLINK_TREE+=       cmocka
+
+.if !defined(CMOCKA_BUILDLINK3_MK)
+CMOCKA_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.cmocka+= cmocka>=1.1.3
+BUILDLINK_PKGSRCDIR.cmocka?=   ../../devel/cmocka
+.endif # CMOCKA_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -cmocka
diff -r 4e4f555dea48 -r a80ae55c0200 devel/cmocka/distinfo
--- a/devel/cmocka/distinfo     Mon Dec 03 14:19:38 2018 +0000
+++ b/devel/cmocka/distinfo     Mon Dec 03 15:16:33 2018 +0000
@@ -1,9 +1,8 @@
-$NetBSD: distinfo,v 1.7 2018/02/02 10:32:25 jperkin Exp $
+$NetBSD: distinfo,v 1.8 2018/12/03 15:16:33 adam Exp $
 
-SHA1 (cmocka-1.0.1.tar.xz) = 1f9baabbac3d8b777e83d5c84b64954d019dea34
-RMD160 (cmocka-1.0.1.tar.xz) = d53133a09f2791d65b9fa732d0f4e3b8fe0f65e5
-SHA512 (cmocka-1.0.1.tar.xz) = 142b3293a8ab137904d07f1ac6a56daf0afbbfcf7816a582c9998b6225aa5d6fe5f2d1b889de7b187142fc24ca4d1cfdbd630e8783858bc9ce89217ff05abc1e
-Size (cmocka-1.0.1.tar.xz) = 80240 bytes
-SHA1 (patch-cmake_Modules_DefineCompilerFlags.cmake) = a39376671c52bb44116babed892fc5749ddc21bd
+SHA1 (cmocka-1.1.3.tar.xz) = 4218fcde3534186711f962344f8c669c8ab8d8db
+RMD160 (cmocka-1.1.3.tar.xz) = de713fbf8cf936aa66f8f335a990905ae1c9532a
+SHA512 (cmocka-1.1.3.tar.xz) = b1a2ce72234256d653eebf95f8744a34525b9027e1ecf6552e1620c83a4bdda8b5674b748cc5fd14abada1e374829e2e7f0bcab0b1c8d6c3b7d9b7ec474b6ed3
+Size (cmocka-1.1.3.tar.xz) = 78744 bytes
+SHA1 (patch-CompilerChecks.cmake) = 24766d60fcf9cb388058d69eb66792a4d70031f6
 SHA1 (patch-include_cmocka.h) = f34a92589ce62de6c4fdc8232fc6e0c4bb43aa3d
-SHA1 (patch-src_cmocka.c) = a389be7815a861a19dfb2f555b7681ef9013ee80
diff -r 4e4f555dea48 -r a80ae55c0200 devel/cmocka/patches/patch-CompilerChecks.cmake
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cmocka/patches/patch-CompilerChecks.cmake   Mon Dec 03 15:16:33 2018 +0000
@@ -0,0 +1,35 @@
+$NetBSD: patch-CompilerChecks.cmake,v 1.1 2018/12/03 15:16:33 adam Exp $
+
+Let PkgSrc handle security features.
+
+--- CompilerChecks.cmake.orig  2018-12-03 09:42:07.000000000 +0000
++++ CompilerChecks.cmake
+@@ -62,28 +62,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)
diff -r 4e4f555dea48 -r a80ae55c0200 devel/cmocka/patches/patch-cmake_Modules_DefineCompilerFlags.cmake
--- a/devel/cmocka/patches/patch-cmake_Modules_DefineCompilerFlags.cmake        Mon Dec 03 14:19:38 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-$NetBSD: patch-cmake_Modules_DefineCompilerFlags.cmake,v 1.1 2018/02/02 10:32:25 jperkin Exp $
-
-Leave pkgsrc to handle security features.
-
---- cmake/Modules/DefineCompilerFlags.cmake.orig       2015-02-11 06:57:11.000000000 +0000
-+++ cmake/Modules/DefineCompilerFlags.cmake
-@@ -21,6 +21,7 @@ if (UNIX AND NOT WIN32)
-             set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
-         endif (WITH_FPIC)
- 
-+        if(0)
-         check_c_compiler_flag_ssp("-fstack-protector" WITH_STACK_PROTECTOR)
-         if (WITH_STACK_PROTECTOR)
-             set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector")
-@@ -35,6 +36,7 @@ if (UNIX AND NOT WIN32)
-                 endif (WITH_FORTIFY_SOURCE)
-             endif()
-         endif()
-+        endif(0)
- 
-         set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_GNU_SOURCE")
-     endif (${CMAKE_C_COMPILER_ID} MATCHES "(GNU|Clang)")



Home | Main Index | Thread Index | Old Index