GNU bug report logs - #26121
guile-2.2.0: date -d argument problem

Previous Next

Package: guile;

Reported by: Thomas Klausner <tk <at> giga.or.at>

Date: Thu, 16 Mar 2017 09:28:01 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 26121 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#26121; Package guile. (Thu, 16 Mar 2017 09:28:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Thomas Klausner <tk <at> giga.or.at>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Thu, 16 Mar 2017 09:28:02 GMT) Full text and rfc822 format available.

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

From: Thomas Klausner <tk <at> giga.or.at>
To: bug-guile <at> gnu.org
Cc: Greg Troxel <gdt <at> lexort.com>
Subject: guile-2.2.0: date -d argument problem
Date: Thu, 16 Mar 2017 10:27:19 +0100
Hi!

When building guile-2.2.0 on NetBSD, I see:

gmake[2]: Entering directory '/scratch/lang/guile21/work/guile-2.2.0/libguile'
date: Expected digit in canonical time
date: -d
date: ^
Usage: date [-ajnu] [-d date] [-r seconds] [+format] [[[[[[CC]yy]mm]dd]HH]MM[.SS]]
  GEN      libpath.h

 Thomas




Information forwarded to bug-guile <at> gnu.org:
bug#26121; Package guile. (Thu, 01 Feb 2018 08:37:02 GMT) Full text and rfc822 format available.

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

From: itohy <at> netbsd.org (ITOH Yasufumi)
To: 26121 <at> debbugs.gnu.org
Subject: Re: guile-2.2.0: date -d argument problem
Date: Thu, 1 Feb 2018 15:12:58 +0900
Hello,
date options should precede the format string.

% date -u +'%Y-%m-%d %T' -d @100000
date: Expected digit in canonical time
date: -d
date: ^
Usage: date [-ajnu] [-d date] [-r seconds] [+format] [[[[[[CC]yy]mm]dd]HH]MM[.SS]]
% date -u -d @100000 +'%Y-%m-%d %T'
1970-01-02 03:46:40

Possibly the first example is trying to set the system time to '-d'.

Here's patch to guile-2.0.14.
Thanks,

--- libguile/Makefile.am.orig	2016-12-15 09:03:33.000000000 +0900
+++ libguile/Makefile.am	2018-02-01 05:47:59.438589465 +0900
@@ -722,7 +722,7 @@
 	@echo '	{ "LIBS",	   "@GUILE_LIBS@" }, \' >> libpath.tmp
 	@echo '	{ "CFLAGS",	   "@GUILE_CFLAGS@" }, \' >> libpath.tmp
 	@BUILD_DATE="$${SOURCE_DATE_EPOCH:-`date '+%s'`}" ; \
-	 echo '	{ "buildstamp",    "'`date -u +'%Y-%m-%d %T' -d @$$BUILD_DATE`'" }, \' >> libpath.tmp
+	 echo '	{ "buildstamp",    "'`date -u -d @$$BUILD_DATE +'%Y-%m-%d %T'`'" }, \' >> libpath.tmp
 	@echo '}' >> libpath.tmp
 	$(AM_V_GEN)mv libpath.tmp libpath.h
 




Added tag(s) patch. Request was from Taylan Kammer <taylan.kammer <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 16 May 2021 18:28:02 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 28 days ago.

Previous Next


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