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 162586DE135E for ; Fri, 14 Jun 2019 04:19:43 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -2.698 X-Spam-Level: X-Spam-Status: No, score=-2.698 tagged_above=-999 required=5 tests=[AWL=-0.197, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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 QnUgWTgd13XZ for ; Fri, 14 Jun 2019 04:19:41 -0700 (PDT) Received: from ra.horus-it.com (ra.horus-it.com [94.130.34.199]) by arlo.cworth.org (Postfix) with ESMTPS id E809B6DE1326 for ; Fri, 14 Jun 2019 04:19:40 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by ra.horus-it.com (Postfix) with ESMTP id 3BDE948C1D1E; Fri, 14 Jun 2019 13:19:39 +0200 (CEST) X-Virus-Scanned: at horus-it.com From: Ralph Seichter DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monksofcool.net; s=k1; t=1560511174; bh=kVifyhwoieReM/QY902g717Y+WraruNWvOrhnMdeWt0=; h=From:To:Subject:In-Reply-To:References:Date:Message-ID: Content-Type; b=B1OlhuFukhl9lntRLabdPFz247YrKRNvEXh/FT8K5zGLliQ/acPZOyyonbdcMuhrE i45gcbZd6vPlfwhfYsqZwg1ao8L1CHT/qDNoPuL5rMxBX/z3HFOblSHwJCFsI6yo4G ai74TeLEjCPhweg+E/fYfDrHGrX1loWPEvYrMDBsBmGYY7H6ygV7yd0b0vF3+6nXtv j6BiARvM4xTl0XWsgdyplW0NJQBucx8uORSoIDpw5PQ3E4VakN5iXQsZeBHLY8Jrqe ZzhSBicPTFpNwwrGEEe3PmU7CZRVRMTIuJVwfCviR4ztzsKXQ4xy0N+eOipWswbMSc +WC96Bj05XxcQ== To: David Bremner , notmuch@notmuchmail.org Cc: Tomi Ollila Subject: Re: [PATCH] configure: fix mktemp call for macOS In-Reply-To: <87pnngbfjn.fsf@tethera.net> References: <87r27z63uk.fsf@ra.horus-it.com> <87pnngbfjn.fsf@tethera.net> Mail-Followup-To: David Bremner , notmuch@notmuchmail.org, Tomi Ollila Date: Fri, 14 Jun 2019 13:19:34 +0200 Message-ID: <871rzwza61.fsf@ra.horus-it.com> 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 11:19:43 -0000 * David Bremner: > TEMP_GPG=$(mktemp -d "${TMPDIR:-/tmp}/notmuch.XXXXXX") > > (borrowed from test/test-lib.sh). This avoids hardcoding the temporary > directory. I had the same thought at first, but I want to ensure that the path length does not cause trouble anymore. > uname -v Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 > echo $TMPDIR /var/folders/m_/w5lk3r_1495dhnl4l0s96pr00000gn/T/ That's my MacBook Pro with macOS 10.14.5 (Mojave). AFAIK, older versions can have longer names. Also, I am concerned with accumulating clutter. > grep clean_tmps_dirs /etc/defaults/periodic.conf daily_clean_tmps_dirs="/tmp" The /tmp directory will, with default settings, be cleaned periodically by the OS, while $TMPDIR (which is user-specific) will not. -Ralph