pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/repro Look for ar(1) in $_ORIG_PATH with PKGSRC_MKR...
details: https://anonhg.NetBSD.org/pkgsrc/rev/dc2d0a4147c2
branches: trunk
changeset: 371445:dc2d0a4147c2
user: khorben <khorben%pkgsrc.org@localhost>
date: Sun Nov 12 16:41:40 2017 +0000
description:
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:
mk/repro/ar | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r ac53743b34ca -r dc2d0a4147c2 mk/repro/ar
--- a/mk/repro/ar Sun Nov 12 16:28:01 2017 +0000
+++ b/mk/repro/ar Sun Nov 12 16:41:40 2017 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index