Subject: Re: bug#20733: coreutils build problem

From: Pádraig Brady <[email-masked]>
Date: Sat, 06 Jun 2015 22:29:47 +0100

On 06/06/15 17:32, Michael Felt wrote:
> I downloaded, unpacked, ran configure and then "make -i". The only thing notable is still the problem with the man page for 'test' aka '[' (right_bracket)
> 
>   GEN      man/test.1
> help2man: can't get `--help' info from man/test.td/[ <http://test.td/[>
> Try `--no-discard-stderr' if option outputs to stderr
> make: 1254-004 The error code from the last command is 127.
> make: 1254-005 Ignored error code 127 from last command.

Does something hacky like this workaround the issue with your make?

diff --git a/man/local.mk b/man/local.mk
index 45bda93..bf6a662 100644
--- a/man/local.mk
+++ b/man/local.mk
@@ -58,7 +58,8 @@ else
 # Most prog.1 man pages depend on src/prog.  List the exceptions:
 man/arch.1:      src/uname$(EXEEXT)
 man/install.1:   src/ginstall$(EXEEXT)
-man/test.1:      src/[$(EXEEXT)
+LBRACKET = [
+man/test.1:      src/$(LBRACKET)$(EXEEXT)

 man/base64.1:    src/base64$(EXEEXT)
 man/basename.1:  src/basename$(EXEEXT)