GNU bug report logs - #76622
[PATCH] tests: force Autoconf site defaults to `/dev/null'

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: automake-patches; Reported by: Richard Hansen <rhansen@HIDDEN>; Keywords: patch; Done: Karl Berry <karl@HIDDEN>; Maintainer for automake-patches is automake-patches@HIDDEN.

Message received at 76622-done <at> debbugs.gnu.org:


Received: (at 76622-done) by debbugs.gnu.org; 9 Apr 2025 17:00:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 09 13:00:30 2025
Received: from localhost ([127.0.0.1]:41447 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u2Yms-0001jP-2k
	for submit <at> debbugs.gnu.org; Wed, 09 Apr 2025 13:00:30 -0400
Received: from frenzy.freefriends.org ([198.99.81.75]:58140
 helo=freefriends.org)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <karl@HIDDEN>)
 id 1u2Ymp-0001ZN-2L; Wed, 09 Apr 2025 13:00:28 -0400
X-Envelope-From: karl@HIDDEN
Received: from freefriends.org (localhost [127.0.0.1])
 by freefriends.org (8.16.1/8.16.1) with ESMTPS id 539H0P5r423930
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
 Wed, 9 Apr 2025 11:00:25 -0600
Received: (from apache@localhost)
 by freefriends.org (8.16.1/8.14.7/Submit) id 539H0PQY423929;
 Wed, 9 Apr 2025 11:00:25 -0600
Date: Wed, 9 Apr 2025 11:00:25 -0600
Message-Id: <202504091700.539H0PQY423929@HIDDEN>
From: Karl Berry <karl@HIDDEN>
To: rhansen@HIDDEN
Subject: Re: [bug#76622] [PATCH] tests: force Autoconf site defaults to
 `/dev/null'
In-Reply-To: <20250228005416.521870-1-rhansen@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 76622-done
Cc: 76622 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi Richard and all,

    +# Ensure a consistent test environment by ignoring the system's Autoconf
    +# `configure` site defaults.
    +CONFIG_SITE=/dev/null; export CONFIG_SITE

I finally committed this change. Thanks for writing it up.

Hopefully Nelson (Beebe, who reported numerous failures with the 1.17.90
pretest) will have better luck with the next pretest. We'll see. 

Meanwhile, closing this one. --thanks, karl.

-----------------------------------------------------------------------------
test: force Autoconf config.site to /dev/null.

From https://bugs.gnu.org/76622 (automake-patches).

* t/ax/test-defs.in: Set `CONFIG_SITE' to `/dev/null' to avoid
the local system's Autoconf site defaults from breaking the test
environment. Original report from Nelson Beebe, 26 Feb 2025.
* NEWS: mention this.
diff --git a/NEWS b/NEWS
index f46191a3c..62bfb36fd 100644
--- a/NEWS
+++ b/NEWS
@@ -2,7 +2,7 @@ For planned incompatibilities in a possible future Automake 2.0 release,
 please see NEWS-future and start following the advice there now.

 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-New in 1.17.90:
+New in 1.17.91:

 * New features added

