GNU bug report logs - #78681
[PATCH] correct parameter parsing in test-driver script

Previous Next

Package: automake-patches;

Reported by: Christoph Grüninger <foss <at> grueninger.de>

Date: Tue, 3 Jun 2025 16:42:01 UTC

Severity: normal

Tags: patch

Done: Karl Berry <karl <at> freefriends.org>

To reply to this bug, email your comments to 78681 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to automake-patches <at> gnu.org:
bug#78681; Package automake-patches. (Tue, 03 Jun 2025 16:42:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Christoph Grüninger <foss <at> grueninger.de>:
New bug report received and forwarded. Copy sent to automake-patches <at> gnu.org. (Tue, 03 Jun 2025 16:42:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christoph Grüninger <foss <at> grueninger.de>
To: automake-patches <at> gnu.org
Subject: [PATCH] correct parameter parsing in test-driver script
Date: Tue, 3 Jun 2025 15:27:02 +0200
[Message part 1 (text/plain, inline)]
While updating the openSuse package to Automake 1.18, I stumbled across 
the attached patch. I got permission from the author to upstream it.
Are you interested?

Bye
Christoph

-- 
Most customers will not accept source code with compile errors in it.
                 Dan Saks, CppCon 2016 (https://youtu.be/D7Sd8A6_fYU)
[0001-correct-parameter-parsing-in-test-driver-script.patch (text/x-patch, attachment)]

Information forwarded to automake-patches <at> gnu.org:
bug#78681; Package automake-patches. (Tue, 03 Jun 2025 20:15:05 GMT) Full text and rfc822 format available.

Message #8 received at 78681 <at> debbugs.gnu.org (full text, mbox):

From: Karl Berry <karl <at> freefriends.org>
To: foss <at> grueninger.de
Cc: 78681 <at> debbugs.gnu.org
Subject: Re: [bug#78681] [PATCH] correct parameter parsing in test-driver
 script
Date: Tue, 3 Jun 2025 14:14:25 -0600
Hi Christoph,

    While updating the openSuse package to Automake 1.18, I stumbled across 
    the attached patch. I got permission from the author to upstream it.
    Are you interested?

Thanks, but no. This was fixed in 1.17, by replacing the use of = in the
help text and doc with spaces. Since test-driver never supported = signs
for parsing, no one could ever have used it that way. Main ChangeLog
entry below for reference.

Also, not that it matters given the above, but the patch uses various
sh(ell) unportabilities.

Closing ... --thanks, karl.

2024-05-21  Mark Wooding

	doc: test-driver option args are separate words.

	For https://bugs.gnu.org/70638.

	As now mentioned in the manual, the description of the
	test-driver command-line interface has been wrong since 2011
	when it was first added. The manual, and the driver usage
	messages themselves, have consistently shown option arguments
	joined to the option name with `=' characters, while the
	implementation of Automake has always provided option arguments
	in the following argument word, and the provided test drivers
	only accepted option arguments in the following argument word.

	Because Automake has never used the `=' syntax, there can't
	possibly be a working driver which actually follows the
	specification as written, so, despite the fierce language of the
	manual, we agreed that changing the specification was the right
	approach. The `test-driver' program's usage message has already
	been fixed (#22445), but the full extent of the problem wasn't
	noticed at that time.

	* doc/automake.texi (Command-line arguments for test drivers): Fix the
	table of options to show arguments passed as separate words; add
	footnote explaining this rather sorry situation.
	* doc/automake.texi (Use TAP with the Automake test harness):
	Remove `=' from documentation of `--diagnostic-string', because
	that was never acceptable either.
	* lib/tap-driver.sh: Fix usage message.
	* contrib/tap-driver.pl: Change usage message to match the defined
	protocol.  (This implementation parses options using Perl's
	`Getopt::Long' module, so it accepts the `=' syntax as specified, but
	this program isn't actually used.)




Reply sent to Karl Berry <karl <at> freefriends.org>:
You have taken responsibility. (Tue, 03 Jun 2025 20:15:09 GMT) Full text and rfc822 format available.

Notification sent to Christoph Grüninger <foss <at> grueninger.de>:
bug acknowledged by developer. (Tue, 03 Jun 2025 20:15:10 GMT) Full text and rfc822 format available.

This bug report was last modified 3 days ago.

Previous Next


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