On 28/01/2025 13:13, Pádraig Brady wrote:
On 28/01/2025 09:14, Bruno Haible via Gnulib discussion list wrote:
Then, it is interesting to note that
    * For coreutils programs, "<prog> --help" does not has a "Report bugs..."
      output section, because coreutils does not use the
      emit_bug_reporting_address function. (Why?)


We've tailored that output in coreutils for various reasons:

https://github.com/coreutils/coreutils/commit/016f8c999
https://github.com/coreutils/coreutils/commit/5d4f09d83
https://github.com/coreutils/coreutils/commit/8b6d3c570

I'll look into incorporating packager info if defined.

I'll push the attached later.

cheers,
Pádraig
From f45202b7e03ca8cf1d2153a4d939ee7c2d9e8175 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C3=A1draig=20Brady?= <p...@draigbrady.com>
Date: Tue, 28 Jan 2025 18:31:48 +0000
Subject: [PATCH] doc: support --with-packager-bug-reports

* src/system.h (emit_ancillary_info): Output
PACKAGE_PACKAGER_BUG_REPORTS if the build is configured
--with-packager-bug-reports.
Reported by Bruno Haible.
---
 src/system.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/system.h b/src/system.h
index 10fddf4fe..4a47e15ca 100644
--- a/src/system.h
+++ b/src/system.h
@@ -653,6 +653,13 @@ emit_ancillary_info (char const *program)
 
   printf (_("\n%s online help: <%s>\n"), PACKAGE_NAME, PACKAGE_URL);
 
+#ifdef PACKAGE_PACKAGER
+# ifdef PACKAGE_PACKAGER_BUG_REPORTS
+  printf (_("Report %s bugs to: <%s>\n"), PACKAGE_PACKAGER,
+          PACKAGE_PACKAGER_BUG_REPORTS);
+# endif
+#endif
+
   /* Don't output this redundant message for English locales.
      Note we still output for 'C' so that it gets included in the man page.  */
   char const *lc_messages = setlocale (LC_MESSAGES, nullptr);
-- 
2.48.1

Reply via email to