From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#28241: man page in r-minimal contains timestamp Date: Sat, 26 Aug 2017 15:11:06 +0200 Message-ID: <877exqv5hx.fsf@elephly.net> References: <878ti6v60s.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41983) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlasf-0001A7-FH for bug-guix@gnu.org; Sat, 26 Aug 2017 09:12:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlasc-0003R2-9t for bug-guix@gnu.org; Sat, 26 Aug 2017 09:12:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:47466) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dlasc-0003Qw-5w for bug-guix@gnu.org; Sat, 26 Aug 2017 09:12:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dlasc-00040d-0t for bug-guix@gnu.org; Sat, 26 Aug 2017 09:12:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <878ti6v60s.fsf@elephly.net> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 28241@debbugs.gnu.org Ricardo Wurmus 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