Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Nov 2020 10:21:25 +0000 (UTC)
From:      Mikael Urankar <mikael@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r555460 - head/security/botan2
Message-ID:  <202011161021.0AGALPuZ038495@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mikael
Date: Mon Nov 16 10:21:25 2020
New Revision: 555460
URL: https://svnweb.freebsd.org/changeset/ports/555460

Log:
  security/botan2: fix build on arm
  
  processor_rng is only implemented on x86 and powerpc64
  
  PR:		251160
  Approved by:	Ralf van der Enden (maintainer)

Modified:
  head/security/botan2/Makefile
  head/security/botan2/pkg-plist

Modified: head/security/botan2/Makefile
==============================================================================
--- head/security/botan2/Makefile	Mon Nov 16 09:38:59 2020	(r555459)
+++ head/security/botan2/Makefile	Mon Nov 16 10:21:25 2020	(r555460)
@@ -75,6 +75,12 @@ PLIST_SUB+=	HAS_RDRAND_RNG=""
 PLIST_SUB+=	HAS_RDRAND_RNG="@comment "
 .endif
 
+.if ${ARCH} == i386 || ${ARCH} == amd64 || ${ARCH:Mpowerpc64*}
+PLIST_SUB+=	HAS_PROCESSOR_RNG=""
+.else
+PLIST_SUB+=	HAS_PROCESSOR_RNG="@comment "
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|^optimization_flags .*|optimization_flags "${CXXFLAGS}"|' \
 		${WRKSRC}/src/build-data/cc/clang.txt

Modified: head/security/botan2/pkg-plist
==============================================================================
--- head/security/botan2/pkg-plist	Mon Nov 16 09:38:59 2020	(r555459)
+++ head/security/botan2/pkg-plist	Mon Nov 16 10:21:25 2020	(r555460)
@@ -212,7 +212,7 @@ include/botan-2/botan/polyn_gf2m.h
 include/botan-2/botan/pow_mod.h
 include/botan-2/botan/prf_tls.h
 include/botan-2/botan/prf_x942.h
-include/botan-2/botan/processor_rng.h
+%%HAS_PROCESSOR_RNG%%include/botan-2/botan/processor_rng.h
 include/botan-2/botan/psk_db.h
 include/botan-2/botan/psk_db_sql.h
 include/botan-2/botan/pssr.h



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