From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Sep 10 16:30:04 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9F7CC1065670 for ; Mon, 10 Sep 2012 16:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7BF098FC17 for ; Mon, 10 Sep 2012 16:30:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q8AGU4pV075242 for ; Mon, 10 Sep 2012 16:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q8AGU4vs075230; Mon, 10 Sep 2012 16:30:04 GMT (envelope-from gnats) Resent-Date: Mon, 10 Sep 2012 16:30:04 GMT Resent-Message-Id: <201209101630.q8AGU4vs075230@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Michael Gmelin Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 10C271065674 for ; Mon, 10 Sep 2012 16:25:18 +0000 (UTC) (envelope-from freebsd@grem.de) Received: from mail.grem.de (outcast.grem.de [213.239.217.27]) by mx1.freebsd.org (Postfix) with SMTP id 56BFA8FC1F for ; Mon, 10 Sep 2012 16:25:17 +0000 (UTC) Received: (qmail 46720 invoked by uid 0); 10 Sep 2012 16:25:16 -0000 Message-Id: <20120910162516.46719.qmail@mail.grem.de> Date: 10 Sep 2012 16:25:16 -0000 From: Michael Gmelin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: delphij@FreeBSD.org Subject: ports/171525: [PATCH] security/cryptopp: Allow successful compilation using C++11 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Sep 2012 16:30:04 -0000 >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(0xe69a3b5c), ++ static_cast(0xd3c71fe5), ++ static_cast(0xab3c73d2), + 0x4d3a8eb3, + 0x0396d6e8, + 0x3d4c2f7a, +- 0x9ee27cf3, } ; ++ static_cast(0x9ee27cf3), } ; + t[0] = k0; + t[1] = k1; + t[2] = k2; --- cryptopp-5.6.1_3.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: