Package: ca-certificates Version: 20211016 First, I fully understand that ca-certificates wasn't design to work with non-GNU mktemp in mind.
Current update-ca-certificates employs --tmpdir, which is only available in GNU's mktemp(1). However, it looks like it's not too hard to make it work with BusyBox and FreeBSD mktemp by emulating GNUism. Attached patch on top of 20211016 removes the need of GNU-ism: Authored by me: https://github.com/void-linux/void-packages/commit/451e5cdd781fa068d6e89481e20ea375feb4bf95 ----- 8< ----- diff --git a/sbin/update-ca-certificates b/sbin/update-ca-certificates index 9a876d7..bece29b 100755 --- a/sbin/update-ca-certificates +++ b/sbin/update-ca-certificates @@ -81,8 +81,8 @@ trap cleanup 0 # Helper files. (Some of them are not simple arrays because we spawn # subshells later on.) TEMPBUNDLE="${ETCCERTSDIR}/${CERTBUNDLE}.new" -ADDED="$(mktemp --tmpdir "ca-certificates.tmp.XXXXXX")" -REMOVED="$(mktemp --tmpdir "ca-certificates.tmp.XXXXXX")" +ADDED="$(mktemp -p ${TMPDIR:-/tmp} "ca-certificates.tmp.XXXXXX")" +REMOVED="$(mktemp -p ${TMPDIR:-/tmp} "ca-certificates.tmp.XXXXXX")" # Adds a certificate to the list of trusted ones. This includes a symlink # in /etc/ssl/certs to the certificate file and its inclusion into the ----- >8 ---- -- Danh

