bug#79232: tsort doesn't support -w added by POSIX 2024.

Collin Funk <[email protected]>
Newsgroups gmane.comp.gnu.core-utils.bugs
Message-ID <[email protected]>
Paul Eggert <[email protected]> writes:

> -  parse_gnu_standard_options_only (argc, argv, PROGRAM_NAME, PACKAGE_NAME,
> -                                   Version, true, usage, AUTHORS,
> -                                   (char const *) nullptr);
> +  while (true)

The removal of this function call without removing
#include "long-options.h" causes the following failure when running
'make syntax-check':

    maint.mk: the above files include long-options.h but don't use it
    make: *** [maint.mk:677: sc_prohibit_long_options_without_use] Error 1

I pushed the attached patch to fix it.

Otherwise, the patch was good. Thanks!

Collin
0001-maint-avoid-syntax-check-failure-from-previous-commi.patch (text/x-patch, 848 B)
From c9ae3b553d54a067d880026939de536e6ac39192 Mon Sep 17 00:00:00 2001
Message-ID: <c9ae3b553d54a067d880026939de536e6ac39192.1755226079.git.collin.funk1@gmail.com>
From: Collin Funk <[email protected]>
Date: Thu, 14 Aug 2025 19:43:52 -0700
Subject: [PATCH] maint: avoid syntax-check failure from previous commit

* src/tsort.c: Don't include long-options.h since the previous commit
removed the call to parse_gnu_standard_options_only. This avoids a
sc_prohibit_long_options_without_use syntax-check failure.
---
 src/tsort.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/tsort.c b/src/tsort.c
index 65050db11..dcbfdc24f 100644
--- a/src/tsort.c
+++ b/src/tsort.c
@@ -27,7 +27,6 @@
 
 #include "system.h"
 #include "assure.h"
-#include "long-options.h"
 #include "fadvise.h"
 #include "readtokens.h"
 #include "stdio--.h"
-- 
2.50.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.