pkgsrc-Changes archive

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

CVS commit: pkgsrc/net/libzrtpcpp



Module Name:    pkgsrc
Committed By:   nros
Date:           Fri Oct 21 16:10:37 UTC 2022

Modified Files:
        pkgsrc/net/libzrtpcpp: Makefile PLIST buildlink3.mk distinfo
        pkgsrc/net/libzrtpcpp/patches: patch-CMakeLists.txt
Added Files:
        pkgsrc/net/libzrtpcpp/patches: patch-cryptcommon_ZrtpRandom.h

Log Message:
Update libzrtpcpp to version 4.7.0

Pkgsrc changes:
Github and pkglint fixes.

Changes from NEWS:

## GNU ZRTP 4.6.6 ##

Small fix in zrtp/crypto/zrtpDh.cpp to fix a small memory leak.

## GNU ZRTP 4.6.5 ##

Cleanup compiler flags, reduce visibility for Android build,
check some buffer length. No functional enhancements, no changes
in API.

## GNU ZRTP 4.6.4 ##

Some fixes to slience Windows C/C++ compiler, fix a few include
statements when using openSSL, small fixes to check disclosure
flag. Reset valid flags when adding a new cache record to avoid
wrong security message.

## GNU ZRTP 4.6.3 ##

A small fix inside the ZRTP main module to ignore malformed
DH1 packets and avoid an NULL pointer access.

## GNU ZRTP 4.6.2 ##

A small fix in the ZrtpCWrapper to fix an issue within 4.6.1
;-)

## GNU ZRTP 4.6.1 ##

A small fix in the ZrtpCWrapper to initialize and use the ZRTP
master instance in case of multi-stream usage. Does not affect
the main ZRTP usage, only projects that use the wrapper such
as PJSIP or Gstreamer projects.

These project should re-compile if they use the multi-stream
feature.

## GNU ZRTP 4.6.0 ##

Only a small add-on to the code to implement handling of the
disclosure flag. See RFC6189, chapter 11 for more details
about the disclosure flag.

Because the API changed, thus it's necessary to recompile
applications that use the new library version.

## GNU ZRTP 4.5.0 ##

Added a new SAS algorithm 'B32E' that uses 32 Unicode Emoji
code points instead of 32 ASCII characters. Application that
are able to display Emojis may use this new SAS algorithm to
display nice Emojis instead of 'boring' ASCII letters and
digits.

Some technical details:

* the 32 selected emojis are easily distinguishable, known to
  everyone, not offending etc, and use standard Unicode code
  points
* select colored emojis that look good on white and on black
  backgrounds (most emojis look good on white only)
* select emojis that are available on iOS, Android, Mac OS X
  (Windows not checked)
* the resulting SAS string is UTF-8 encoded, suitable for most
  platforms except Java.

To use the codes for Java the application needs to translate the
UTF-8 encoding into UTF-16 encoding. Because most of the emojis
are Unicode supplementary characters the UTF-8 to UTF-16 conversion
must generate the necessary UTF-16 surrogate pairs.

To support the UTF-8 / UTF-16 conversion the common directory
contains conversion functions that I extracted from ICU C/C++
library source.

Because the API changed, thus it's necessary to recompile
applications that use the new library version.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 pkgsrc/net/libzrtpcpp/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/net/libzrtpcpp/PLIST
cvs rdiff -u -r1.30 -r1.31 pkgsrc/net/libzrtpcpp/buildlink3.mk
cvs rdiff -u -r1.8 -r1.9 pkgsrc/net/libzrtpcpp/distinfo
cvs rdiff -u -r1.3 -r1.4 pkgsrc/net/libzrtpcpp/patches/patch-CMakeLists.txt
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/net/libzrtpcpp/patches/patch-cryptcommon_ZrtpRandom.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/libzrtpcpp/Makefile
diff -u pkgsrc/net/libzrtpcpp/Makefile:1.38 pkgsrc/net/libzrtpcpp/Makefile:1.39
--- pkgsrc/net/libzrtpcpp/Makefile:1.38 Mon Apr 18 19:10:03 2022
+++ pkgsrc/net/libzrtpcpp/Makefile      Fri Oct 21 16:10:37 2022
@@ -1,34 +1,32 @@
-# $NetBSD: Makefile,v 1.38 2022/04/18 19:10:03 adam Exp $
+# $NetBSD: Makefile,v 1.39 2022/10/21 16:10:37 nros Exp $
 
-GITHUB_TAG=    V4.4.0
-DISTNAME=      ${GITHUB_TAG}
-PKGNAME=       libzrtpcpp${DISTNAME:S/V/-/1}
-PKGREVISION=   26
+DISTNAME=      libzrtpcpp-4.7.0
 CATEGORIES=    net
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=wernerd/}
 GITHUB_PROJECT=        ZRTPCPP
-DIST_SUBDIR=   ${PKGBASE}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-#HOMEPAGE=     http://www.gnutelephony.org/index.php/GNU_ZRTP
+HOMEPAGE=      https://www.gnu.org/software/ccrtp/zrtp.html
 COMMENT=       ZRTP extension for GNU ccRTP
