Skip to contentSkip to conversation

cvs date & timezone problem

PATCH John Lee 2 participants 2 messages Apr 3, 2008 – Apr 4, 2008

lore
Share & tools
lore

John Lee

author
#0 lore raw

Hi,

we can specify mindate and maxdate to the patch of cvs source now, but there's one problem: different timezone.

for example, cvs log enlightenment.pc.in

RCS file: /var/cvs/e/e17/apps/e/enlightenment.pc.in,v
Working file: enlightenment.pc.in
head: 1.3
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
----------------------------
revision 1.3
date: 2008-03-31 22:35:23 +0800; author: raster; state: Exp; lines: +1 -1;

use @PACKAGE@
----------------------------
revision 1.2
date: 2008-03-29 05:33:51 +0800; author: raster; state: Exp; lines: +1 -2;

set libs to be modules dir - we wont use it anyway.
----------------------------
revision 1.1
date: 2008-03-29 04:53:26 +0800; author: raster; state: Exp;

add pkgconfig supprot to e17 itself.
=============================================================================

you can see 2008-03-29 04:53:26 +0800 in Taiwan is actually 03-28 in UTC. so Holger kindly put

file://pkgconfig-fix.patch;patch=1;pnum=0;mindate=20080328

in e-wm_cvs.bb

However, if I build the e-wm in Taiwan, `enlightenment.pc.in' does not exist yet on 20080328 Taiwan time. The build will fail.

I would suggest set cvs fetch in bitbake to always use UTC+0 for this matter and we set the min and max date according to UTC+0 instead of our own timezone. Enclosed please find the patch to the bitbake 1.8 branch.

Regards,
John

bb/fetch/cvs.py +1 -1
Index: lib/bb/fetch/cvs.py
===================================================================
@@ -111,7 +111,7 @@
         if 'norecurse' in ud.parm:
             options.append("-l")
         if ud.date:
-            options.append("-D %s" % ud.date)
+            options.append("-D \"%s UTC\"" % ud.date)
         if ud.tag:
             options.append("-r %s" % ud.tag)
 
#1 lore raw
Quoted 11 lines · On Thursday 03 April 2008 10:36:05 John Lee wrote:

Hi,

However, if I build the e-wm in Taiwan, `enlightenment.pc.in' does not exist yet on 20080328 Taiwan time. The build will fail.

I would suggest set cvs fetch in bitbake to always use UTC+0 for this matter and we set the min and max date according to UTC+0 instead of our own timezone. Enclosed please find the patch to the bitbake 1.8 branch.

patch looks sane, I will apply it.

thank you

	z.

PS: I always assumed the server's time will be used...