Commit graph

20 commits

Author SHA1 Message Date
nia
c84fb7cc75 check-portability: Skip more irrelevant file extensions 2021-03-03 10:19:59 +00:00
rillig
c0578aaa0a pkgtools/check-portability: update to 20.1.1
Changes since 20.1.0:

Fixed off-by-one error in diagnostic for test ==.
2020-05-23 22:18:10 +00:00
rillig
0fe9f6e0c8 pkgtools/check-portability: clean up code 2020-05-23 22:12:31 +00:00
rillig
8c83e680a9 pkgtools/check-portability: make test == an error
It had only been a warning before, due to a forgotten nerrors++. The
check in mk/check/check-portability.awk already treats this case as an
error.
2020-04-19 12:47:27 +00:00
rillig
703d1f721c pkgtools/check-portability: update to 20.1.0
Changes since 19.4.3:

The variable name RANDOM_FILE is ok since it doesn't have a special
meaning to some shell implementations. Seen in www/curl.
2020-04-19 12:05:14 +00:00
rillig
18059b34de pkgtools/check-portability: automatic test, refactoring 2020-03-21 15:02:20 +00:00
rillig
689d54f107 pkgtools/check-portability: fix function names 2020-03-14 09:47:09 +00:00
rillig
5568a175e9 pkgtools/check-portability: update to 19.4.3
Changes since 19.4.2:

Fixed a crash when a file started with an empty line.
2020-03-14 09:18:49 +00:00
rillig
6659486108 pkgtools/check-portability: elimitate common subexpression 2020-03-13 16:43:05 +00:00
rillig
c03a78cece pkgtools/check-portability: update to 19.4.2
Changes since 19.4.1:

Fixed an assertion error when reading binary file, reported by tnn via
private mail.
2020-03-13 16:20:34 +00:00
rillig
da15757bea pkgtools/check-portability: reduce dependencies
Since this is a very basic program, it should not depend on anything more
complicated, to avoid creating cyclic dependencies.
2020-03-13 08:17:18 +00:00
rillig
b9e43a0b48 pkgtools/check-portability: explain how to fix the errors 2020-03-12 19:45:06 +00:00
rillig
86eb11d3ba pkgtools/check-portability: make explanation for [[ more precise 2020-03-12 19:26:17 +00:00
rillig
0b6b0bb8b0 pkgtools/check-portability: minor stylistic corrections 2020-03-12 08:55:07 +00:00
rillig
509ef148b0 pkgtools/check-portability: update to 19.4.1
Changes since 19.4.0:

* Makefile.am and Makefile.in are checked even though they don't start
  with a #! line.
* Only shell programs with an interpreter that is clearly a POSIX shell
  are checked. Before, there was a blacklist of interpreters to be
  skipped.
* Lots of refactorings and code cleanups.
* Some additional test files.
2020-03-12 08:42:34 +00:00
rillig
e1f4ffd38d pkgtools/check-portability: fix build for partly-privileged mode 2020-03-12 00:05:36 +00:00
rillig
3c199d5660 pkgtools/check-portability: fix exclusion for test files 2020-03-11 23:50:05 +00:00
rillig
b8b6cbe5f5 pkgtools/check-portability: add checks from check-portability.awk
This makes those checks redundant as soon as check-portability is
installed. This is only a temporary solution until the test phase is
over.
2020-03-11 23:36:32 +00:00
rillig
6df1e80257 pkgtools/check-portability: improve local function names 2020-03-11 22:41:17 +00:00
rillig
0790285428 pkgtools/check-portability: check extracted files for portability issues
Checks whether the given files use features of programming languages that
are not portable to a wide range of platforms.

See mk/check/check-portability.mk.

https://mail-index.netbsd.org/tech-pkg/2020/03/10/msg022787.html

This new check is not active by default, and the package is not forced to
be installed. This will be done after getting some experience in
practical cases.

The code has been tested by extracting about 1.7 GB of pkgsrc distfiles
and scanning for lines containing both "[[" and "]]".
2020-03-11 19:15:03 +00:00