bug-guix
[Top][All Lists]
Advanced

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

bug#28241: man page in r-minimal contains timestamp


From: Ricardo Wurmus
Subject: bug#28241: man page in r-minimal contains timestamp
Date: Sat, 26 Aug 2017 15:11:06 +0200
User-agent: mu4e 0.9.18; emacs 25.2.1

Ricardo Wurmus <address@hidden> writes:

> The man page is created with a rule in “doc/Makefile.in”:
>
>      @$(HELP2MAN) --include=$(srcdir)/R.aux --no-info --output=R.1 \
>        --name="a language for data analysis and graphics" \
>        $(top_builddir)/bin/R
>
> “doc/R.aux” does not contain a timestamp, nor does the help output of R
> itself.  Is help2man to blame here?

help2man supports SOURCE_DATE_EPOCH and it does the right thing when it
is set.

--8<---------------cut here---------------start------------->8---
$ guix environment --ad-hoc r-minimal help2man
$ help2man --include=R-3.4.0/doc/R.aux --no-info --output foo.1 R
$ grep August foo.1
.TH R "1" "August 2017" "R version 3.4.0 (2017-04-21) -- "You Stupid Darkness"" 
"User Commands"

$ SOURCE_DATE_EPOCH=0 help2man --include=R-3.4.0/doc/R.aux --no-info --output 
foo.1 R
$ grep August foo.1
$ grep January foo.1
.TH R "1" "January 1970" "R version 3.4.0 (2017-04-21) -- "You Stupid 
Darkness"" "User Commands"
--8<---------------cut here---------------end--------------->8---

Is SOURCE_DATE_EPOCH not set at the time help2man runs?  “r-minimal”
uses the gnu-build-system, which has a build phase set-SOURCE-DATE-EPOCH
that sets SOURCE_DATE_EPOCH to 1.

Where is this lost?

-- 
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net






reply via email to

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