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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guile; Reported by: Thomas Klausner <tk@HIDDEN>; Keywords: patch; dated Thu, 16 Mar 2017 09:28:01 UTC; Maintainer for guile is bug-guile@HIDDEN.
Added tag(s) patch. Request was from Taylan Kammer <taylan.kammer@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 26121 <at> debbugs.gnu.org:


Received: (at 26121) by debbugs.gnu.org; 1 Feb 2018 08:36:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 01 03:36:48 2018
Received: from localhost ([127.0.0.1]:51779 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ehAMS-00031h-6m
	for submit <at> debbugs.gnu.org; Thu, 01 Feb 2018 03:36:48 -0500
Received: from www16284uj.sakura.ne.jp ([153.120.39.58]:33946
 helo=idyll.hauN.org) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <itohy@HIDDEN>) id 1ehA84-0002cJ-Nr
 for 26121 <at> debbugs.gnu.org; Thu, 01 Feb 2018 03:21:57 -0500
Received: by idyll.hauN.org (Postfix, from userid 1094)
 id BCFAC7464EF; Thu,  1 Feb 2018 17:21:49 +0900 (JST)
From: itohy@HIDDEN (ITOH Yasufumi)
To: 26121 <at> debbugs.gnu.org
Subject: Re: guile-2.2.0: date -d argument problem
In-Reply-To: <20170316092719.hceyr2efulgmtzig@danbala>
References: <20170316092719.hceyr2efulgmtzig@danbala>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
X-Mailer: mnews [version 1.22PL7] 2008-02/02(Sat)
Date: Thu, 1 Feb 2018 15:12:58 +0900
Message-Id: <20180201082149.BCFAC7464EF@HIDDEN>
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 26121
X-Mailman-Approved-At: Thu, 01 Feb 2018 03:36:47 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.7 (/)

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
 




Information forwarded to bug-guile@HIDDEN:
bug#26121; Package guile. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 16 Mar 2017 09:27:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 16 05:27:35 2017
Received: from localhost ([127.0.0.1]:57974 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1coRh1-0005mT-HL
	for submit <at> debbugs.gnu.org; Thu, 16 Mar 2017 05:27:35 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57985)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <wiz@HIDDEN>) id 1coRh0-0005mH-HG
 for submit <at> debbugs.gnu.org; Thu, 16 Mar 2017 05:27:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <wiz@HIDDEN>) id 1coRgu-0002Pa-Es
 for submit <at> debbugs.gnu.org; Thu, 16 Mar 2017 05:27:29 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:43238)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <wiz@HIDDEN>)
 id 1coRgu-0002PS-Bn
 for submit <at> debbugs.gnu.org; Thu, 16 Mar 2017 05:27:28 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:48950)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <wiz@HIDDEN>) id 1coRgt-0001JE-94
 for bug-guile@HIDDEN; Thu, 16 Mar 2017 05:27:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <wiz@HIDDEN>) id 1coRgo-0002KR-Cr
 for bug-guile@HIDDEN; Thu, 16 Mar 2017 05:27:27 -0400
Received: from danbala.ifoer.tuwien.ac.at ([128.130.168.114]:49603)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <wiz@HIDDEN>)
 id 1coRgo-0002JR-5V
 for bug-guile@HIDDEN; Thu, 16 Mar 2017 05:27:22 -0400
Received: by danbala.ifoer.tuwien.ac.at (Postfix, from userid 116)
 id BA837A51C; Thu, 16 Mar 2017 10:27:19 +0100 (CET)
Date: Thu, 16 Mar 2017 10:27:19 +0100
From: Thomas Klausner <tk@HIDDEN>
To: bug-guile@HIDDEN
Subject: guile-2.2.0: date -d argument problem
Message-ID: <20170316092719.hceyr2efulgmtzig@danbala>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
Cc: Greg Troxel <gdt@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

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




Acknowledgement sent to Thomas Klausner <tk@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guile@HIDDEN. Full text available.
Report forwarded to bug-guile@HIDDEN:
bug#26121; Package guile. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 16 May 2021 18:30:02 UTC

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