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/3967c12449fe
branches:  trunk
changeset: 396670:3967c12449fe
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 b70f1f30a1f6 -r 3967c12449fe 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