pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/mk/tools
Module Name: pkgsrc
Committed By: jperkin
Date: Wed Nov 16 12:12:46 UTC 2022
Modified Files:
pkgsrc/mk/tools: replace.mk
Log Message:
mk: Avoid egrep/fgrep wrappers when using GNU grep.
A recent GNU grep release has started to add obnoxious warnings when calling
egrep/fgrep, so use grep with -E or -F flags respectively to avoid them.
To generate a diff of this commit:
cvs rdiff -u -r1.295 -r1.296 pkgsrc/mk/tools/replace.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/mk/tools/replace.mk
diff -u pkgsrc/mk/tools/replace.mk:1.295 pkgsrc/mk/tools/replace.mk:1.296
--- pkgsrc/mk/tools/replace.mk:1.295 Sun Jul 24 14:47:00 2022
+++ pkgsrc/mk/tools/replace.mk Wed Nov 16 12:12:46 2022
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.295 2022/07/24 14:47:00 wiz Exp $
+# $NetBSD: replace.mk,v 1.296 2022/11/16 12:12:46 jperkin Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -998,10 +998,13 @@ MAKEFLAGS+= TOOLS_IGNORE.ggrep=
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_}
+TOOLS_PATH.${_t_}= ${LOCALBASE}/bin/ggrep
+TOOLS_PATH.g${_t_}= ${LOCALBASE}/bin/ggrep
. endfor
+TOOLS_ARGS.egrep= -E
+TOOLS_ARGS.gegrep= -E
+TOOLS_ARGS.fgrep= -F
+TOOLS_ARGS.gfgrep= -F
. endif
.else
. for _t_ in ${_TOOLS.grep}
Home |
Main Index |
Thread Index |
Old Index