All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/cryptopp: bump to version 8.1.0
@ 2019-03-08 22:15 Fabrice Fontaine
  2019-03-09 13:43 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2019-03-08 22:15 UTC (permalink / raw)
  To: buildroot

- Remove patch (already in version)
- Add BSD-3-Clause (CRYPTOGAMS) and Public domain (ChaCha SSE2 and  AVX)
  to LICENSE, see:
  https://github.com/weidai11/cryptopp/commit/64a89bf352c7eb8ec905b4bf6d1177a56fed0121

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...001-config.h-avx2-depends-on-gcc-4.9.patch | 40 -------------------
 package/cryptopp/cryptopp.hash                |  6 +--
 package/cryptopp/cryptopp.mk                  |  4 +-
 3 files changed, 5 insertions(+), 45 deletions(-)
 delete mode 100644 package/cryptopp/0001-config.h-avx2-depends-on-gcc-4.9.patch

diff --git a/package/cryptopp/0001-config.h-avx2-depends-on-gcc-4.9.patch b/package/cryptopp/0001-config.h-avx2-depends-on-gcc-4.9.patch
deleted file mode 100644
index 7f93bceacf..0000000000
--- a/package/cryptopp/0001-config.h-avx2-depends-on-gcc-4.9.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-From c484938fb4a57430a2e47334f753b1d771aa0f1b Mon Sep 17 00:00:00 2001
-From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
-Date: Thu, 21 Feb 2019 20:26:24 +0100
-Subject: [PATCH] config.h: avx2 depends on gcc 4.9
-
-Build of cryptopp on x86 with gcc 4.8 fails on:
-chacha_avx.cpp: In function 'void CryptoPP::ChaCha_OperateKeystream_AVX2(const word32*, const byte*, CryptoPP::byte*, unsigned int)':
-chacha_avx.cpp:98:85: error: '_mm256_broadcastsi128_si256' was not declared in this scope
-
-This is due to the fact that _mm256_broadcastsi128_si256 has been added
-only in gcc 4.9:
-https://github.com/gcc-mirror/gcc/commit/78e8d5ffbf0ba5031b736d2c6fc6a44605047cbc
-
-So bump CRYPTOPP_GCC_VERSION from 4.7 to 4.9 for AVX2 support
-
-Fixes:
- - http://autobuild.buildroot.org/results/195e40b34344f773da51a3fbff9d8e76c517eed1
-
-Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
-[Upstream status: https://github.com/weidai11/cryptopp/pull/809]
----
- config.h | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/config.h b/config.h
-index eccba009..4516d2b3 100644
---- a/config.h
-+++ b/config.h
-@@ -591,7 +591,7 @@ NAMESPACE_END
- // Requires Binutils 2.24
- #if !defined(CRYPTOPP_DISABLE_AVX2) && defined(CRYPTOPP_AVX_AVAILABLE) && \
- 	(defined(__AVX2__) || (CRYPTOPP_MSC_VERSION >= 1800) || (__SUNPRO_CC >= 0x5130) || \
--	(CRYPTOPP_GCC_VERSION >= 40700) || (__INTEL_COMPILER >= 1400) || \
-+	(CRYPTOPP_GCC_VERSION >= 40900) || (__INTEL_COMPILER >= 1400) || \
- 	(CRYPTOPP_LLVM_CLANG_VERSION >= 30100) || (CRYPTOPP_APPLE_CLANG_VERSION >= 40600))
- #define CRYPTOPP_AVX2_AVAILABLE 1
- #endif
--- 
-2.14.1
-
diff --git a/package/cryptopp/cryptopp.hash b/package/cryptopp/cryptopp.hash
index 8d12a98dab..5d6d8520c2 100644
--- a/package/cryptopp/cryptopp.hash
+++ b/package/cryptopp/cryptopp.hash
@@ -1,5 +1,5 @@
-# Hash from: https://www.cryptopp.com/release800.html:
-sha256  bbfd89b348846b920d97a1d32b88c85caf0d7bb423d4fcfab7c44349aaceb82c  cryptopp800.zip
+# Hash from: https://www.cryptopp.com/release810.html:
+sha256  f609b453e42abbab7163191dfe060964121f04da212e2e4f2f0ebe94b7e806ae  cryptopp810.zip
 
 # Hash for license file:
-sha256  fe5f5f187e6e38ac2f833956fc5c4cab2df08797cff07f540e4ee74f12f7ee5b  License.txt
+sha256  f29d65ae3f0c8e327284f193524643ffb4d682fcca3e1740a5c6cbab0e720583  License.txt
diff --git a/package/cryptopp/cryptopp.mk b/package/cryptopp/cryptopp.mk
index 8e3277a941..dd41b0ec47 100644
--- a/package/cryptopp/cryptopp.mk
+++ b/package/cryptopp/cryptopp.mk
@@ -4,10 +4,10 @@
 #
 ################################################################################
 
-CRYPTOPP_VERSION = 8.0.0
+CRYPTOPP_VERSION = 8.1.0
 CRYPTOPP_SOURCE = cryptopp$(subst .,,$(CRYPTOPP_VERSION)).zip
 CRYPTOPP_SITE = https://cryptopp.com
-CRYPTOPP_LICENSE = BSL-1.0
+CRYPTOPP_LICENSE = BSL-1.0, BSD-3-Clause (CRYPTOGAMS), Public domain (ChaCha SSE2 and AVX)
 CRYPTOPP_LICENSE_FILES = License.txt
 CRYPTOPP_INSTALL_STAGING = YES
 
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH 1/1] package/cryptopp: bump to version 8.1.0
  2019-03-08 22:15 [Buildroot] [PATCH 1/1] package/cryptopp: bump to version 8.1.0 Fabrice Fontaine
