From unknown Sun Jun 15 08:59:49 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#78525] [PATCH] test: Skip a test that fails without python enabled. Resent-From: Collin Funk Original-Sender: "Debbugs-submit" Resent-CC: automake-patches@gnu.org Resent-Date: Wed, 21 May 2025 05:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 78525 X-GNU-PR-Package: automake-patches X-GNU-PR-Keywords: patch To: 78525@debbugs.gnu.org X-Debbugs-Original-To: automake-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.174780415419670 (code B ref -1); Wed, 21 May 2025 05:10:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 May 2025 05:09:14 +0000 Received: from localhost ([127.0.0.1]:42422 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uHbhZ-00057B-Im for submit@debbugs.gnu.org; Wed, 21 May 2025 01:09:14 -0400 Received: from lists.gnu.org ([2001:470:142::17]:51634) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uHbhW-00056B-7G for submit@debbugs.gnu.org; Wed, 21 May 2025 01:09:11 -0400 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 ) id 1uHbhO-0006tG-8R for automake-patches@gnu.org; Wed, 21 May 2025 01:09:02 -0400 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uHbhM-0005cm-4l for automake-patches@gnu.org; Wed, 21 May 2025 01:09:01 -0400 Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-742c46611b6so4516722b3a.1 for ; Tue, 20 May 2025 22:08:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747804138; x=1748408938; darn=gnu.org; h=mime-version:user-agent:message-id:date:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=IHbU1XpDnE+rdLm6UkixywNyFg7utoUur0ZqfUqGU4U=; b=Ydy1oWa1ROVpUBs44xnI5/zsIqWk9yrPEd0txc43YMdPQPeqfrt98kt/el7iBwlMW9 f/6Xzcq/OlsS5+OKpfTagBsW9esCdjcGnqg/f0PgSVTw2xRgf0lzKU5TJf6YD2mkdCCv oMRMEH0GEPR6pazqCYv4EIY0gIWpB9/aApL1egWDnC/OdyEQpVBl222/+LN11J+4Q/AP WyL0UztqhLKrFUikVe9IQo1QO9g223fPl2DqDuI32FklD7PLeuIZBzZH+79eXrDg9MEg sff8jvBWbD40l2IWjXKcQ/LGFM7hT4ft+kHvFc+qp08vsRGQGZATPIK4CU+HjH1D+Aa0 YH9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747804138; x=1748408938; h=mime-version:user-agent:message-id:date:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IHbU1XpDnE+rdLm6UkixywNyFg7utoUur0ZqfUqGU4U=; b=g12kBwPyqyoH3qULqEClLjoaHbrnlbnpZi1Ti8DmHJY26lLPPQ5kpVshglPVVbrUcm ltvHTl5133zlbIJIei/Ye9hvaSOIfuMMzqDKhYki+Vmp4eEKhXVX5Q5yxVX6FPYXCUnb 4bzZen2S3VlbD3YpiVtfI36Fq/+s2w8fSLEEMo4zBbevnMoWPSAcDftvj6dUO+AMpKzY h5/D1LQdCRPHn+SmoqmNwLCsohicOXTRrju1MKdeLMGRUQWneAR6qjtZLll20sTEK+fY cyNvXEZ18Fuvj6xa5T8dSGT/lEO2x8ag0uTUMVKCCvqZwd28c71ynUEKFumNecB4SuW9 bnYw== X-Gm-Message-State: AOJu0YyKXKd2HKUsLa6fx1UEvzQBTcCTOCcG5duIIMq/9/SowPOreUpk qC47iYpd2eFOf7D4XaMlvfMB05LolqQVJ+iuec1SFzqgnaVmn+TQfP3LD5GmGg== X-Gm-Gg: ASbGnctmvKP61EVJAT9mthv13eLPyFCRnmFcarMvh9u9d0UPSxVpv4B5OxPfb8FUFNX Upc7PIzXMScf7sT6wiSDOOUsKyw0QQ5V6+1XmC+qpDGqHolPQHt9oeBRF8Zbd20SX0n2d1AxlBd ThyD2S2kigt2ZN+G0LbAGhtV8MK9N9LVSwvlfbAMO7nXXmM+NPQfyVdDkUGm6AN1yzsXZK43vEt QcINeUyEN05csH47d1zEj/mG8hmVqrpGxKqW5qX11Q9gTI2wGSihRGGLwqa+t4vW86H7ASJgye3 vX+I8WtpzUM/qY+86lWupJdyz7N72PIgtjZXYuVI3A== X-Google-Smtp-Source: AGHT+IG9by/nmSQZ9W+oi72pweW1nuH/7oiXfLevgwtyiufUkMpbXAw47rydPko+9AheKTiEvEDDfA== X-Received: by 2002:a05:6a00:a81:b0:742:9f58:ccce with SMTP id d2e1a72fcca58-742acce364cmr25726045b3a.12.1747804137946; Tue, 20 May 2025 22:08:57 -0700 (PDT) Received: from fedora ([2601:646:8081:3770::9eb]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-742a970c89dsm9038920b3a.58.2025.05.20.22.08.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 May 2025 22:08:57 -0700 (PDT) From: Collin Funk Date: Tue, 20 May 2025 22:08:56 -0700 Message-ID: <87h61emtxz.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=collin.funk1@gmail.com; helo=mail-pf1-x42c.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On a system without Python 't/py-compile-usage' fails with: + ./py-compile --help + cat stdout py-compile: Invalid python executable (according to -V): python py-compile: Python support disabled + test -s stderr + grep '^Usage: py-compile .' stdout + am_exit_ [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (collin.funk1[at]gmail.com) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (collin.funk1[at]gmail.com) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) --=-=-= Content-Type: text/plain On a system without Python 't/py-compile-usage' fails with: + ./py-compile --help + cat stdout py-compile: Invalid python executable (according to -V): python py-compile: Python support disabled + test -s stderr + grep '^Usage: py-compile .' stdout + am_exit_trap 1 + exit_status=1 This occurs after the following commit: commit 0ea7ef97493cd88da915d1936e04a6ace5c754d8 Author: Karl Berry Date: Sun Feb 9 09:36:24 2025 -0800 python: restore more compatible behavior for $PYTHON. For https://bugs.gnu.org/74434. * lib/py-compile: if $PYTHON -V does not include the string "python" (case-insensitive), consider the support intentionally disabled and exit successfully, unless PYTHON is set to false, in which case exit unsuccessfully. This is closer to the old behavior. Mention this in the help message. * t/py-compile-env.sh: add test for PYTHON=:. * NEWS: mention this. (And, en passant, add some past bug#s and clarify that only RCS/SCCS pattern rules were disabled, not all.) Simple 1 line fix attached. :) Collin --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-test-Skip-a-test-that-fails-without-python-enabled.patch >From 5f9001d17fa17088468b650a26a6f876dcdca161 Mon Sep 17 00:00:00 2001 Message-ID: <5f9001d17fa17088468b650a26a6f876dcdca161.1747803682.git.collin.funk1@gmail.com> From: Collin Funk Date: Tue, 20 May 2025 22:00:13 -0700 Subject: [PATCH] test: Skip a test that fails without python enabled. * t/py-compile-usage.sh: Add 'required=python' before sourcing test-init.sh. --- t/py-compile-usage.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/t/py-compile-usage.sh b/t/py-compile-usage.sh index 0251a76a8..32dc44109 100644 --- a/t/py-compile-usage.sh +++ b/t/py-compile-usage.sh @@ -17,6 +17,7 @@ # Test 'py-compile --help', 'py-compile --version', and that 'py-compile' # correctly complains on wrong usage. +required=python . test-init.sh cp "$am_scriptdir/py-compile" . \ -- 2.49.0 --=-=-=-- From unknown Sun Jun 15 08:59:49 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Collin Funk Subject: bug#78525: closed (Re: [bug#78525] [PATCH] test: Skip a test that fails without python enabled.) Message-ID: References: <202505212018.54LKIZVk3194594@freefriends.org> <87h61emtxz.fsf@gmail.com> X-Gnu-PR-Message: they-closed 78525 X-Gnu-PR-Package: automake-patches X-Gnu-PR-Keywords: patch Reply-To: 78525@debbugs.gnu.org Date: Wed, 21 May 2025 20:19:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1747858743-21684-1" This is a multi-part message in MIME format... ------------=_1747858743-21684-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #78525: [PATCH] test: Skip a test that fails without python enabled. which was filed against the automake-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 78525@debbugs.gnu.org. --=20 78525: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D78525 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1747858743-21684-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 78525-done) by debbugs.gnu.org; 21 May 2025 20:18:51 +0000 Received: from localhost ([127.0.0.1]:53286 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uHptq-0005c3-OY for submit@debbugs.gnu.org; Wed, 21 May 2025 16:18:51 -0400 Received: from frenzy.freefriends.org ([198.99.81.75]:36434 helo=freefriends.org) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uHptd-0005aY-Cf; Wed, 21 May 2025 16:18:39 -0400 X-Envelope-From: karl@freefriends.org Received: from freefriends.org (localhost [127.0.0.1]) by freefriends.org (8.16.1/8.16.1) with ESMTPS id 54LKIZNE3194595 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 21 May 2025 14:18:35 -0600 Received: (from apache@localhost) by freefriends.org (8.16.1/8.14.7/Submit) id 54LKIZVk3194594; Wed, 21 May 2025 14:18:35 -0600 Date: Wed, 21 May 2025 14:18:35 -0600 Message-Id: <202505212018.54LKIZVk3194594@freefriends.org> From: Karl Berry To: collin.funk1@gmail.com Subject: Re: [bug#78525] [PATCH] test: Skip a test that fails without python enabled. In-Reply-To: <87h61emtxz.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 78525-done Cc: 78525@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --- a/t/py-compile-usage.sh +++ b/t/py-compile-usage.sh @@ -17,6 +17,7 @@ # Test 'py-compile --help', 'py-compile --version', and that 'py-compile' # correctly complains on wrong usage. +required=python Installed and closing. Thanks Collin. BTW, do you have any idea why the "From " line in your patch is dated from 2001? >From 5f9001d17fa17088468b650a26a6f876dcdca161 Mon Sep 17 00:00:00 2001 Doesn't matter. Just seemed curious. --thanks, karl. ------------=_1747858743-21684-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 21 May 2025 05:09:14 +0000 Received: from localhost ([127.0.0.1]:42422 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uHbhZ-00057B-Im for submit@debbugs.gnu.org; Wed, 21 May 2025 01:09:14 -0400 Received: from lists.gnu.org ([2001:470:142::17]:51634) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uHbhW-00056B-7G for submit@debbugs.gnu.org; Wed, 21 May 2025 01:09:11 -0400 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 ) id 1uHbhO-0006tG-8R for automake-patches@gnu.org; Wed, 21 May 2025 01:09:02 -0400 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uHbhM-0005cm-4l for automake-patches@gnu.org; Wed, 21 May 2025 01:09:01 -0400 Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-742c46611b6so4516722b3a.1 for ; Tue, 20 May 2025 22:08:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747804138; x=1748408938; darn=gnu.org; h=mime-version:user-agent:message-id:date:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=IHbU1XpDnE+rdLm6UkixywNyFg7utoUur0ZqfUqGU4U=; b=Ydy1oWa1ROVpUBs44xnI5/zsIqWk9yrPEd0txc43YMdPQPeqfrt98kt/el7iBwlMW9 f/6Xzcq/OlsS5+OKpfTagBsW9esCdjcGnqg/f0PgSVTw2xRgf0lzKU5TJf6YD2mkdCCv oMRMEH0GEPR6pazqCYv4EIY0gIWpB9/aApL1egWDnC/OdyEQpVBl222/+LN11J+4Q/AP WyL0UztqhLKrFUikVe9IQo1QO9g223fPl2DqDuI32FklD7PLeuIZBzZH+79eXrDg9MEg sff8jvBWbD40l2IWjXKcQ/LGFM7hT4ft+kHvFc+qp08vsRGQGZATPIK4CU+HjH1D+Aa0 YH9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747804138; x=1748408938; h=mime-version:user-agent:message-id:date:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IHbU1XpDnE+rdLm6UkixywNyFg7utoUur0ZqfUqGU4U=; b=g12kBwPyqyoH3qULqEClLjoaHbrnlbnpZi1Ti8DmHJY26lLPPQ5kpVshglPVVbrUcm ltvHTl5133zlbIJIei/Ye9hvaSOIfuMMzqDKhYki+Vmp4eEKhXVX5Q5yxVX6FPYXCUnb 4bzZen2S3VlbD3YpiVtfI36Fq/+s2w8fSLEEMo4zBbevnMoWPSAcDftvj6dUO+AMpKzY h5/D1LQdCRPHn+SmoqmNwLCsohicOXTRrju1MKdeLMGRUQWneAR6qjtZLll20sTEK+fY cyNvXEZ18Fuvj6xa5T8dSGT/lEO2x8ag0uTUMVKCCvqZwd28c71ynUEKFumNecB4SuW9 bnYw== X-Gm-Message-State: AOJu0YyKXKd2HKUsLa6fx1UEvzQBTcCTOCcG5duIIMq/9/SowPOreUpk qC47iYpd2eFOf7D4XaMlvfMB05LolqQVJ+iuec1SFzqgnaVmn+TQfP3LD5GmGg== X-Gm-Gg: ASbGnctmvKP61EVJAT9mthv13eLPyFCRnmFcarMvh9u9d0UPSxVpv4B5OxPfb8FUFNX Upc7PIzXMScf7sT6wiSDOOUsKyw0QQ5V6+1XmC+qpDGqHolPQHt9oeBRF8Zbd20SX0n2d1AxlBd ThyD2S2kigt2ZN+G0LbAGhtV8MK9N9LVSwvlfbAMO7nXXmM+NPQfyVdDkUGm6AN1yzsXZK43vEt QcINeUyEN05csH47d1zEj/mG8hmVqrpGxKqW5qX11Q9gTI2wGSihRGGLwqa+t4vW86H7ASJgye3 vX+I8WtpzUM/qY+86lWupJdyz7N72PIgtjZXYuVI3A== X-Google-Smtp-Source: AGHT+IG9by/nmSQZ9W+oi72pweW1nuH/7oiXfLevgwtyiufUkMpbXAw47rydPko+9AheKTiEvEDDfA== X-Received: by 2002:a05:6a00:a81:b0:742:9f58:ccce with SMTP id d2e1a72fcca58-742acce364cmr25726045b3a.12.1747804137946; Tue, 20 May 2025 22:08:57 -0700 (PDT) Received: from fedora ([2601:646:8081:3770::9eb]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-742a970c89dsm9038920b3a.58.2025.05.20.22.08.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 May 2025 22:08:57 -0700 (PDT) From: Collin Funk To: automake-patches@gnu.org Subject: [PATCH] test: Skip a test that fails without python enabled. Date: Tue, 20 May 2025 22:08:56 -0700 Message-ID: <87h61emtxz.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=collin.funk1@gmail.com; helo=mail-pf1-x42c.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On a system without Python 't/py-compile-usage' fails with: + ./py-compile --help + cat stdout py-compile: Invalid python executable (according to -V): python py-compile: Python support disabled + test -s stderr + grep '^Usage: py-compile .' stdout + am_exit_ [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (collin.funk1[at]gmail.com) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (collin.funk1[at]gmail.com) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) --=-=-= Content-Type: text/plain On a system without Python 't/py-compile-usage' fails with: + ./py-compile --help + cat stdout py-compile: Invalid python executable (according to -V): python py-compile: Python support disabled + test -s stderr + grep '^Usage: py-compile .' stdout + am_exit_trap 1 + exit_status=1 This occurs after the following commit: commit 0ea7ef97493cd88da915d1936e04a6ace5c754d8 Author: Karl Berry Date: Sun Feb 9 09:36:24 2025 -0800 python: restore more compatible behavior for $PYTHON. For https://bugs.gnu.org/74434. * lib/py-compile: if $PYTHON -V does not include the string "python" (case-insensitive), consider the support intentionally disabled and exit successfully, unless PYTHON is set to false, in which case exit unsuccessfully. This is closer to the old behavior. Mention this in the help message. * t/py-compile-env.sh: add test for PYTHON=:. * NEWS: mention this. (And, en passant, add some past bug#s and clarify that only RCS/SCCS pattern rules were disabled, not all.) Simple 1 line fix attached. :) Collin --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-test-Skip-a-test-that-fails-without-python-enabled.patch >From 5f9001d17fa17088468b650a26a6f876dcdca161 Mon Sep 17 00:00:00 2001 Message-ID: <5f9001d17fa17088468b650a26a6f876dcdca161.1747803682.git.collin.funk1@gmail.com> From: Collin Funk Date: Tue, 20 May 2025 22:00:13 -0700 Subject: [PATCH] test: Skip a test that fails without python enabled. * t/py-compile-usage.sh: Add 'required=python' before sourcing test-init.sh. --- t/py-compile-usage.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/t/py-compile-usage.sh b/t/py-compile-usage.sh index 0251a76a8..32dc44109 100644 --- a/t/py-compile-usage.sh +++ b/t/py-compile-usage.sh @@ -17,6 +17,7 @@ # Test 'py-compile --help', 'py-compile --version', and that 'py-compile' # correctly complains on wrong usage. +required=python . test-init.sh cp "$am_scriptdir/py-compile" . \ -- 2.49.0 --=-=-=-- ------------=_1747858743-21684-1-- From unknown Sun Jun 15 08:59:49 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#78525] [PATCH] test: Skip a test that fails without python enabled. References: <87h61emtxz.fsf@gmail.com> Resent-From: Karl Berry Original-Sender: "Debbugs-submit" Resent-CC: automake-patches@gnu.org Resent-Date: Wed, 21 May 2025 20:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 78525 X-GNU-PR-Package: automake-patches X-GNU-PR-Keywords: patch To: collin.funk1@gmail.com Cc: 78525@debbugs.gnu.org Received: via spool by 78525-submit@debbugs.gnu.org id=B78525.174785874621746 (code B ref 78525); Wed, 21 May 2025 20:20:03 +0000 Received: (at 78525) by debbugs.gnu.org; 21 May 2025 20:19:06 +0000 Received: from localhost ([127.0.0.1]:53305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uHpu5-0005ef-Kl for submit@debbugs.gnu.org; Wed, 21 May 2025 16:19:06 -0400 Received: from frenzy.freefriends.org ([198.99.81.75]:36434 helo=freefriends.org) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uHptd-0005aY-Cf; Wed, 21 May 2025 16:18:39 -0400 X-Envelope-From: karl@freefriends.org Received: from freefriends.org (localhost [127.0.0.1]) by freefriends.org (8.16.1/8.16.1) with ESMTPS id 54LKIZNE3194595 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 21 May 2025 14:18:35 -0600 Received: (from apache@localhost) by freefriends.org (8.16.1/8.14.7/Submit) id 54LKIZVk3194594; Wed, 21 May 2025 14:18:35 -0600 Date: Wed, 21 May 2025 14:18:35 -0600 Message-Id: <202505212018.54LKIZVk3194594@freefriends.org> From: Karl Berry In-Reply-To: <87h61emtxz.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --- a/t/py-compile-usage.sh +++ b/t/py-compile-usage.sh @@ -17,6 +17,7 @@ # Test 'py-compile --help', 'py-compile --version', and that 'py-compile' # correctly complains on wrong usage. +required=python Installed and closing. Thanks Collin. BTW, do you have any idea why the "From " line in your patch is dated from 2001? >From 5f9001d17fa17088468b650a26a6f876dcdca161 Mon Sep 17 00:00:00 2001 Doesn't matter. Just seemed curious. --thanks, karl. From unknown Sun Jun 15 08:59:49 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#78525] [PATCH] test: Skip a test that fails without python enabled. Resent-From: Collin Funk Original-Sender: "Debbugs-submit" Resent-CC: automake-patches@gnu.org Resent-Date: Wed, 21 May 2025 20:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 78525 X-GNU-PR-Package: automake-patches X-GNU-PR-Keywords: patch To: Karl Berry Cc: 78525@debbugs.gnu.org Received: via spool by 78525-submit@debbugs.gnu.org id=B78525.174785950026429 (code B ref 78525); Wed, 21 May 2025 20:32:02 +0000 Received: (at 78525) by debbugs.gnu.org; 21 May 2025 20:31:40 +0000 Received: from localhost ([127.0.0.1]:53412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uHq6F-0006sC-GI for submit@debbugs.gnu.org; Wed, 21 May 2025 16:31:39 -0400 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]:58373) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uHq67-0006r1-9R for 78525@debbugs.gnu.org; Wed, 21 May 2025 16:31:35 -0400 Received: by mail-pg1-x52c.google.com with SMTP id 41be03b00d2f7-af523f4511fso5548672a12.0 for <78525@debbugs.gnu.org>; Wed, 21 May 2025 13:31:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747859484; x=1748464284; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=Ol9b6nsDelmRul3EYCB7utGxuX+MbzBmdROtXW/KMxQ=; b=AA3e2Fe2uUqCehqYsGcNeSwXnz7iDV9ba7BmtRau/AcdXtVI7Kxep19fv2exXq5gmj XAac7g8zZyjV/FFkI3IjIrwg19kjtyJ/th0jM5bs7uYubgN/VVfmdugkcH0EcPUqKd7E 5zkNDcYpbYteyTdWAxUiqaltPE3XKlLMQOfEsH8JejUs+icDFH82fcptqs+SaA0+1tLj 455iuAUO6lnejimVzDu0XiTJT09z74iagKOKUi1FY8u5D1xOJbs43S/86EPcB4P4RsJF l7h28x3pJQkpoNZiGfGFmvbaLoaGSejcaWIEVkWdO25MXABk5WX/5GnhubN4H5rcgcK6 bvzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747859484; x=1748464284; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Ol9b6nsDelmRul3EYCB7utGxuX+MbzBmdROtXW/KMxQ=; b=QK2bIM1TkVixRaB8F8Z+AX6yZ4qXa927GAQKFI4lV/gIZpcHmj578mElY2AeNBlbiU 5ZWdNAIiLSVn5SIWWRaLXBqRxc/I9kuqmoM3EiJKtFRsPk/WojACpdJxUvgD0uzDo8iu sceWi1RCJ2+mMFDCaFJL+jCKtBrFghKXmAp6HmEGkDChY4sEuIytt0DnVnwQ0xgG/tki x108+yAAIEq4zFfGZnP39zBboyk4WAR40pi8oJgLIMkO6AWiBrO4yYHDBO4DU8HdE6pD qNTQ5TbgwqCr/BODcXpW12VlKVRJxwUf0BLI6bvGebdskuCZTe/z4gmKoT/ryRhXNPyI VSrw== X-Gm-Message-State: AOJu0YzQvllKV/4Ea/PR3elKeLcmZC/EpRGUf29bHWcGaXhTsapsa1AV Y5eL4c8gj4V8HYt3nFAMHQ8sJ6r7BZgRZDkmP8bakWDd5JBAChZtHiw4hKQyOw== X-Gm-Gg: ASbGncvaNNbQu+aGfLk425o2RkvVzdzCC5/qEyvTyU5FcDaVYvcPnaNxvi23QWv3DWq 74XCubLfDqKsKaF9elQPJo8xcaJnpiU/MeE5ILs1cK2hU+iPm+cuae25p8LbfFXfDk+JOhIZG0H tZHSt2CDsS7AXCk6/QlLkJ0dbjf9Pca5VouZvl59V9AvAbotw5qNX9hPVeQ8vqx8C0rtDqmgrwr HXCOBv5hGkcX1JPpR8fkDdadkFCmyJha/LJ8FYBJDDq35NhZ00rEMwsED3WrL9FGSZrAK/Pr9dG vaRwyXD6j72+q2k4+o/KpMfuroBbXVNm X-Google-Smtp-Source: AGHT+IHQxp2VrRSxORUC54+S6do1tNfqRqJupEsIrTjRNrtVGQ+0t+Pn5xbkNyIeoY5enB/disAfZw== X-Received: by 2002:a17:903:2692:b0:232:2af:8569 with SMTP id d9443c01a7336-23202af8833mr174028665ad.18.1747859484574; Wed, 21 May 2025 13:31:24 -0700 (PDT) Received: from fedora ([2601:646:8081:3770::eef5]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-231d4adaff9sm96210635ad.58.2025.05.21.13.31.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 May 2025 13:31:24 -0700 (PDT) From: Collin Funk In-Reply-To: <202505212018.54LKIZVk3194594@freefriends.org> References: <202505212018.54LKIZVk3194594@freefriends.org> Date: Wed, 21 May 2025 13:31:22 -0700 Message-ID: <87ecwh4sf9.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Hi Karl, Karl Berry writes: > Installed and closing. Thanks Collin. > > BTW, do you have any idea why the "From " line in your patch is dated > from 2001? > From 5f9001d17fa17088468b650a26a6f876dcdca161 Mon Sep 17 00:00:00 2001 > > Doesn't matter. Just seemed curious. --thanks, karl. I generate my patches using 'git format-patch' [1]. So in this case when I have one patch I use the command 'git format-patch -1'. These patches can easily be applied with the correct author and such with 'git am' [2]. In this case as the Automake maintainer with commit access you can run: $ git am 0001-test-Skip-a-test-that-fails-without-python-enabled.patch $ git push And it will be correct assuming no merge conflicts or other issues. The date "Mon Sep 17 00:00:00 2001" is a magic date used by git [3]. Hopefully I explained that well enough. :) Collin [1] https://git-scm.com/docs/git-format-patch [2] https://git-scm.com/docs/git-am [3] https://github.com/git/git/blob/8613c2bb6cd16ef530dc5dd74d3b818a1ccbf1c0/mailinfo.c#L371C50-L371C73