Re: [PATCH] configure: fix mktemp call for macOS

Subject: Re: [PATCH] configure: fix mktemp call for macOS

Date: Fri, 14 Jun 2019 07:57:16 -0300

To: Ralph Seichter, notmuch@notmuchmail.org

Cc: Tomi Ollila

From: David Bremner


Ralph Seichter <abbot@monksofcool.net> writes:

> The mktemp call in configure is incompatible with /usr/bin/mktemp as
> shipped with macOS, where it fails due to a missing parameter. I added
> the missing template, and the call is now working with both Apple's
> and GNU coreutils' mktemp.
>

I'm hoping Tomi will comment, but I wonder if we should do something
like

TEMP_GPG=$(mktemp -d "${TMPDIR:-/tmp}/notmuch.XXXXXX")

(borrowed from test/test-lib.sh). This avoids hardcoding the temporary
directory.
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: