From 64fc13ff1d9722b7fe87f0413a6d045b483b37f0 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Wed, 15 Jun 2022 12:10:44 -0700 Subject: [PATCH] setup.sh: use -exec rather than -execdir Busybox's `find` does not support `-execdir`, so let's uses `-exec` instead, in the spirit of requiring the minimum features needed for the task. --- pkgs/stdenv/generic/setup.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh index 40ffd9344e34d..9ff1995eded12 100644 --- a/pkgs/stdenv/generic/setup.sh +++ b/pkgs/stdenv/generic/setup.sh @@ -1031,10 +1031,10 @@ configurePhase() { -executable \ -type f \ -name configure \ - -execdir grep -l 'GNU Libtool is free software; you can redistribute it and/or modify' {} \; \ - -execdir touch -r {} "$CONFIGURE_MTIME_REFERENCE" \; \ - -execdir sed -i s_/usr/bin/file_file_g {} \; \ - -execdir touch -r "$CONFIGURE_MTIME_REFERENCE" {} \; + -exec grep -l 'GNU Libtool is free software; you can redistribute it and/or modify' {} \; \ + -exec touch -r {} "$CONFIGURE_MTIME_REFERENCE" \; \ + -exec sed -i s_/usr/bin/file_file_g {} \; \ + -exec touch -r "$CONFIGURE_MTIME_REFERENCE" {} \; rm -f "$CONFIGURE_MTIME_REFERENCE" fi