[Top][All Lists]

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

Re: help2man build race

From: Bernhard Voelker
Subject: Re: help2man build race
Date: Fri, 01 Nov 2013 19:00:28 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5

On 11/01/2013 05:01 PM, Bernhard Voelker wrote:
> Well, however, I think it's a simple race: this somehow doesn't look
> right to me (man/, does it?
>   man/sha1sum.1:   src/md5sum
>   man/sha224sum.1: src/md5sum
>   man/sha256sum.1: src/md5sum
>   man/sha384sum.1: src/md5sum
>   man/sha512sum.1: src/md5sum

It is a weak dependency. I reduced the case to this:

  $ rm -f src/sha1sum man/sha1sum.1
  $ make man/sha1sum.1
    GEN      man/sha1sum.1
  help2man: can't get `--help' info from man/
  Try `--no-discard-stderr' if option outputs to stderr
  make: *** [man/sha1sum.1] Error 127

The following fixes it.

Have a nice day,

>From 979f59f77c69535ff1fb916f73a88658db04df0b Mon Sep 17 00:00:00 2001
From: Bernhard Voelker <address@hidden>
Date: Fri, 1 Nov 2013 18:59:43 +0100
Subject: [PATCH] build: fix dependencies of man/sha*sum.1
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Although the above man pages depend on src/md5sum.c as a shared
source, the build of the man pages directly requires their own
executables to exist.

* man/ (man/sha1sum.1): Change the dependency from
'src/md5sum' to 'src/sha1sum'.
(man/sha224sum.1): s/md5sum/sha224sum/
(man/sha256sum.1): s/md5sum/sha256sum/
(man/sha384sum.1): s/md5sum/sha384sum/
(man/sha512sum.1): s/md5sum/sha512sum/

Reported by Pádraig Brady in
 man/ | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/man/ b/man/
index 266b780..45dbcb9 100644
--- a/man/
+++ b/man/
@@ -131,11 +131,11 @@ man/rm.1:        src/rm
 man/rmdir.1:     src/rmdir
 man/runcon.1:    src/runcon
 man/seq.1:       src/seq
-man/sha1sum.1:   src/md5sum
-man/sha224sum.1: src/md5sum
-man/sha256sum.1: src/md5sum
-man/sha384sum.1: src/md5sum
-man/sha512sum.1: src/md5sum
+man/sha1sum.1:   src/sha1sum
+man/sha224sum.1: src/sha224sum
+man/sha256sum.1: src/sha256sum
+man/sha384sum.1: src/sha384sum
+man/sha512sum.1: src/sha512sum
 man/shred.1:     src/shred
 man/shuf.1:      src/shuf
 man/sleep.1:     src/sleep

reply via email to

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