svn commit: r473495 - in head/security/i2pd: . files

Dmitry Marakasov amdmi3 at FreeBSD.org
Thu Jun 28 13:27:04 UTC 2018


Author: amdmi3
Date: Thu Jun 28 13:27:02 2018
New Revision: 473495
URL: https://svnweb.freebsd.org/changeset/ports/473495

Log:
  - Update to 2.19.0

Added:
  head/security/i2pd/files/patch-build_CMakeLists.txt   (contents, props changed)
  head/security/i2pd/files/patch-libi2pd_Crypto.h   (contents, props changed)
Modified:
  head/security/i2pd/Makefile
  head/security/i2pd/distinfo

Modified: head/security/i2pd/Makefile
==============================================================================
--- head/security/i2pd/Makefile	Thu Jun 28 09:44:20 2018	(r473494)
+++ head/security/i2pd/Makefile	Thu Jun 28 13:27:02 2018	(r473495)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	i2pd
-PORTVERSION=	2.18.0
-PORTREVISION=	2
+PORTVERSION=	2.19.0
 CATEGORIES=	security net-p2p
 
 MAINTAINER=	amdmi3 at FreeBSD.org

Modified: head/security/i2pd/distinfo
==============================================================================
--- head/security/i2pd/distinfo	Thu Jun 28 09:44:20 2018	(r473494)
+++ head/security/i2pd/distinfo	Thu Jun 28 13:27:02 2018	(r473495)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1518621300
-SHA256 (PurpleI2P-i2pd-2.18.0_GH0.tar.gz) = 8834190418de0c4e56c46eb8b9dc4422ef14f1ad7d6591e9daae99493bf7170e
-SIZE (PurpleI2P-i2pd-2.18.0_GH0.tar.gz) = 1868440
+TIMESTAMP = 1530109716
+SHA256 (PurpleI2P-i2pd-2.19.0_GH0.tar.gz) = 7202497ffc3db632d0f7fed93eafaf39aa75efea199705dae7d022249b069eb9
+SIZE (PurpleI2P-i2pd-2.19.0_GH0.tar.gz) = 1982459

Added: head/security/i2pd/files/patch-build_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/i2pd/files/patch-build_CMakeLists.txt	Thu Jun 28 13:27:02 2018	(r473495)
@@ -0,0 +1,15 @@
+--- build/CMakeLists.txt.orig	2018-06-26 17:46:01 UTC
++++ build/CMakeLists.txt
+@@ -202,9 +202,11 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
+   endif ()
+ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
+   # more tweaks
+-  if (NOT (MSVC OR MSYS OR APPLE))
++  if (LINUX)
+     set (CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -stdlib=libstdc++" ) # required for <atomic>
+     list(APPEND CMAKE_REQUIRED_LIBRARIES "stdc++") # required to link with -stdlib=libstdc++
++  endif()
++  if (NOT (MSVC OR MSYS OR APPLE))
+     set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-const-variable -Wno-overloaded-virtual -Wno-c99-extensions" )
+   endif()
+ endif ()

Added: head/security/i2pd/files/patch-libi2pd_Crypto.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/i2pd/files/patch-libi2pd_Crypto.h	Thu Jun 28 13:27:02 2018	(r473495)
@@ -0,0 +1,24 @@
+commit 4ffbb46cf9c63dfddc062771a9bb29a5d50524af
+Author: Dmitry Marakasov <amdmi3 at amdmi3.ru>
+Date:   Wed Jun 27 22:31:01 2018 +0300
+
+    Fix "macro expansion producing 'defined' has undefined behavior" clang warning
+
+diff --git libi2pd/Crypto.h libi2pd/Crypto.h
+index fe0fcddf..43f1def9 100644
+--- libi2pd/Crypto.h
++++ libi2pd/Crypto.h
+@@ -262,7 +262,12 @@ namespace crypto
+ 
+ // take care about openssl version
+ #include <openssl/opensslv.h>
+-#define LEGACY_OPENSSL ((OPENSSL_VERSION_NUMBER < 0x010100000) || defined(LIBRESSL_VERSION_NUMBER)) // 1.0.2 and below or LibreSSL
++#if ((OPENSSL_VERSION_NUMBER < 0x010100000) || defined(LIBRESSL_VERSION_NUMBER)) // 1.0.2 and below or LibreSSL
++#   define LEGACY_OPENSSL 1
++#else
++#   define LEGACY_OPENSSL 0
++#endif
++
+ #if LEGACY_OPENSSL
+ // define getters and setters introduced in 1.1.0
+ inline int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g)


More information about the svn-ports-all mailing list