From e0c1da601e30c849df00448faf5b1babc6e05f8c Mon Sep 17 00:00:00 2001 From: mcf Date: Tue, 27 Oct 2020 00:06:59 +0000 Subject: mbedtls: avoid implementation-defined find(1) usage It is implementation-defined whether find(1) replaces {} in arguments that are not exactly equal to {}, so use a for-loop instead. --- security/mbedtls/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'security/mbedtls') diff --git a/security/mbedtls/Makefile b/security/mbedtls/Makefile index 579dd23d96c..5339887fc40 100644 --- a/security/mbedtls/Makefile +++ b/security/mbedtls/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.19 2020/09/03 20:30:56 nia Exp $ +# $NetBSD: Makefile,v 1.20 2020/10/27 00:06:59 mcf Exp $ DISTNAME= mbedtls-2.24.0 CATEGORIES= security @@ -38,8 +38,9 @@ PYTHON_VERSIONS_INCOMPATIBLE= 27 # Prefix bundled programs so they don't conflict with other packages post-install: - cd ${DESTDIR}${PREFIX}/bin && ${FIND} * -type f -exec \ - ${MV} '{}' mbedtls_'{}' ';' + cd ${DESTDIR}${PREFIX}/bin && for f in *; do \ + ${MV} "$$f" "mbedtls_$$f"; \ + done do-test: LD_LIBRARY_PATH=${WRKSRC}/library \ -- cgit v1.2.3