@ 2019-03-09 13:43 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2019-03-09 13:43 UTC (permalink / raw)
  To: buildroot

Hello Fabrice,

On Fri,  8 Mar 2019 23:15:34 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> - Remove patch (already in version)
> - Add BSD-3-Clause (CRYPTOGAMS) and Public domain (ChaCha SSE2 and  AVX)
>   to LICENSE, see:
>   https://github.com/weidai11/cryptopp/commit/64a89bf352c7eb8ec905b4bf6d1177a56fed0121
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  ...001-config.h-avx2-depends-on-gcc-4.9.patch | 40 -------------------
>  package/cryptopp/cryptopp.hash                |  6 +--
>  package/cryptopp/cryptopp.mk                  |  4 +-
>  3 files changed, 5 insertions(+), 45 deletions(-)
>  delete mode 100644 package/cryptopp/0001-config.h-avx2-depends-on-gcc-4.9.patch

Applied to master, thanks.

Note that there is something wrong going on with this package: it
builds stuff during the host installation step:

>>> host-cryptopp 8.1.0 Installing to host directory
PATH="/home/thomas/projets/buildroot/output/host/bin:/home/thomas/projets/buildroot/output/host/sbin:/home/thomas/sys/bin/:/usr/libexec/python3-sphinx:/usr/share/Modules/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/thomas/.rvm/bin:/home/thomas/sys/bin:/home/thomas/.gem/ruby/2.1.0/bin:/home/thomas/.rvm/bin:/home/thomas/projets/git-wrappers/:/home/thomas/.local/bin" PKG_CONFIG="/home/thomas/projets/buildroot/output/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/thomas/projets/buildroot/output/host/lib/pkgconfig:/home/thomas/projets/buildroot/output/host/share/pkgconfig" /usr/bin/make -j5 -C /home/thomas/projets/buildroot/output/build/host-cryptopp-8.1.0 PREFIX=/home/thomas/projets/buildroot/output/host install
ar r libcryptopp.a cryptlib.o cpu.o integer.o 3way.o adler32.o algebra.o algparam.o arc4.o aria.o aria_simd.o ariatab.o asn.o authenc.o base32.o base64.o basecode.o bfinit.o blake2.o blake2b_simd.o blake2s_simd.o blowfish.o blumshub.o camellia.o cast.o casts.o cbcmac.o ccm.o chacha.o chacha_avx.o chacha_simd.o chachapoly.o cham.o cham_simd.o channels.o cmac.o crc.o crc_simd.o darn.o default.o des.o dessp.o dh.o dh2.o dll.o donna_32.o donna_64.o donna_sse.o dsa.o eax.o ec2n.o eccrypto.o ecp.o elgamal.o emsa2.o eprecomp.o esign.o files.o filters.o fips140.o fipstest.o gcm.o gcm_simd.o gf256.o gf2_32.o gf2n.o gf2n_simd.o gfpcrypt.o gost.o gzip.o hc128.o [...] zlib.o
g++ -DNDEBUG -g2 -O3 -fPIC -pthread -pipe -c adhoc.cpp
g++ -DNDEBUG -g2 -O3 -fPIC -pthread -pipe -c test.cpp
ar: creating libcryptopp.a
g++ -DNDEBUG -g2 -O3 -fPIC -pthread -pipe -c bench1.cpp
g++ -DNDEBUG -g2 -O3 -fPIC -pthread -pipe -c bench2.cpp
ranlib libcryptopp.a
g++ -DNDEBUG -g2 -O3 -fPIC -pthread -pipe -c bench3.cpp
g++ -DNDEBUG -g2 -O3 -fPIC -pthread -pipe -c datatest.cpp
g++ -DNDEBUG -g2 -O3 -fPIC -pthread -pipe -c dlltest.cpp
g++ -DNDEBUG -g2 -O3 -fPIC -pthread -pipe -c fipsalgt.cpp
g++ -DNDEBUG -g2 -O3 -fPIC -pthread -pipe -c validat0.cpp
g++ -DNDEBUG -g2 -O3 -fPIC -pthread -pipe -c validat1.cpp
g++ -DNDEBUG -g2 -O3 -fPIC -pthread -pipe -c validat2.cpp
g++ -DNDEBUG -g2 -O3 -fPIC -pthread -pipe -c validat3.cpp
g++ -DNDEBUG -g2 -O3 -fPIC -pthread -pipe -c validat4.cpp
g++ -DNDEBUG -g2 -O3 -fPIC -pthread -pipe -c validat5.cpp
g++ -DNDEBUG -g2 -O3 -fPIC -pthread -pipe -c validat6.cpp
g++ -DNDEBUG -g2 -O3 -fPIC -pthread -pipe -c validat7.cpp
g++ -DNDEBUG -g2 -O3 -fPIC -pthread -pipe -c validat8.cpp
g++ -DNDEBUG -g2 -O3 -fPIC -pthread -pipe -c validat9.cpp
g++ -DNDEBUG -g2 -O3 -fPIC -pthread -pipe -c validat10.cpp
g++ -DNDEBUG -g2 -O3 -fPIC -pthread -pipe -c regtest1.cpp
g++ -DNDEBUG -g2 -O3 -fPIC -pthread -pipe -c regtest2.cpp
g++ -DNDEBUG -g2 -O3 -fPIC -pthread -pipe -c regtest3.cpp
g++ -DNDEBUG -g2 -O3 -fPIC -pthread -pipe -c regtest4.cpp

These should either be built during the build step, or not built at all
(tests) if possible.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-03-09 13:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-08 22:15 [Buildroot] [PATCH 1/1] package/cryptopp: bump to version 8.1.0 Fabrice Fontaine
2019-03-09 13:43 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.