Re: [PATCH 4/5] Fix 'make distcheck' issues.

"Kevin J. McCarthy" <[email protected]>
Newsgroups gmane.mail.mutt.devel
Message-ID <ad8xI8EkAo-6C2vN@qinghai>
On Tue, Apr 14, 2026 at 02:51:05PM +0800, Kevin J. McCarthy wrote:
>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.

sr.ht has been DoS'ed for the last week or so, and their builds haven't
been working (for me) until just today.

I discovered OpenBSD doesn't like the --tmpdir argument but does accept
"-p dir" so I've amended this commit as below.

>---
> 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

Changed to:
>+TMPFILE=$(mktemp -p /tmp check_sec.tmp.XXXXXX) || exit 1

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEiXWpszqjeRA4XFMIre92hIAxa9oFAmnfMSMACgkQre92hIAx
a9q+/RAAlohcDtJ/R+YPTcew1TAlh42FAhOMpKGsg52gq4jB/CoyugrYLfmY5THm
95BeP3AZDwXEUH2CV5DAYpLBSFefI49EpjEtzjD04VvJqm3wFR0jJ6+q2EzqBePE
PafwwCeNKqu4n6P5fyMGkNVw/+M/a7D0y7Kh6nxULux9GpsuK/xm8Q/CMohaJS2g
eTY0W0a+vf9h5oZR/z9OmsvD5xRdUbsA66TigIKwm0u/rGxAN0+do99YEuzwd0dJ
YdAlkqNMWwtwN3CIWuI7QRVwGHjyfO8EtrtLDUq/V2gPr1fpvxd6TxlJMRthOcpf
PttzknVLtCWEzIrvJrsTVnc5AOwKltb+TdIghXmh8TDul7MqroW1r+gAxqDyxhQj
4Om1xnrk1+qZKKwn32nRywyP60d6OCPQpJsOumaMUeRnU1n14AI4cjgHM0nyyvdT
sN+kkKl+6l9JQtT5hSMVJliGYN2RIaSxmelibx7GbRmxa+rS8ySvcoFj/xvk7PEw
GEDhm+2rtN5G8gTur0iVer3JLSiMcyeZsznbLd8N+pwE7dXtvJUqmBLuJBDgPdDw
3Qi0ETx9UGYRPxxFxhvjyEkHO4qwP2JzXNMMVER9wvs0aB4lxkwnSyyUeEclDK9g
fY2B8logPgBdqHG9bANTZlO0O70qhL4DIo4mXVEbhHHpmaSQZxo=
=9C6l
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.