From: Bruno Haible Date: Tue, 3 Feb 2026 20:55:48 +0000 (+0100) Subject: build: When help2man fails, let it show the reason. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a65c44d772d6d0153114ca3237f24171dc0d0ed;p=thirdparty%2Fgettext.git build: When help2man fails, let it show the reason. This is needed for investigating failures in a CI environment. * gettext-runtime/man/help2man (get_option_value): Pipe the program's stderr to stderr, not to /dev/null. * gettext-tools/man/help2man (get_option_value): Likewise. --- diff --git a/gettext-runtime/man/help2man b/gettext-runtime/man/help2man index 1d6702972..a55d86b2c 100755 --- a/gettext-runtime/man/help2man +++ b/gettext-runtime/man/help2man @@ -745,7 +745,7 @@ sub program_basename sub get_option_value { my ($prog, $opt) = @_; - my $stderr = $discard_stderr ? '/dev/null' : '&1'; + my $stderr = $discard_stderr ? '&2' : '&1'; my $value = join '', map { s/ +$//; expand $_ } map { dec $_ } diff --git a/gettext-tools/man/help2man b/gettext-tools/man/help2man index 1d6702972..a55d86b2c 100755 --- a/gettext-tools/man/help2man +++ b/gettext-tools/man/help2man @@ -745,7 +745,7 @@ sub program_basename sub get_option_value { my ($prog, $opt) = @_; - my $stderr = $discard_stderr ? '/dev/null' : '&1'; + my $stderr = $discard_stderr ? '&2' : '&1'; my $value = join '', map { s/ +$//; expand $_ } map { dec $_ }