Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make/unit-tests tests/make: be more specific about t...
details: https://anonhg.NetBSD.org/src/rev/b3b4b899bdaa
branches: trunk
changeset: 369966:b3b4b899bdaa
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Sep 10 16:20:04 2022 +0000
description:
tests/make: be more specific about the egrep compatibility
diffstat:
usr.bin/make/unit-tests/Makefile | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (25 lines):
diff -r 62e276487e64 -r b3b4b899bdaa usr.bin/make/unit-tests/Makefile
--- a/usr.bin/make/unit-tests/Makefile Sat Sep 10 16:03:43 2022 +0000
+++ b/usr.bin/make/unit-tests/Makefile Sat Sep 10 16:20:04 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.325 2022/09/09 18:36:15 sjg Exp $
+# $NetBSD: Makefile,v 1.326 2022/09/10 16:20:04 rillig Exp $
#
# Unit tests for make(1)
#
@@ -673,11 +673,13 @@
_!= mkdir -p ${TMPDIR}
.endif
-# Some systems have deprecated egrep for grep -E
-# but not everyone supports that
+# Some Linux systems such as Fedora have deprecated egrep in favor of grep -E.
.if ${.MAKE.OS:NLinux} == ""
EGREP= grep -E
.endif
+# Keep the classical definition for all other systems. Just as the bmake code
+# is kept compatible with C90, the tests are kept compatible with systems that
+# are several decades old and don't follow modern POSIX standards.
EGREP?= egrep
MAKE_TEST_ENV= EGREP="${EGREP}"
Home |
Main Index |
Thread Index |
Old Index