Skip site navigation (1)Skip section navigation (2)
Date:      10 Sep 2012 16:25:16 -0000
From:      Michael Gmelin <freebsd@grem.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        delphij@FreeBSD.org
Subject:   ports/171525: [PATCH] security/cryptopp: Allow successful compilation using C++11
Message-ID:  <20120910162516.46719.qmail@mail.grem.de>
Resent-Message-ID: <201209101630.q8AGU4vs075230@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         171525
>Category:       ports
>Synopsis:       [PATCH] security/cryptopp: Allow successful compilation using C++11
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 10 16:30:03 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Michael Gmelin
>Release:        FreeBSD 9.0-RELEASE amd64
>Organization:
Grem Equity GmbH
>Environment:
System: FreeBSD bsd64.grem.de 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC
>Description:
The patch adds static_cast to an initializer list, since this kind of
implicit cast is not allowed anymore. The changes are backwards compatible
to C++03, so this works on gcc 4.x as well as clang using -std=c++11
and -stdlib=libc++.

Added file(s):
- files/patch-wake.cpp

Port maintainer (delphij@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: suffix)
>How-To-Repeat:
>Fix:

--- cryptopp-5.6.1_3.patch begins here ---
diff -ruN --exclude=CVS ../cryptopp.orig/Makefile ./Makefile
--- ../cryptopp.orig/Makefile	2012-07-24 00:44:33.000000000 +0200
+++ ./Makefile	2012-09-10 17:58:41.927769620 +0200
@@ -7,7 +7,7 @@
 
 PORTNAME=		cryptopp
 PORTVERSION=		5.6.1
-PORTREVISION=		2
+PORTREVISION=		3
 CATEGORIES=		security
 MASTER_SITES=		SF \
 			http://www.cryptopp.com/
diff -ruN --exclude=CVS ../cryptopp.orig/files/patch-wake.cpp ./files/patch-wake.cpp
--- ../cryptopp.orig/files/patch-wake.cpp	1970-01-01 01:00:00.000000000 +0100
+++ ./files/patch-wake.cpp	2012-09-10 17:58:30.443714245 +0200
@@ -0,0 +1,20 @@
+--- wake.cpp.orig
++++ wake.cpp
+@@ -25,13 +25,13 @@ void WAKE_Base::GenKey(word32 k0, word32 k1, word32 k2, word32 k3)
+ 	CRYPTOPP_COMPILE_ASSERT(sizeof(x) == 4);
+ 	static int tt[10]= {
+ 		0x726a8f3b,								 // table
+-		0xe69a3b5c,
+-		0xd3c71fe5,
+-		0xab3c73d2,
++		static_cast<int>(0xe69a3b5c),
++		static_cast<int>(0xd3c71fe5),
++		static_cast<int>(0xab3c73d2),
+ 		0x4d3a8eb3,
+ 		0x0396d6e8,
+ 		0x3d4c2f7a,
+-		0x9ee27cf3, } ;
++		static_cast<int>(0x9ee27cf3), } ;
+ 	t[0] = k0;
+ 	t[1] = k1;
+ 	t[2] = k2;
--- cryptopp-5.6.1_3.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120910162516.46719.qmail>