@@ -38,16 +38,21 @@ New in 1.17.90:
     intended, i.e., omits the dependency on $(BUILT_SOURCES) for the
     distdir target. (bug#69908)

-  - The compile script is more robust to Windows configurations;
-    specifically, avoiding double-path translation on MSYS. (bug#75939)
-
   - Only warn about install.sh being found, instead of it being a fatal
     error. (bug#19964)

+  - The compile script is more robust to Windows configurations;
+    specifically, avoiding double-path translation on MSYS. (bug#75939)
+
+  - The test infrastructure sets the CONFIG_SITE environment variable to
+    /dev/null, to avoid the local system's Autoconf site defaults from
+    breaking the test environment. (bug#76622)
+    
   - AM_SILENT_RULES once again always ends with a newline. (bug#72267)

-  - AM_SANITY_CHECK outputs "no" on failure, so that a complete line is
-  printed to stdout before the error message is written to stderr. (bug#76448)
+  - AM_SANITY_CHECK now outputs "no" on failure, so that a complete line
+    is written to stdout before the error message is written to stderr.
+    (bug#76448)

 * Miscellaneous changes

diff --git a/t/ax/test-defs.in b/t/ax/test-defs.in
index 755445494..9aed4ae10 100644
--- a/t/ax/test-defs.in
+++ b/t/ax/test-defs.in
@@ -22,6 +22,10 @@
 #   - Multiple inclusions of this file should be idempotent.
 #   - This code has to be 'set -e' clean.

+# Ensure a consistent test environment by ignoring the system's Autoconf
+# `configure` site defaults.
+CONFIG_SITE=/dev/null; export CONFIG_SITE
+
 # See whether the current test script is expected to use TAP or not.
 # Use a sensible default, while allowing the scripts to override this check.
 if test -z "$am_test_protocol"; then

compile finished at Wed Apr  9 09:59:14 2025




Notification sent to Richard Hansen <rhansen@HIDDEN>:
bug acknowledged by developer. Full text available.
Reply sent to Karl Berry <karl@HIDDEN>:
You have taken responsibility. Full text available.

Message received at 76622 <at> debbugs.gnu.org:


Received: (at 76622) by debbugs.gnu.org; 9 Apr 2025 17:00:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 09 13:00:31 2025
Received: from localhost ([127.0.0.1]:41449 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u2Yms-0001kb-JD
	for submit <at> debbugs.gnu.org; Wed, 09 Apr 2025 13:00:31 -0400
Received: from frenzy.freefriends.org ([198.99.81.75]:58140
 helo=freefriends.org)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <karl@HIDDEN>)
 id 1u2Ymp-0001ZN-2L; Wed, 09 Apr 2025 13:00:28 -0400
X-Envelope-From: karl@HIDDEN
Received: from freefriends.org (localhost [127.0.0.1])
 by freefriends.org (8.16.1/8.16.1) with ESMTPS id 539H0P5r423930
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
 Wed, 9 Apr 2025 11:00:25 -0600
Received: (from apache@localhost)
 by freefriends.org (8.16.1/8.14.7/Submit) id 539H0PQY423929;
 Wed, 9 Apr 2025 11:00:25 -0600
Date: Wed, 9 Apr 2025 11:00:25 -0600
Message-Id: <202504091700.539H0PQY423929@HIDDEN>
From: Karl Berry <karl@HIDDEN>
To: rhansen@HIDDEN
Subject: Re: [bug#76622] [PATCH] tests: force Autoconf site defaults to
 `/dev/null'
In-Reply-To: <20250228005416.521870-1-rhansen@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 76622
Cc: 76622 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi Richard and all,

    +# Ensure a consistent test environment by ignoring the system's Autoconf
    +# `configure` site defaults.
    +CONFIG_SITE=/dev/null; export CONFIG_SITE

I finally committed this change. Thanks for writing it up.

Hopefully Nelson (Beebe, who reported numerous failures with the 1.17.90
pretest) will have better luck with the next pretest. We'll see. 

Meanwhile, closing this one. --thanks, karl.

-----------------------------------------------------------------------------
test: force Autoconf config.site to /dev/null.

From https://bugs.gnu.org/76622 (automake-patches).

* t/ax/test-defs.in: Set `CONFIG_SITE' to `/dev/null' to avoid
the local system's Autoconf site defaults from breaking the test
environment. Original report from Nelson Beebe, 26 Feb 2025.
* NEWS: mention this.
diff --git a/NEWS b/NEWS
index f46191a3c..62bfb36fd 100644
--- a/NEWS
+++ b/NEWS
@@ -2,7 +2,7 @@ For planned incompatibilities in a possible future Automake 2.0 release,
 please see NEWS-future and start following the advice there now.

 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-New in 1.17.90:
+New in 1.17.91:

 * New features added

@@ -38,16 +38,21 @@ New in 1.17.90:
     intended, i.e., omits the dependency on $(BUILT_SOURCES) for the
     distdir target. (bug#69908)

-  - The compile script is more robust to Windows configurations;
-    specifically, avoiding double-path translation on MSYS. (bug#75939)
-
   - Only warn about install.sh being found, instead of it being a fatal
     error. (bug#19964)

+  - The compile script is more robust to Windows configurations;
+    specifically, avoiding double-path translation on MSYS. (bug#75939)
+
+  - The test infrastructure sets the CONFIG_SITE environment variable to
+    /dev/null, to avoid the local system's Autoconf site defaults from
+    breaking the test environment. (bug#76622)
+    
   - AM_SILENT_RULES once again always ends with a newline. (bug#72267)

-  - AM_SANITY_CHECK outputs "no" on failure, so that a complete line is
-  printed to stdout before the error message is written to stderr. (bug#76448)
+  - AM_SANITY_CHECK now outputs "no" on failure, so that a complete line
+    is written to stdout before the error message is written to stderr.
+    (bug#76448)

 * Miscellaneous changes

diff --git a/t/ax/test-defs.in b/t/ax/test-defs.in
index 755445494..9aed4ae10 100644
--- a/t/ax/test-defs.in
+++ b/t/ax/test-defs.in
@@ -22,6 +22,10 @@
 #   - Multiple inclusions of this file should be idempotent.
 #   - This code has to be 'set -e' clean.

+# Ensure a consistent test environment by ignoring the system's Autoconf
+# `configure` site defaults.
+CONFIG_SITE=/dev/null; export CONFIG_SITE
+
 # See whether the current test script is expected to use TAP or not.
 # Use a sensible default, while allowing the scripts to override this check.
 if test -z "$am_test_protocol"; then

compile finished at Wed Apr  9 09:59:14 2025




Information forwarded to automake-patches@HIDDEN:
bug#76622; Package automake-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Feb 2025 00:55:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 27 19:55:33 2025
Received: from localhost ([127.0.0.1]:40651 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tnof4-0001zQ-Se
	for submit <at> debbugs.gnu.org; Thu, 27 Feb 2025 19:55:33 -0500
Received: from lists.gnu.org ([2001:470:142::17]:60178)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <rhansen@HIDDEN>)
 id 1tnoez-0001wl-PN
 for submit <at> debbugs.gnu.org; Thu, 27 Feb 2025 19:55:28 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rhansen@HIDDEN>)
 id 1tnoep-0000ij-Pw
 for automake-patches@HIDDEN; Thu, 27 Feb 2025 19:55:15 -0500
Received: from spork.scientician.org ([2600:3c03:e000:66::1])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rhansen@HIDDEN>)
 id 1tnoen-00085S-4q
 for automake-patches@HIDDEN; Thu, 27 Feb 2025 19:55:15 -0500
Received: from spork.scientician.org (localhost [127.0.0.1])
 by spork.scientician.org (Postfix) with ESMTP id DE3524A755
 for <automake-patches@HIDDEN>; Thu, 27 Feb 2025 19:55:03 -0500 (EST)
Received: from redacted.invalid by spork.scientician.org (Postfix) with
 ESMTPSA id CE17F48522
 for <automake-patches@HIDDEN>; Thu, 27 Feb 2025 19:55:03 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rhansen.org;
 s=20130902-spork; t=1740704103;
 bh=/irB85Q8/yWkb8+h6b8yDjoEXNSPbOEAbbaTVn2S+V4=;
 h=From:To:Subject:Date:In-Reply-To:References:From;
 b=kuWa4xGnxkP/Q89g7/Etaubkc8zjWLo3CMh3sBdHBBCJjipggGUliWb9katH4X6Rh
 4koDSingAwI7y+SS0aBHx7+4YMYLKKn71484smJGBwEs9N4J3R9aNYoSw+4/ECdt6N
 Yc+Au56hRIkqQAJKXjERfUcgK9KW3C9OIMNW1EeU=
Received: from redacted.invalid by mail.scientician.org (Postfix) with ESMTPSA
 id 9E0BA20017; Thu, 27 Feb 2025 19:55:01 -0500 (EST)
From: Richard Hansen <rhansen@HIDDEN>
To: automake-patches@HIDDEN
Subject: [PATCH] tests: force Autoconf site defaults to `/dev/null'
Date: Thu, 27 Feb 2025 19:52:47 -0500
Message-ID: <20250228005416.521870-1-rhansen@HIDDEN>
X-Mailer: git-send-email 2.48.1
In-Reply-To: <0a494d36-1521-4bf1-843c-8eaac1578141@HIDDEN>
References: <0a494d36-1521-4bf1-843c-8eaac1578141@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=2600:3c03:e000:66::1;
 envelope-from=rhansen@HIDDEN; helo=spork.scientician.org
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

* t/ax/test-defs.in: Set `CONFIG_SITE' to `/dev/null' to prevent the
system's Autoconf site defaults from breaking the test environment.
---
 t/ax/test-defs.in | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/t/ax/test-defs.in b/t/ax/test-defs.in
index 755445494..9aed4ae10 100644
--- a/t/ax/test-defs.in
+++ b/t/ax/test-defs.in
@@ -22,6 +22,10 @@
 #   - Multiple inclusions of this file should be idempotent.
 #   - This code has to be 'set -e' clean.
 
+# Ensure a consistent test environment by ignoring the system's Autoconf
+# `configure` site defaults.
+CONFIG_SITE=/dev/null; export CONFIG_SITE
+
 # See whether the current test script is expected to use TAP or not.
 # Use a sensible default, while allowing the scripts to override this check.
 if test -z "$am_test_protocol"; then
-- 
2.48.1





Acknowledgement sent to Richard Hansen <rhansen@HIDDEN>:
New bug report received and forwarded. Copy sent to automake-patches@HIDDEN. Full text available.
Report forwarded to automake-patches@HIDDEN:
bug#76622; Package automake-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 9 Apr 2025 17:00:03 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.