git: e5f659437459 - main - security/liboqs: fix build on arm64

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Fri, 03 Mar 2023 21:31:19 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e5f6594374597737ce444b092da086d47e4a31b5

commit e5f6594374597737ce444b092da086d47e4a31b5
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2023-02-28 22:03:12 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-03-03 21:31:07 +0000

    security/liboqs: fix build on arm64
    
    Import an upstream commit fixing the CPU feature detection code.
    
    Obtained from:  https://github.com/open-quantum-safe/liboqs/pull/1267
    Approved by:    yuri (maintainer)
    Approved by:    flo (mentor)
    Differential Revision: https://reviews.freebsd.org/D38862
---
 security/liboqs/Makefile | 6 ++++--
 security/liboqs/distinfo | 4 +++-
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/security/liboqs/Makefile b/security/liboqs/Makefile
index 36771b930f5e..a0f317db57bd 100644
--- a/security/liboqs/Makefile
+++ b/security/liboqs/Makefile
@@ -1,7 +1,11 @@
 PORTNAME=	liboqs
 DISTVERSION=	0.7.2-20220607
+PORTREVISION=	1
 CATEGORIES=	security
 
+PATCH_SITES=	https://github.com/open-quantum-safe/liboqs/pull/1267/commits/
+PATCHFILES=	676c0f53fd7d5601636cf698f04131b832f9d672.diff:-p1
+
 MAINTAINER=	yuri@FreeBSD.org
 COMMENT=	C library for quantum-resistant cryptography
 WWW=		https://openquantumsafe.org/
@@ -9,8 +13,6 @@ WWW=		https://openquantumsafe.org/
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-BROKEN_aarch64=	build breaks: use of undeclared identifier 'ID_AA64ISAR0_SHA3_BASE', see https://github.com/open-quantum-safe/liboqs/issues/1266
-
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest4>0:devel/py-pytest4@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} \
 		bash:shells/bash
diff --git a/security/liboqs/distinfo b/security/liboqs/distinfo
index 48c231f5b661..924e5ac8ef28 100644
--- a/security/liboqs/distinfo
+++ b/security/liboqs/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1669872031
+TIMESTAMP = 1677621246
 SHA256 (open-quantum-safe-liboqs-0.7.2-20220607-38d3014dc2f74ec0f0c1a9e7e61aa4d2251adcc9_GH0.tar.gz) = 7faa627bc956f4c9c2b42cfc43324a07a48407ce1efd125bbf5d04f3711a7979
 SIZE (open-quantum-safe-liboqs-0.7.2-20220607-38d3014dc2f74ec0f0c1a9e7e61aa4d2251adcc9_GH0.tar.gz) = 8108855
+SHA256 (676c0f53fd7d5601636cf698f04131b832f9d672.diff) = 1f509284402cdf2d85335cd1bdbf25bfd7437e112e490a772f28ca5ed133d481
+SIZE (676c0f53fd7d5601636cf698f04131b832f9d672.diff) = 1392