From patchwork Fri Apr 22 07:28:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julian Scheel X-Patchwork-Id: 613465 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 3qrnKC6Vdxz9t9g for ; Fri, 22 Apr 2016 17:28:15 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id EE86191D23; Fri, 22 Apr 2016 07:28:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NWUnL0-6+Spw; Fri, 22 Apr 2016 07:28:13 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id F164E9196F; Fri, 22 Apr 2016 07:28:12 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id ED5451C1031 for ; Fri, 22 Apr 2016 07:28:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id E881F95AF4 for ; Fri, 22 Apr 2016 07:28:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gc1caroudZGV for ; Fri, 22 Apr 2016 07:28:11 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from web01.jusst.de (jusst.de [188.40.114.84]) by hemlock.osuosl.org (Postfix) with ESMTPS id 3BDE795AEA for ; Fri, 22 Apr 2016 07:28:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by web01.jusst.de (Postfix) with ESMTP id A5A021B028AE; Fri, 22 Apr 2016 09:28:09 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at web01.jusst.de Received: from web01.jusst.de ([127.0.0.1]) by localhost (web01.jusst.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pa8gJiKBCNMA; Fri, 22 Apr 2016 09:28:09 +0200 (CEST) Received: from avionic-0108.net.jusst.de. (p5B3C1CC1.dip0.t-ipconnect.de [91.60.28.193]) (Authenticated sender: julian@jusst.de) by web01.jusst.de (Postfix) with ESMTPSA id 2626C1B028AC; Fri, 22 Apr 2016 09:28:09 +0200 (CEST) From: Julian Scheel To: buildroot@buildroot.org Date: Fri, 22 Apr 2016 09:28:05 +0200 Message-Id: <1461310085-19374-1-git-send-email-julian@jusst.de> X-Mailer: git-send-email 2.8.0 Subject: [Buildroot] [PATCH] package/cryptopp: Backport gcc compatibility patch X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Import patch from cryptopp upstream which fixes the gcc version checks for using attribute deprecated with messages. Fixes build with host gcc versions < 4.5. Signed-off-by: Julian Scheel --- ...ixed-GCC-version-for-deprecated-attribute.patch | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 package/cryptopp/0001-Fixed-GCC-version-for-deprecated-attribute.patch diff --git a/package/cryptopp/0001-Fixed-GCC-version-for-deprecated-attribute.patch b/package/cryptopp/0001-Fixed-GCC-version-for-deprecated-attribute.patch new file mode 100644 index 0000000..d46ae76 --- /dev/null +++ b/package/cryptopp/0001-Fixed-GCC-version-for-deprecated-attribute.patch @@ -0,0 +1,66 @@ +From f707b9ef1688d4429ca6239cf2dc236440974681 Mon Sep 17 00:00:00 2001 +From: Jeffrey Walton +Date: Sun, 27 Dec 2015 23:44:36 -0500 +Subject: [PATCH] Fixed GCC version for deprecated attribute + +--- + default.h | 8 ++++---- + eccrypto.h | 2 +- + 2 files changed, 5 insertions(+), 5 deletions(-) + +diff --git a/default.h b/default.h +index 3dfbe7d..00ec664 100644 +--- a/default.h ++++ b/default.h +@@ -48,7 +48,7 @@ private: + SecByteBlock m_passphrase; + CBC_Mode::Encryption m_cipher; + +-#if (CRYPTOPP_GCC_VERSION >= 40300) || (CRYPTOPP_CLANG_VERSION >= 20800) ++#if (CRYPTOPP_GCC_VERSION >= 40500) || (CRYPTOPP_CLANG_VERSION >= 20800) + } __attribute__((deprecated ("DefaultEncryptor will be changing in the near future because the algorithms are no longer secure"))); + #elif (CRYPTOPP_GCC_VERSION) + } __attribute__((deprecated)); +@@ -101,7 +101,7 @@ private: + member_ptr m_decryptor; + bool m_throwException; + +-#if (CRYPTOPP_GCC_VERSION >= 40300) || (CRYPTOPP_CLANG_VERSION >= 20800) ++#if (CRYPTOPP_GCC_VERSION >= 40500) || (CRYPTOPP_CLANG_VERSION >= 20800) + } __attribute__((deprecated ("DefaultDecryptor will be changing in the near future because the algorithms are no longer secure"))); + #elif (CRYPTOPP_GCC_VERSION) + } __attribute__((deprecated)); +@@ -139,7 +139,7 @@ protected: + private: + member_ptr m_mac; + +-#if (CRYPTOPP_GCC_VERSION >= 40300) || (CRYPTOPP_CLANG_VERSION >= 20800) ++#if (CRYPTOPP_GCC_VERSION >= 40500) || (CRYPTOPP_CLANG_VERSION >= 20800) + } __attribute__((deprecated ("DefaultEncryptorWithMAC will be changing in the near future because the algorithms are no longer secure"))); + #elif (CRYPTOPP_GCC_VERSION) + } __attribute__((deprecated)); +@@ -188,7 +188,7 @@ private: + HashVerifier *m_hashVerifier; + bool m_throwException; + +-#if (CRYPTOPP_GCC_VERSION >= 40300) || (CRYPTOPP_CLANG_VERSION >= 20800) ++#if (CRYPTOPP_GCC_VERSION >= 40500) || (CRYPTOPP_CLANG_VERSION >= 20800) + } __attribute__((deprecated ("DefaultDecryptorWithMAC will be changing in the near future because the algorithms are no longer secure"))); + #elif (CRYPTOPP_GCC_VERSION) + } __attribute__((deprecated)); +diff --git a/eccrypto.h b/eccrypto.h +index 94a5d6c..7beaccc 100644 +--- a/eccrypto.h ++++ b/eccrypto.h +@@ -635,7 +635,7 @@ struct ECIES + virtual ~ECIES() {} + #endif + +-#if (CRYPTOPP_GCC_VERSION >= 40300) || (CRYPTOPP_CLANG_VERSION >= 20800) ++#if (CRYPTOPP_GCC_VERSION >= 40500) || (CRYPTOPP_CLANG_VERSION >= 20800) + } __attribute__((deprecated ("ECIES will be changing in the near future due to (1) an implementation bug and (2) an interop issue"))); + #elif (CRYPTOPP_GCC_VERSION) + } __attribute__((deprecated)); +-- +2.8.0 +