diff options
author | rillig <rillig@pkgsrc.org> | 2020-03-12 18:54:59 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2020-03-12 18:54:59 +0000 |
commit | ad49c6cdf66bcb2ce31707b5e3a0b0aa735a00e5 (patch) | |
tree | cd800e1fd930368efcec352ba7c66511df7b6118 /mk/check | |
parent | ab1dc2f7b5dc19cacda9d6ca14712f4469bce815 (diff) | |
download | pkgsrc-ad49c6cdf66bcb2ce31707b5e3a0b0aa735a00e5.tar.gz |
mk/check/check-portability: don't check Makefile.am
These files typically come with a corresponding Makefile.in file, and the
same portability issue is in the .in file as well. For building the
package it is only necessary to patch the .in file. Patching the .am file
as well would mean additional work for the pkgsrc package maintainer.
Nevertheless, such fixes should be reported upstream. The upstream
maintainer is more interested in a patch for Makefile.am, since the .in
file is only generated.
Suggested by wiz via private mail.
Diffstat (limited to 'mk/check')
-rw-r--r-- | mk/check/check-portability.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mk/check/check-portability.sh b/mk/check/check-portability.sh index 08c61153f20..9cabfc1a05d 100644 --- a/mk/check/check-portability.sh +++ b/mk/check/check-portability.sh @@ -1,4 +1,4 @@ -# $NetBSD: check-portability.sh,v 1.15 2020/03/12 18:40:06 rillig Exp $ +# $NetBSD: check-portability.sh,v 1.16 2020/03/12 18:54:59 rillig Exp $ # # This program checks all files in the current directory and any # subdirectories for portability issues that are likely to result in @@ -47,18 +47,21 @@ find ./* -type f -print 2>/dev/null \ [ $skip = no ] || continue skip_shebang_test=no - ext="${fname##*.}" + base="${fname##*/}" + ext="${base##*.}" case "$ext" in # A few file extensions cannot be skipped since the Makefiles # will be generated from these, in the configure stage, which # is run later. - (am|in) skip_shebang_test=yes;; + (in) skip_shebang_test=yes;; + # echo */*/PLIST | xargs cat | sed s,'.*\.',, | sort | uniq -c | sort -nr | sed 40q (png|html|svg|py|h|mo|php|js|xml|rb|go|txt|3|hpp) continue ;; (tfm|gif|dtd|properties|json|ogg|gz|test|result|xpm|po) continue ;; (page|1|kicad_mod|hxx|jpg|css|el|htm|a|docbook|vf|inc) continue ;; + # other source files: - (c|C|cc|cxx|f|go|pl|py|in|ac|m4) continue ;; + (c|C|cc|cxx|f|go|pl|py|ac|m4) continue ;; esac if [ $skip_shebang_test = yes ]; then |