Sat May 23 22:18:11 2020 UTC ()
pkgtools/check-portability: update to 20.1.1

Changes since 20.1.0:

Fixed off-by-one error in diagnostic for test ==.


(rillig)
diff -r1.9 -r1.10 pkgsrc/pkgtools/check-portability/Makefile
diff -r1.15 -r1.16 pkgsrc/pkgtools/check-portability/files/check-portability.c
diff -r1.1 -r1.2 pkgsrc/pkgtools/check-portability/files/testdata/zzz_expected

cvs diff -r1.9 -r1.10 pkgsrc/pkgtools/check-portability/Makefile (expand / switch to context diff)
--- pkgsrc/pkgtools/check-portability/Makefile 2020/04/19 12:05:14 1.9
+++ pkgsrc/pkgtools/check-portability/Makefile 2020/05/23 22:18:10 1.10
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.9 2020/04/19 12:05:14 rillig Exp $
+# $NetBSD: Makefile,v 1.10 2020/05/23 22:18:10 rillig Exp $
 
-PKGNAME=	check-portability-20.1.0
+PKGNAME=	check-portability-20.1.1
 CATEGORIES=	pkgtools
 DISTFILES=	# none
 

cvs diff -r1.15 -r1.16 pkgsrc/pkgtools/check-portability/files/check-portability.c (expand / switch to context diff)
--- pkgsrc/pkgtools/check-portability/files/check-portability.c 2020/05/23 22:12:31 1.15
+++ pkgsrc/pkgtools/check-portability/files/check-portability.c 2020/05/23 22:18:11 1.16
@@ -1,4 +1,4 @@
-/* $NetBSD: check-portability.c,v 1.15 2020/05/23 22:12:31 rillig Exp $ */
+/* $NetBSD: check-portability.c,v 1.16 2020/05/23 22:18:11 rillig Exp $ */
 
 /*
  Copyright (c) 2020 Roland Illig
@@ -401,7 +401,7 @@
 {
 	printf(
 	    "%s:%zu:%zu: found test ... == ...: %s\n",
-	    cstr_charptr(filename), lineno, column, cstr_charptr(line));
+	    cstr_charptr(filename), lineno, column + 1, cstr_charptr(line));
 	nerrors++;
 	explain(
 	    W_test_eqeq,

cvs diff -r1.1 -r1.2 pkgsrc/pkgtools/check-portability/files/testdata/zzz_expected (expand / switch to context diff)
--- pkgsrc/pkgtools/check-portability/files/testdata/zzz_expected 2020/03/21 15:02:20 1.1
+++ pkgsrc/pkgtools/check-portability/files/testdata/zzz_expected 2020/05/23 22:18:11 1.2
@@ -23,7 +23,7 @@
 files/testdata/double-brackets:8:4: double brackets: if [[ test ]]; then
 files/testdata/double-brackets:10:1: double brackets: [[ test ]]
 files/testdata/double-brackets:12:1: double brackets: [[ test ]] || echo
-files/testdata/env-sh:8:4: found test ... == ...: [ a == b ]
+files/testdata/env-sh:8:5: found test ... == ...: [ a == b ]
 
 	The "test" command, as well as the "[" command, are not required to know
 	the "==" operator. Only a few implementations like bash and some
@@ -40,6 +40,6 @@
 	not be used in shell programs that are meant to be portable across a
 	large number of POSIX-like systems.
 
-files/testdata/test-eqeq:7:7: found test ... == ...: test a == b	# bad
+files/testdata/test-eqeq:7:8: found test ... == ...: test a == b	# bad
-files/testdata/test-eqeq:10:4: found test ... == ...: [ a == b ]	# bad
+files/testdata/test-eqeq:10:5: found test ... == ...: [ a == b ]	# bad
-files/testdata/test-eqeq:14:4: found test ... == ...: [ a == b -a c == d ]
+files/testdata/test-eqeq:14:5: found test ... == ...: [ a == b -a c == d ]