Re: [Autoconf] Re: Dependency tracking not working on macOS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2022-10-28 08:49, Paul Smith wrote:
I don't know what this AS_TMPDIR() macro does; I can't find it in a
quick search.

https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.71/html_node/Initialization-Macros.html#index-AS_005fTMPDIR

Looks like your diagnosis is correct; thanks. I installed the attached patch into the Autoconf manual.
From 3cc9b414aa91f0bf83ae0b48bf4d8fe0aecf71dc Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@xxxxxxxxxxx>
Date: Fri, 28 Oct 2022 15:19:16 -0700
Subject: [PATCH] Warn about TMPDIR

* doc/autoconf.texi (Initialization Macros): Warn about
setting TMPDIR, following up on this Paul Smith remark:
https://lists.gnu.org/r/autoconf/2022-10/msg00024.html
---
 doc/autoconf.texi | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index b6d4f033..ed337fd6 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -14610,6 +14610,10 @@ leave the temporary directory behind.  Hence it is important to use a
 @var{prefix} that makes it easier to determine if a leftover temporary
 directory from an interrupted script is safe to delete.
 
+If you set @code{TMPDIR=$tmp} after invoking this macro, you should
+reset @code{TMPDIR} before deleting the created directory, to avoid
+breaking commands that rely on @code{$TMPDIR}.
+
 The use of the output variable @samp{$tmp} rather than something in the
 @samp{as_} namespace is historical; it has the unfortunate consequence
 that reusing this otherwise common name for any other purpose inside
-- 
2.37.3


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux