summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorkhorben <khorben@pkgsrc.org>2017-11-12 16:41:40 +0000
committerkhorben <khorben@pkgsrc.org>2017-11-12 16:41:40 +0000
commit4a26aef3d9d7f721596125967f9c81527411d7ee (patch)
tree2733260b1662ab798957ee008c192672f61d26e7 /mk
parent249a6ab33c549e16f14f60bb374252118ae82ba3 (diff)
downloadpkgsrc-4a26aef3d9d7f721596125967f9c81527411d7ee.tar.gz
Look for ar(1) in $_ORIG_PATH with PKGSRC_MKREPRO
This no longer hard-codes the path to ar(1) as /usr/bin/ar. It is not possible to use the original value of $TOOLS_PATH.ar as it is usually not set.
Diffstat (limited to 'mk')
-rwxr-xr-xmk/repro/ar6
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/repro/ar b/mk/repro/ar
index 69878dca680..c25e71bdfaa 100755
--- a/mk/repro/ar
+++ b/mk/repro/ar
@@ -1,11 +1,13 @@
#!/bin/sh
+PATH="$_PATH_ORIG"
+
if [ $# -ge 2 ]; then
args="$1"
mod="$2"
shift 2
- exec /usr/bin/ar "$mod$args" "$@"
+ exec ar "$mod$args" "$@"
else
- exec /usr/bin/ar "$@"
+ exec ar "$@"
fi