Summary: | =dev-perl/CryptX-0.80.0: Compilation fails in aesni.c | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Hanno Böck <hanno> |
Component: | Current packages | Assignee: | Gentoo Perl team <perl> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gentoo, sam |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://github.com/DCIT/perl-CryptX/issues/97 https://github.com/DCIT/perl-CryptX/pull/99 https://github.com/DCIT/perl-CryptX/issues/100 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build log
aes.patch |
Description
Hanno Böck
![]() src/ltc/headers/tomcrypt_custom.h: ``` [...] /* ---> Symmetric Block Ciphers <--- */ #ifndef LTC_NO_CIPHERS #define LTC_BLOWFISH #define LTC_RC2 #define LTC_RC5 #define LTC_RC6 #define LTC_SAFERP #define LTC_RIJNDAEL #define LTC_AES_NI #define LTC_XTEA [...] ``` src/ltc/headers/tomcrypt_private.h: ``` [...] /* tomcrypt_cipher.h */ #if defined(LTC_AES_NI) && defined(LTC_AMD64_SSE4_1) #define LTC_HAS_AES_NI #endif [...] ``` src/ltc/headers/tomcrypt_cfg.h: ``` [...] /* detect amd64/x64 */ #if defined(__x86_64__) || defined(_M_X64) || defined(_M_AMD64) #define ENDIAN_LITTLE #define ENDIAN_64BITWORD #define LTC_FAST #if defined(__SSE4_1__) #if __SSE4_1__ == 1 #define LTC_AMD64_SSE4_1 #endif #endif #endif [...] ``` so if we have SSE 4.1, it assumes we have aesni. I think it should check for __AES__ instead. Created attachment 873628 [details, diff]
aes.patch
try this untested patch?
(In reply to Sam James from comment #2) > Created attachment 873628 [details, diff] [details, diff] > aes.patch > > try this untested patch? With this patch it compiles. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b34816f06a5f8ef0ac2151fea06c99411d67bfa commit 3b34816f06a5f8ef0ac2151fea06c99411d67bfa Author: Sam James <sam@gentoo.org> AuthorDate: 2023-12-29 23:31:01 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-12-29 23:31:23 +0000 dev-perl/CryptX: fix build w/ sse4.1 but w/o aesni Closes: https://bugs.gentoo.org/916387 Signed-off-by: Sam James <sam@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(+) |