From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D9411158016 for ; Fri, 29 Dec 2023 23:32:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B66B42BC0CC; Fri, 29 Dec 2023 23:32:18 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8E7362BC0CC for ; Fri, 29 Dec 2023 23:32:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7FFF1342FFD for ; Fri, 29 Dec 2023 23:32:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CB6B0EE8 for ; Fri, 29 Dec 2023 23:32:15 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1703892683.3b34816f06a5f8ef0ac2151fea06c99411d67bfa.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/CryptX/, dev-perl/CryptX/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-perl/CryptX/CryptX-0.80.0-r1.ebuild dev-perl/CryptX/files/CryptX-0.80.0-aesni.patch X-VCS-Directories: dev-perl/CryptX/files/ dev-perl/CryptX/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 3b34816f06a5f8ef0ac2151fea06c99411d67bfa X-VCS-Branch: master Date: Fri, 29 Dec 2023 23:32:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4f4f8f53-1ff6-4cc5-a90a-e95f583d4812 X-Archives-Hash: 265232f9a984b45b2a5586fdae428a41 commit: 3b34816f06a5f8ef0ac2151fea06c99411d67bfa Author: Sam James gentoo org> AuthorDate: Fri Dec 29 23:31:01 2023 +0000 Commit: Sam James gentoo org> CommitDate: Fri Dec 29 23:31:23 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b34816f dev-perl/CryptX: fix build w/ sse4.1 but w/o aesni Closes: https://bugs.gentoo.org/916387 Signed-off-by: Sam James gentoo.org> dev-perl/CryptX/CryptX-0.80.0-r1.ebuild | 52 +++++++++++++++++++++++++ dev-perl/CryptX/files/CryptX-0.80.0-aesni.patch | 38 ++++++++++++++++++ 2 files changed, 90 insertions(+) diff --git a/dev-perl/CryptX/CryptX-0.80.0-r1.ebuild b/dev-perl/CryptX/CryptX-0.80.0-r1.ebuild new file mode 100644 index 000000000000..4e532364d203 --- /dev/null +++ b/dev-perl/CryptX/CryptX-0.80.0-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# TODO: unbundle libtommath, libtomcrypt. There's experimental support upstream. +# bug #732634 + +DIST_AUTHOR=MIK +DIST_VERSION=0.080 +inherit perl-module + +DESCRIPTION="Self-contained crypto toolkit" + +LICENSE="|| ( Artistic GPL-1+ ) public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="minimal" + +RDEPEND=" + virtual/perl-Math-BigInt + !minimal? ( + dev-perl/JSON + ) +" +BDEPEND=" + ${RDEPEND} + virtual/perl-ExtUtils-MakeMaker + test? ( + >=virtual/perl-Test-Simple-0.880.0 + !minimal? ( + >=virtual/perl-Math-BigInt-1.999.715 + >=virtual/perl-Storable-2.0.0 + ) + ) +" + +PERL_RM_FILES=( + t/002_all_pm.t + t/003_all_pm_pod.t + t/004_all_pm_pod_spelling.t + t/005_all_pm_pod_coverage.t +) + +PATCHES=( + "${FILESDIR}"/${PN}-0.80.0-respect-flags.patch + "${FILESDIR}"/${PN}-0.80.0-aesni.patch +) + +#src_configure() { +# CRYPTX_LDFLAGS='-ltommath -ltomcrypt' perl-module_src_configure +#} diff --git a/dev-perl/CryptX/files/CryptX-0.80.0-aesni.patch b/dev-perl/CryptX/files/CryptX-0.80.0-aesni.patch new file mode 100644 index 000000000000..3a6f34c7e885 --- /dev/null +++ b/dev-perl/CryptX/files/CryptX-0.80.0-aesni.patch @@ -0,0 +1,38 @@ +https://github.com/DCIT/perl-CryptX/pull/99 +https://bugs.gentoo.org/916387 +--- a/src/ltc/headers/tomcrypt_cfg.h ++++ b/src/ltc/headers/tomcrypt_cfg.h +@@ -96,6 +96,9 @@ LTC_EXPORT int LTC_CALL XSTRCMP(const char *s1, const char *s2); + #define LTC_AMD64_SSE4_1 + #endif + #endif ++ #if defined(__AES__) ++ #define LTC_AMD64_AES_NI ++ #endif + #endif + + /* detect PPC32 */ +--- a/src/ltc/headers/tomcrypt_private.h ++++ b/src/ltc/headers/tomcrypt_private.h +@@ -77,7 +77,7 @@ typedef struct + + /* tomcrypt_cipher.h */ + +-#if defined(LTC_AES_NI) && defined(LTC_AMD64_SSE4_1) ++#if defined(LTC_AES_NI) && defined(LTC_AMD64_AES_NI) + #define LTC_HAS_AES_NI + #endif + +--- a/src/ltc/misc/crypt/crypt.c ++++ b/src/ltc/misc/crypt/crypt.c +@@ -416,7 +416,7 @@ const char *crypt_build_settings = + #if defined(LTC_ADLER32) + " ADLER32 " + #endif +-#if defined(LTC_AES_NI) && defined(LTC_AMD64_SSE4_1) ++#if defined(LTC_AES_NI) && defined(LTC_AMD64_AES_NI) + " AES-NI " + #endif + #if defined(LTC_BASE64) + +