diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2020-03-10 13:12:09 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2020-03-10 13:12:09 +0000 |
commit | 56e004605c9953b61b89abc16a8ad9182b5f8b10 (patch) | |
tree | c0b17bbafe63c8b6d15b8a6594bac91cfa001cec | |
parent | d2a6160bd4e9ca6c9d8a4e99cdfc27a8f6ae18f7 (diff) | |
download | mpfr-56e004605c9953b61b89abc16a8ad9182b5f8b10.tar.gz |
[tools/mpfrlint] Workaround to Debian bug 953369 in libpython3.8-minimal
for the codespell invocation.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13759 280ebfd0-de03-0410-8827-d642c229c3f4
-rwxr-xr-x | tools/mpfrlint | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/mpfrlint b/tools/mpfrlint index cffffc2aa..cef9a8781 100755 --- a/tools/mpfrlint +++ b/tools/mpfrlint @@ -506,9 +506,16 @@ EOF if which codespell > /dev/null 2> /dev/null; then doc=(FAQ.html Makefile.am README.dev add-with-carry.c check-typography \ faq.xsl fdl.texi mini-gmp mpfr.texi sum.txt update-faq) - err-if-output "codespell" codespell ${term:+--enable-colors} \ + cscmd=(codespell ${term:+--enable-colors} \ -q3 -I codespell.ignore -x codespell.exclude \ - AUTHORS BUGS INSTALL NEWS README TODO doc/${^doc} examples $srctests + AUTHORS BUGS INSTALL NEWS README TODO doc/${^doc} examples $srctests) + if test -z "$(codespell /dev/null 2>&1 > /dev/null)"; then + err-if-output "codespell" $cscmd + else + # Workaround to Debian bug 953369 in libpython3.8-minimal + $cscmd |& err-if-output -t "codespell" grep -Ev \ + "RuntimeWarning: line buffering|file = builtins.open" + fi else echo "Warning! codespell is not installed. Cannot check spelling." >&2 fi |