From: Bruno Haible Date: Tue, 7 Feb 2023 12:30:46 +0000 (+0100) Subject: check-copyright: Don't fail because of the 'glob' module. X-Git-Tag: v1.0~1702 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=7e328eee3cfddf3a3907965148e0d902295a0c8e;p=gnulib.git check-copyright: Don't fail because of the 'glob' module. Reported by Bjarni Ingi Gislason in . * check-copyright: Filter out the files from the 'glob' module. --- diff --git a/ChangeLog b/ChangeLog index f595810b68..9ac80d4e58 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2023-02-07 Bruno Haible + + check-copyright: Don't fail because of the 'glob' module. + Reported by Bjarni Ingi Gislason in + . + * check-copyright: Filter out the files from the 'glob' module. + 2023-02-07 Bruno Haible check-copyright: Make output prettier. diff --git a/check-copyright b/check-copyright index ee173c2595..bfd42fe1f2 100755 --- a/check-copyright +++ b/check-copyright @@ -170,12 +170,20 @@ for file in $candidates; do fi done if test "$file_license" != "$weakest_license"; then - if test $error = 0; then - echo "Module License File License File name" - echo "================= ================= =====================================" + # The 'glob' module is a special case. It contains LGPLv2+ code (shared with + # glibc) but at the same time also has a dependency to a module under GPL + # (namely, 'fstatat'). This is not a mistake. + if test "$weakest_license" = GPL \ + && case "$file" in lib/glob*) true ;; *) false ;; esac; then + : + else + if test $error = 0; then + echo "Module License File License File name" + echo "================= ================= =====================================" + fi + printf '%-17s %-17s %s\n' "$weakest_license" "$file_license" "$file" + error=1 fi - printf '%-17s %-17s %s\n' "$weakest_license" "$file_license" "$file" - error=1 fi done exit $error