check_sec.sh doesn't have permissions to create the tempfiles, so
specify --tmpdir to create them under /tmp.

The manual.xml doesn't exist inside the dist build, so just add an
existence -f check around it.
---
 check_sec.sh    | 2 +-
 doc/Makefile.am | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/check_sec.sh b/check_sec.sh
index e9c0262d..af8d0f87 100755
--- a/check_sec.sh
+++ b/check_sec.sh
@@ -4,7 +4,7 @@
 # grep for some things which may look like security problems.
 #
 
-TMPFILE=$(mktemp check_sec.tmp.XXXXXX) || exit 1
+TMPFILE=$(mktemp --tmpdir check_sec.tmp.XXXXXX) || exit 1
 
 RV=0;
 
diff --git a/doc/Makefile.am b/doc/Makefile.am
index b9ac5b87..b63c4d78 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -207,7 +207,9 @@ mutt.info: mutt.texi
 check-local: validate
 
 validate: stamp-doc-xml
-       xmllint --noout --noblanks --postvalid manual.xml
+       if test -f ./manual.xml; then \
+         xmllint --noout --noblanks --postvalid manual.xml; \
+       fi
 
 spellcheck:
        -aspell -d american --mode=sgml  --encoding=utf-8 -p $(srcdir)/mutt.pwl 
check manual.xml.head
-- 
2.53.0

Reply via email to