-LICENSE=       gnu-gpl-v3
+LICENSE=       apache-2.0
 
 WRKSRC=                ${WRKDIR}/${GITHUB_PROJECT}-${PKGVERSION_NOREV}
 
-USE_PKGLOCALEDIR=      yes
-GCC_REQD+=             4.7
 USE_TOOLS+=            pkg-config
 USE_LIBTOOL=           yes
 USE_LANGUAGES+=                c c++
 USE_CMAKE=             yes
-PKG_DESTDIR_SUPPORT=   destdir
-CMAKE_ARGS+=           -DLIBDIRNAME=lib
+CMAKE_ARGS+=           -DCCRTP=ON
+CMAKE_ARGS+=           -DLIB_SUFFIX=""
+
+CMAKE_USE_GNU_INSTALL_DIRS=    no
+
+PKGCONFIG_OVERRIDE=    libzrtpcpp.pc.cmake
 
 .include "options.mk"
 
 .include "../../mk/pthread.buildlink3.mk"
+.include "../../net/ccrtp/buildlink3.mk"
 .include "../../security/libgcrypt/buildlink3.mk"
 .include "../../security/openssl/buildlink3.mk"
-.include "../../net/ccrtp/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/net/libzrtpcpp/PLIST
diff -u pkgsrc/net/libzrtpcpp/PLIST:1.4 pkgsrc/net/libzrtpcpp/PLIST:1.5
--- pkgsrc/net/libzrtpcpp/PLIST:1.4     Sat Apr 18 03:36:23 2015
+++ pkgsrc/net/libzrtpcpp/PLIST Fri Oct 21 16:10:37 2022
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2015/04/18 03:36:23 rodent Exp $
+@comment $NetBSD: PLIST,v 1.5 2022/10/21 16:10:37 nros Exp $
 include/libzrtpcpp/CcrtpTimeoutProvider.h
 include/libzrtpcpp/ZrtpCWrapper.h
 include/libzrtpcpp/ZrtpCallback.h
@@ -10,5 +10,5 @@ include/libzrtpcpp/common/osSpecifics.h
 include/libzrtpcpp/zrtpccrtp.h
 lib/libzrtpcpp.so
 lib/libzrtpcpp.so.4
-lib/libzrtpcpp.so.4.4.0
+lib/libzrtpcpp.so.${PKGVERSION}
 lib/pkgconfig/libzrtpcpp.pc

Index: pkgsrc/net/libzrtpcpp/buildlink3.mk
diff -u pkgsrc/net/libzrtpcpp/buildlink3.mk:1.30 pkgsrc/net/libzrtpcpp/buildlink3.mk:1.31
--- pkgsrc/net/libzrtpcpp/buildlink3.mk:1.30    Mon Apr 18 19:10:03 2022
+++ pkgsrc/net/libzrtpcpp/buildlink3.mk Fri Oct 21 16:10:37 2022
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.30 2022/04/18 19:10:03 adam Exp $
+# $NetBSD: buildlink3.mk,v 1.31 2022/10/21 16:10:37 nros Exp $
 
 BUILDLINK_TREE+=       libzrtpcpp
 
@@ -6,13 +6,13 @@ BUILDLINK_TREE+=      libzrtpcpp
 LIBZRTPCPP_BUILDLINK3_MK:=
 
 BUILDLINK_API_DEPENDS.libzrtpcpp+=     libzrtpcpp>=4.4.0
-BUILDLINK_ABI_DEPENDS.libzrtpcpp?=     libzrtpcpp>=4.4.0nb26
+BUILDLINK_ABI_DEPENDS.libzrtpcpp?=     libzrtpcpp>=4.7.0
 BUILDLINK_PKGSRCDIR.libzrtpcpp?=       ../../net/libzrtpcpp
 
 pkgbase := libzrtpcpp
 .include "../../mk/pkg-build-options.mk"
 
-.if !empty(PKG_BUILD_OPTIONS.libzrtpcpp:Msqlite3)
+.if ${PKG_BUILD_OPTIONS.libzrtpcpp:Msqlite3}
 .include "../../databases/sqlite3/buildlink3.mk"
 .endif
 

Index: pkgsrc/net/libzrtpcpp/distinfo
diff -u pkgsrc/net/libzrtpcpp/distinfo:1.8 pkgsrc/net/libzrtpcpp/distinfo:1.9
--- pkgsrc/net/libzrtpcpp/distinfo:1.8  Tue Oct 26 11:05:57 2021
+++ pkgsrc/net/libzrtpcpp/distinfo      Fri Oct 21 16:10:37 2022
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.8 2021/10/26 11:05:57 nia Exp $
+$NetBSD: distinfo,v 1.9 2022/10/21 16:10:37 nros Exp $
 
