Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Oct 2022 16:24:19 GMT
From:      Nuno Teixeira <eduardo@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: fae3c318a10e - 2022Q4 - security/libpki: Fix build on armv7 and arm64
Message-ID:  <202210151624.29FGOJ11067804@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2022Q4 has been updated by eduardo:

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

commit fae3c318a10e6fc9870fd1f2a41611ceafe11cc4
Author:     Robert Clausecker <fuz@fuz.su>
AuthorDate: 2022-10-15 16:17:47 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2022-10-15 16:22:00 +0000

    security/libpki: Fix build on armv7 and arm64
    
    - add case for armv7 to configure script
    - adapt aarch64 case to arm64
      https://github.com/openca/libpki/issues/57
    - while we are at it, hook up test suite
    - bump PORTREVISION
    
    PR:             266955
    MFH:            2022Q4
    (cherry picked from commit e5a5d9c7275237e116c0a5bf7a7c8436c0db061b)
---
 security/libpki/Makefile                 |  5 ++---
 security/libpki/files/patch-configure.ac | 13 +++++++++++++
 2 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/security/libpki/Makefile b/security/libpki/Makefile
index 61dada047acb..1b6ec397730e 100644
--- a/security/libpki/Makefile
+++ b/security/libpki/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	libpki
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.9.2
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	security
 
 PATCH_SITES=	https://github.com/openca/libpki/commit/
@@ -14,8 +14,6 @@ WWW=		https://www.openca.org/projects/libpki
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-NOT_FOR_ARCHS=	arm64
-
 USES=		autoreconf gnome libtool ssl
 USE_GITHUB=	yes
 GH_ACCOUNT=	openca
@@ -27,6 +25,7 @@ CONFIGURE_ARGS=	--disable-dependency-tracking \
 		--disable-iphone
 
 INSTALL_TARGET=	install-strip
+TEST_TARGET=	check
 
 OPTIONS_DEFINE=	DNS LDAP MYSQL PGSQL
 
diff --git a/security/libpki/files/patch-configure.ac b/security/libpki/files/patch-configure.ac
new file mode 100644
index 000000000000..ae82272a6772
--- /dev/null
+++ b/security/libpki/files/patch-configure.ac
@@ -0,0 +1,13 @@
+--- configure.ac.orig	2022-10-10 19:42:21 UTC
++++ configure.ac
+@@ -40,6 +40,9 @@
+     mybits="64"
+     mybits_install="64"
+         ;;
++  *arm)
++    mybits="32"
++    ;;
+-  *aarch64)
++  *aarch64|*arm64)
+     mybits="64"
+     mybits_install="64"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210151624.29FGOJ11067804>