pkgsrc-Changes archive

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

CVS commit: pkgsrc/security/mbedtls



Module Name:    pkgsrc
Committed By:   mcf
Date:           Tue Oct 27 00:06:59 UTC 2020

Modified Files:
        pkgsrc/security/mbedtls: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 pkgsrc/security/mbedtls/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/security/mbedtls/Makefile
diff -u pkgsrc/security/mbedtls/Makefile:1.19 pkgsrc/security/mbedtls/Makefile:1.20
--- pkgsrc/security/mbedtls/Makefile:1.19       Thu Sep  3 20:30:56 2020
+++ pkgsrc/security/mbedtls/Makefile    Tue Oct 27 00:06:59 2020
@@ -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 \



Home | Main Index | Thread Index | Old Index