coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coreutils 8.30 "bootstap"


From: Gabor Z. Papp
Subject: Re: coreutils 8.30 "bootstap"
Date: Sat, 05 Jan 2019 19:01:46 +0100
User-agent: Gnus/5.130007 (Ma Gnus v0.7)

* Bernhard Voelker <address@hidden>:

| Back to the patch - does the attached work for you?

The attached patch does not works for me as I wrote earlier, here are
the error messages:

&& run_help2man="perl -- 
/home/gzp/build/coreutils/src/8.30-release/man/help2man"                        
     \
|| run_help2man="/home/gzp/build/coreutils/src/8.30-release/man/dummy-man";     
               \
: ${SOURCE_DATE_EPOCH=`cat 
/home/gzp/build/coreutils/src/8.30-release/.timestamp 2>/dev/null || :`} \
&& : ${TZ=UTC0} && export TZ                                    \
&& export SOURCE_DATE_EPOCH && $(run_help2man)                  \
             --source='GNU coreutils 8.30'                      \
             --include=/home/gzp/build/coreutils/src/8.30-release/man/$name.x   
                \
             --output=$t/$name.1                                \
             --info-page='\(aq(coreutils) '$name' invocation\(aq' \
             $t/$argv                           \
  && sed \
       -e 's|man/uptime\.td/||g' \
       -e '/For complete documentation/d' \
       $t/$name.1 > man/uptime.1-t                      \
  && rm -rf $t                                                  \
  && chmod a-w man/uptime.1-t                                           \
  && rm -f man/uptime.1 && mv man/uptime.1-t man/uptime.1
/bin/bash: line 19: run_help2man: command not found
/bin/bash: line 19: run_help2man: command not found
/bin/bash: line 19: run_help2man: command not found
/bin/bash: line 19: --source=GNU coreutils 8.30: command not found
/bin/bash: line 19: --source=GNU coreutils 8.30: command not found
/bin/bash: line 19: --source=GNU coreutils 8.30: command not found
Makefile:14843: recipe for target 'man/hostid.1' failed
make[2]: *** [man/hostid.1] Error 127
make[2]: *** Waiting for unfinished jobs....
Makefile:14843: recipe for target 'man/chroot.1' failed
make[2]: *** [man/chroot.1] Error 127
Makefile:14843: recipe for target 'man/timeout.1' failed
make[2]: *** [man/timeout.1] Error 127
/bin/bash: line 19: run_help2man: command not found
/bin/bash: line 19: --source=GNU coreutils 8.30: command not found
Makefile:14843: recipe for target 'man/nice.1' failed
make[2]: *** [man/nice.1] Error 127
/bin/bash: line 19: run_help2man: command not found
/bin/bash: line 19: run_help2man: command not found
/bin/bash: line 19: --source=GNU coreutils 8.30: command not found
Makefile:14843: recipe for target 'man/who.1' failed
make[2]: *** [man/who.1] Error 127
/bin/bash: line 19: --source=GNU coreutils 8.30: command not found
Makefile:14843: recipe for target 'man/users.1' failed
make[2]: *** [man/users.1] Error 127
/bin/bash: line 19: run_help2man: command not found
/bin/bash: line 19: --source=GNU coreutils 8.30: command not found
Makefile:14843: recipe for target 'man/pinky.1' failed
make[2]: *** [man/pinky.1] Error 127
/bin/bash: line 19: run_help2man: command not found
/bin/bash: line 19: --source=GNU coreutils 8.30: command not found
Makefile:14843: recipe for target 'man/uptime.1' failed
make[2]: *** [man/uptime.1] Error 127
make[2]: Leaving directory '/home/gzp/build/coreutils/build/8.30-release'
Makefile:11737: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/gzp/build/coreutils/build/8.30-release'
Makefile:5998: recipe for target 'all' failed
make: *** [all] Error 2

| From e22bc6279b9659e39d2e0d8589bc735ea8a2893d Mon Sep 17 00:00:00 2001
| From: Bernhard Voelker <address@hidden>
| Date: Fri, 4 Jan 2019 21:46:14 +0100
| Subject: [PATCH] build: use distributed man pages when running with --help
|  fails

| When building against an incompatible GLIBC version compared to that
| on the build host, then running the just-built binary might fail
| although it is the same platform - thus CROSS_COMPILING is false.
| As a result, generating the man pages fails.

| * man/local.mk (.x.1): Add a check to verify that running the utility
| with --help succeeds, otherwise falling back to using 'dummy-man'.
| ---
|  man/local.mk | 11 +++++++++--
|  1 file changed, 9 insertions(+), 2 deletions(-)

| diff --git a/man/local.mk b/man/local.mk
| index eee38396c..ee74d1f9b 100644
| --- a/man/local.mk
| +++ b/man/local.mk
| @@ -191,9 +191,16 @@ endif
|         && $(MKDIR_P) $$t                                             \
|         && (cd $$t && $(LN_S) '$(abs_top_builddir)/src/'$$prog$(EXEEXT) \
|                               $$argv$(EXEEXT))                        \
| -     && : $${SOURCE_DATE_EPOCH=`cat $(srcdir)/.timestamp 2>/dev/null || :`} \
| +       || exit 1;                                                    \
| +## Double-check whether the built binary succeeds with --help as the above
| +## CROSS_COMPILING condition might have been wrong in some cases, e.g. when
| +## building against an incompatible glibc version on the same platform.
| +     $$t/$$argv$(EXEEXT) --help </dev/null >/dev/null                \
| +       && run_help2man="$(run_help2man)"                             \
| +       || run_help2man="$(srcdir)/man/dummy-man";                    \
| +     : $${SOURCE_DATE_EPOCH=`cat $(srcdir)/.timestamp 2>/dev/null || :`} \
|       && : $${TZ=UTC0} && export TZ                                   \
| -     && export SOURCE_DATE_EPOCH && $(run_help2man)                  \
| +     && export SOURCE_DATE_EPOCH && $${run_help2man}                 \
|                    --source='$(PACKAGE_STRING)'                       \
|                    --include=$(srcdir)/man/$$name.x                   \
|                    --output=$$t/$$name.1                              \
| -- 
| 2.20.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]