pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/tools mk/tools: Ensure GNU grep is used when reques...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1544f4cd911e
branches:  trunk
changeset: 334830:1544f4cd911e
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Jun 06 11:54:33 2019 +0000

description:
mk/tools: Ensure GNU grep is used when requested.

Previously a "grep" tool was created, but GREP still pointed at the platform
grep, breaking any package that used the environment variables rather than
PATH when the native platform grep does not have GNU features.

diffstat:

 mk/tools/replace.mk |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 7a3a0414e279 -r 1544f4cd911e mk/tools/replace.mk
--- a/mk/tools/replace.mk       Thu Jun 06 11:44:52 2019 +0000
+++ b/mk/tools/replace.mk       Thu Jun 06 11:54:33 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.289 2019/04/03 18:37:24 rillig Exp $
+# $NetBSD: replace.mk,v 1.290 2019/06/06 11:54:33 jperkin Exp $
 #
 # Copyright (c) 2005 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -982,6 +982,7 @@
 TOOLS_DEPENDS.ggrep?=  grep>=2.5.1:../../textproc/grep
 .    for _t_ in ${_TOOLS.grep}
 TOOLS_CREATE+=         g${_t_}
+TOOLS_PATH.${_t_}=     ${LOCALBASE}/bin/g${_t_}
 TOOLS_PATH.g${_t_}=    ${LOCALBASE}/bin/g${_t_}
 TOOLS_ALIASES.g${_t_}= ${_t_}
 .    endfor



Home | Main Index | Thread Index | Old Index