git: 5c4566eb5610 - main - devel/isa-l_crypto: fix packaging on powerpc64le, enable powerpc64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 09 Aug 2026 12:28:49 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5c4566eb5610fe4a7aacf7f3f245a108e7c60a47
commit 5c4566eb5610fe4a7aacf7f3f245a108e7c60a47
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2026-08-09 12:25:39 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2026-08-09 12:28:40 +0000
devel/isa-l_crypto: fix packaging on powerpc64le, enable powerpc64
Upstream 2.26 moved aes_cbc.h and aes_gcm.h into the AES module's
install list, and the AES module is only built on x86_64 and aarch64.
Other architectures use the generic base implementations, so the two
headers are not staged and check-plist fails. Gate them in pkg-plist.
powerpc64 builds the same generic code: both powerpc64 and powerpc64le
pass the upstream test suite (29/29, including the FIPS self-tests),
so widen ONLY_FOR_ARCHS.
Also correct ONLY_FOR_ARCHS_REASON: no isa-l_crypto release ever had
powerpc64le-specific code; all releases fall back to the generic C
implementations on ppc64*.
---
devel/isa-l_crypto/Makefile | 12 ++++++++++--
devel/isa-l_crypto/pkg-plist | 4 ++--
2 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/devel/isa-l_crypto/Makefile b/devel/isa-l_crypto/Makefile
index 8de8ccae3252..da1a500b9ca3 100644
--- a/devel/isa-l_crypto/Makefile
+++ b/devel/isa-l_crypto/Makefile
@@ -10,8 +10,8 @@ WWW= https://github.com/intel/isa-l_crypto
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-ONLY_FOR_ARCHS= aarch64 amd64 powerpc64le
-ONLY_FOR_ARCHS_REASON= Only amd64/aarch64 are listed in README.md, powerpc64le mentioned in v2.22
+ONLY_FOR_ARCHS= aarch64 amd64 powerpc64 powerpc64le
+ONLY_FOR_ARCHS_REASON= Only amd64/aarch64 are listed in README.md, powerpc64* build the generic base implementations
BUILD_DEPENDS= nasm:devel/nasm
@@ -25,4 +25,12 @@ TEST_TARGET= check
USE_GITHUB= yes
GH_ACCOUNT= intel
+.include <bsd.port.options.mk>
+
+.if ${ARCH:Mpowerpc64*}
+PLIST_SUB+= AES="@comment "
+.else
+PLIST_SUB+= AES=""
+.endif
+
.include <bsd.port.mk>
diff --git a/devel/isa-l_crypto/pkg-plist b/devel/isa-l_crypto/pkg-plist
index 461a5a8fc81b..99f0a52167b1 100644
--- a/devel/isa-l_crypto/pkg-plist
+++ b/devel/isa-l_crypto/pkg-plist
@@ -1,6 +1,6 @@
include/isa-l_crypto.h
-include/isa-l_crypto/aes_cbc.h
-include/isa-l_crypto/aes_gcm.h
+%%AES%%include/isa-l_crypto/aes_cbc.h
+%%AES%%include/isa-l_crypto/aes_gcm.h
include/isa-l_crypto/aes_keyexp.h
include/isa-l_crypto/aes_xts.h
include/isa-l_crypto/isal_crypto_api.h