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 0F8CB6DE114E for ; Fri, 14 Jun 2019 11:11:52 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.417 X-Spam-Level: X-Spam-Status: No, score=0.417 tagged_above=-999 required=5 tests=[AWL=-0.235, SPF_NEUTRAL=0.652] 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 8cE6XkMZnDl5 for ; Fri, 14 Jun 2019 11:11:51 -0700 (PDT) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by arlo.cworth.org (Postfix) with ESMTP id 52C886DE1095 for ; Fri, 14 Jun 2019 11:11:51 -0700 (PDT) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id 54A7E100084; Fri, 14 Jun 2019 21:11:49 +0300 (EEST) From: Tomi Ollila To: Ralph Seichter , David Bremner , notmuch@notmuchmail.org Subject: Re: [PATCH] configure: fix mktemp call for macOS In-Reply-To: References: <87r27z63uk.fsf@ra.horus-it.com> <87pnngbfjn.fsf@tethera.net> <871rzwza61.fsf@ra.horus-it.com> User-Agent: Notmuch/0.28.3+84~g41389bb (https://notmuchmail.org) Emacs/25.2.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ 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 18:11:52 -0000 On Fri, Jun 14 2019, Tomi Ollila wrote: > On Fri, Jun 14 2019, Ralph Seichter wrote: > >> * 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. > > Yes. $TMPDIR could be problematic if it makes the full (unix domain > socket?) path be too long. > > SO, exact version Ralph made looks good to me. Revert that. mktemp(1) uses $TMPDIR if defined (and just tested) > > Tomi > > >> >> > 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 >> _______________________________________________ >> notmuch mailing list >> notmuch@notmuchmail.org >> https://notmuchmail.org/mailman/listinfo/notmuch