GNU bug report logs - #64984
call to date(1) uses non-portable flag

Previous Next

Package: guile;

Reported by: Sevan Janiyan <venture37 <at> geeklan.co.uk>

Date: Tue, 1 Aug 2023 01:24:02 UTC

Severity: normal

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sevan Janiyan <venture37 <at> geeklan.co.uk>
To: bug-guile <at> gnu.org
Subject: call to date(1) uses non-portable flag
Date: Tue, 1 Aug 2023 02:23:13 +0100
Hi,
In libguile/Makefile there is a call to date(1) for recording the build 
stamp as so:
  @BUILD_DATE="$${SOURCE_DATE_EPOCH:-`date '+%s'`}" ; \
   echo ' { "buildstamp",    "'`date -u +'%Y-%m-%d %T' -d 
@$$BUILD_DATE`'" }, \' >> libpath.tmp

The -d flag doesn't necessarily mean the same thing across different 
operating systems, e.g on macOS it means "Set the kernel's value for 
daylight saving time." vs the coreutils version which means "display 
time described by STRING, not 'now'"

The command errors but the build continues so it is non-fatal which is 
perhaps why it has gone undetected?



Sevan




This bug report was last modified 1 year and 322 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.