From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 741686DE12C0 for ; Fri, 14 Jun 2019 03:57:08 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.05 X-Spam-Level: X-Spam-Status: No, score=-0.05 tagged_above=-999 required=5 tests=[AWL=-0.049, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B-IAEkkK2_jD for ; Fri, 14 Jun 2019 03:57:07 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 5BC816DE12B7 for ; Fri, 14 Jun 2019 03:57:07 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1hbjtJ-0003lB-E7; Fri, 14 Jun 2019 06:57:05 -0400 Received: (nullmailer pid 29796 invoked by uid 1000); Fri, 14 Jun 2019 10:57:16 -0000 From: David Bremner To: Ralph Seichter , notmuch@notmuchmail.org Cc: Tomi Ollila Subject: Re: [PATCH] configure: fix mktemp call for macOS In-Reply-To: <87r27z63uk.fsf@ra.horus-it.com> References: <87r27z63uk.fsf@ra.horus-it.com> X-List-To: notmuch Date: Fri, 14 Jun 2019 07:57:16 -0300 Message-ID: <87pnngbfjn.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jun 2019 10:57:08 -0000 Ralph Seichter 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.