pkgsrc-Changes archive

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

CVS commit: pkgsrc/regress/tools/files



Module Name:    pkgsrc
Committed By:   rillig
Date:           Wed Dec  5 19:01:40 UTC 2018

Modified Files:
        pkgsrc/regress/tools/files: sh-test.sh

Log Message:
regress/tools: clarify that only the NetBSD 7 shell exhibits this bug

The test has been changed again to fail since making the test pass would
mean this bug could later silently show up inside a large GNU configure
script where it would be impossible to find. Therefore, when using pkgsrc
on NetBSD 7, it is better to switch to another shell for doing pkgsrc
work.

The comment has been updated to be more accurate.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/regress/tools/files/sh-test.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/regress/tools/files/sh-test.sh
diff -u pkgsrc/regress/tools/files/sh-test.sh:1.2 pkgsrc/regress/tools/files/sh-test.sh:1.3
--- pkgsrc/regress/tools/files/sh-test.sh:1.2   Fri Nov 30 19:55:26 2018
+++ pkgsrc/regress/tools/files/sh-test.sh       Wed Dec  5 19:01:40 2018
@@ -1,5 +1,5 @@
 #! /bin/sh
-# $NetBSD: sh-test.sh,v 1.2 2018/11/30 19:55:26 rillig Exp $
+# $NetBSD: sh-test.sh,v 1.3 2018/12/05 19:01:40 rillig Exp $
 #
 
 set -e
@@ -37,8 +37,8 @@ sh_assert_equals() {
 nl="
 "
 
-# This test fails with /bin/sh from 2018-11-08, see bin/53754.
-if [ "`uname -s`" != "NetBSD" ]; then
+# If this test fails because the result is "#define bindir \"", the
+# tested shell may be from NetBSD 7.0, which is known to have this bug.
+# Since NetBSD 8, this bug is fixed. See https://gnats.netbsd.org/43469.
 line="#define bindir \"/usr/bin\" /* bar */"
 sh_assert_equals "removing C comments" "#define bindir \"/usr/bin\" " "${line%%/\**}"
-fi



Home | Main Index | Thread Index | Old Index