pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/mbedtls mbedtls: avoid implementation-defined...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/154106869860
branches:  trunk
changeset: 441130:154106869860
user:      mcf <mcf%pkgsrc.org@localhost>
date:      Tue Oct 27 00:06:59 2020 +0000

description:
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.

diffstat:

 security/mbedtls/Makefile |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 263c5cb3b863 -r 154106869860 security/mbedtls/Makefile
--- a/security/mbedtls/Makefile Mon Oct 26 22:46:04 2020 +0000
+++ b/security/mbedtls/Makefile Tue Oct 27 00:06:59 2020 +0000
@@ -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 @@
 
 # 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 \



Home | Main Index | Thread Index | Old Index