diff --git a/security/libgcrypt/Makefile b/security/libgcrypt/Makefile index 9b10cac..61d5e6e 100644 --- a/security/libgcrypt/Makefile +++ b/security/libgcrypt/Makefile @@ -1,5 +1,6 @@ PORTNAME= libgcrypt DISTVERSION= 1.12.3 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= GNUPG diff --git a/security/libgcrypt/files/patch-configure b/security/libgcrypt/files/patch-configure index 71808e5..4f660d2 100644 --- a/security/libgcrypt/files/patch-configure +++ b/security/libgcrypt/files/patch-configure @@ -1,19 +1,16 @@ ---- /dev/null -+++ b/security/libgcrypt/files/patch-configure -@@ -0,0 +1,16 @@ -+Extend the SM4 inline-assembler probe with the EVEX-encoded (zmm) forms -+used by cipher/sm4-intel-avx512-amd64.S. The base system assembler only -+knows the VEX/ymm forms, so the probe passed but the AVX512 SM4 -+implementation failed to assemble. PR 297987. -+ -+--- configure.orig 2026-08-27 08:23:11 UTC -++++ configure -+@@ -19355,6 +19355,8 @@ void a(void) { -+ void a(void) { -+ __asm__("vsm4key4 %%ymm2, %%ymm1, %%ymm3\n\t":::"cc"); -+ __asm__("vsm4rnds4 %%ymm2, %%ymm1, %%ymm3\n\t":::"cc"); -++ __asm__("vsm4key4 %%zmm2, %%zmm1, %%zmm3\n\t":::"cc"); -++ __asm__("vsm4rnds4 %%zmm2, %%zmm1, %%zmm3\n\t":::"cc"); -+ } -+ int -+ main (void) +Extend the SM4 inline-assembler probe with the EVEX-encoded (zmm) forms +used by cipher/sm4-intel-avx512-amd64.S. The base system assembler only +knows the VEX/ymm forms, so the probe passed but the AVX512 SM4 +implementation failed to assemble. PR 297987. + +--- configure.orig 2026-08-27 08:23:11 UTC ++++ configure +@@ -19355,6 +19355,8 @@ void a(void) { + void a(void) { + __asm__("vsm4key4 %%ymm2, %%ymm1, %%ymm3\n\t":::"cc"); + __asm__("vsm4rnds4 %%ymm2, %%ymm1, %%ymm3\n\t":::"cc"); ++ __asm__("vsm4key4 %%zmm2, %%zmm1, %%zmm3\n\t":::"cc"); ++ __asm__("vsm4rnds4 %%zmm2, %%zmm1, %%zmm3\n\t":::"cc"); + } + int + main (void)