-BLAKE2s (libzrtpcpp/V4.4.0.tar.gz) = 6be8b9adacc5b69a7d1d8f93e875c0cd55d995165e512bcebfddea52c2b1af5f
-SHA512 (libzrtpcpp/V4.4.0.tar.gz) = 56cc44cf05a505b6d62043f4ee621bc00fd38d1b0f27f9d21ed6169aae3d08f948cf2af91f8a094f24db82080fc9c553aa50c34d06926b68cd767f258454c204
-Size (libzrtpcpp/V4.4.0.tar.gz) = 1933037 bytes
-SHA1 (patch-CMakeLists.txt) = 1c56d64b67a381cda790bbdab3892f3be408231f
+BLAKE2s (libzrtpcpp-4.7.0.tar.gz) = 5c3d4fb9aed62b3a368aeed5ace6fa8c047177b68979e42dbde4c2a619186bc7
+SHA512 (libzrtpcpp-4.7.0.tar.gz) = 7ea7458edf06944c5248973ece871af7a44319935fb7e761ffee256c83ca6feeb887c108ed7193563a7cd2be29b79657e659c69c46bc3a27b94b4eb4c664fac4
+Size (libzrtpcpp-4.7.0.tar.gz) = 2235691 bytes
+SHA1 (patch-CMakeLists.txt) = 96540d42cd0ff7cbf837d337fb62a0ca0deccdc2
+SHA1 (patch-cryptcommon_ZrtpRandom.h) = e0724c674ce528afd1803585268ce92be0488101

Index: pkgsrc/net/libzrtpcpp/patches/patch-CMakeLists.txt
diff -u pkgsrc/net/libzrtpcpp/patches/patch-CMakeLists.txt:1.3 pkgsrc/net/libzrtpcpp/patches/patch-CMakeLists.txt:1.4
--- pkgsrc/net/libzrtpcpp/patches/patch-CMakeLists.txt:1.3      Sat Apr 18 03:36:23 2015
+++ pkgsrc/net/libzrtpcpp/patches/patch-CMakeLists.txt  Fri Oct 21 16:10:37 2022
@@ -1,25 +1,16 @@
-$NetBSD: patch-CMakeLists.txt,v 1.3 2015/04/18 03:36:23 rodent Exp $
+$NetBSD: patch-CMakeLists.txt,v 1.4 2022/10/21 16:10:37 nros Exp $
 
-Don't set LIB_SUFFIX for pkgsrc. LIBDIRNAME is set via CMAKE_ARGS.
+* respect LIB_SUFFIX set to an empty string, so
+  that LIB_SUFFIX can be set to nothing for pkgsrc
 
---- CMakeLists.txt.orig        2015-03-29 10:38:44.000000000 +0000
+--- CMakeLists.txt.orig        2022-10-20 16:44:38.408278688 +0000
 +++ CMakeLists.txt
-@@ -85,18 +85,6 @@ include(CheckLibraryExists)
+@@ -101,7 +101,7 @@ include(CheckLibraryExists)
  include(CheckIncludeFiles)
  include(CheckFunctionExists)
  
 -if (NOT LIB_SUFFIX)
--    set(LIBDIRNAME "lib")
--    # this caused problems in debian where it has to always be lib....
--    if (NOT EXISTS /etc/debian_version)
--        if ( "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64" )
--            set(LIBDIRNAME "lib64")
--        endif()
--    endif()
--else()
--    set(LIBDIRNAME "lib${LIB_SUFFIX}")
--endif()
--
- MESSAGE(STATUS "Configuring GNU ${PROJECT_NAME} ${VERSION} for ${PACKAGE}, commit: ${GIT_COMMIT} ...")
- 
- 
++if (NOT DEFINED LIB_SUFFIX)
+     set(LIBDIRNAME "lib")
+     # this caused problems in debian where it has to always be lib....
+     if (NOT EXISTS /etc/debian_version)

Added files:

Index: pkgsrc/net/libzrtpcpp/patches/patch-cryptcommon_ZrtpRandom.h
diff -u /dev/null pkgsrc/net/libzrtpcpp/patches/patch-cryptcommon_ZrtpRandom.h:1.1
--- /dev/null   Fri Oct 21 16:10:37 2022
+++ pkgsrc/net/libzrtpcpp/patches/patch-cryptcommon_ZrtpRandom.h        Fri Oct 21 16:10:37 2022
@@ -0,0 +1,14 @@
+$NetBSD: patch-cryptcommon_ZrtpRandom.h,v 1.1 2022/10/21 16:10:37 nros Exp $
+
+* include stdbool.h so that bool is defined in C
+
+--- cryptcommon/ZrtpRandom.h.orig      2020-02-01 18:04:00.000000000 +0000
++++ cryptcommon/ZrtpRandom.h
+@@ -28,6 +28,7 @@
+ #if !(defined(_WIN32) || defined(_WIN64))
+ #include <unistd.h>
+ #endif
++#include <stdbool.h>
+ #include <stdint.h>
+ #include <sys/types.h>
+ 



Home | Main Index | Thread Index | Old Index