bug#64984: call to date(1) uses non-portable flag

Sevan Janiyan <[email protected]>
Newsgroups gmane.lisp.guile.bugs
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.