cvs-based WIP/ packages fail at extract stage under Linux

Aleksey Cheusov <[email protected]>
Newsgroups gmane.os.netbsd.devel.pkgsrc.wip.general
Message-ID <[email protected]>
cvs-based WIP/ packages fail at extract stage under Linux like this

    => Downloading emacs from :pserver:anonymous:@cvs.savannah.gnu.org:/sources/emacs.
    cvs [checkout aborted]: Can't parse date/time: `2008-10-10T00:00+0'
    *** Error code 1

Full log is below

    http://mova.org/~cheusov/pub/pkgsrc-distbb/Linux/current/log/20081010.0721/emacs-23.0.60nb20081010/stage_extract.html


The following patch works for me. It also tested under NetBSD-4.
I'd like to commit it unless somebody objects.


Index: cvs-package.mk
===================================================================
RCS file: /cvsroot/pkgsrc-wip/wip/mk/cvs-package.mk,v
retrieving revision 1.27
diff -u -r1.27 cvs-package.mk
--- cvs-package.mk	19 Sep 2008 21:19:27 -0000	1.27
+++ cvs-package.mk	10 Oct 2008 17:35:12 -0000
@@ -137,7 +137,7 @@
 _CVS_TAG_FLAG.${r}=	-r${CVS_TAG}
 _CVS_TAG.${r}=		${CVS_TAG}
 .  else
-_CVS_TAG_FLAG.${r}=	-D${_CVS_TODAY}T00:00+0
+_CVS_TAG_FLAG.${r}=	'-D${_CVS_TODAY} 00:00 +0000'
 _CVS_TAG.${r}=		${_CVS_TODAY:Q}
 .  endif
 _CVS_DISTFILE.${r}=	${PKGBASE}-${CVS_MODULE.${r}}-${_CVS_TAG.${r}}.tar.gz
@@ -171,7 +171,7 @@
 	${STEP_MSG} "Downloading "${CVS_MODULE.${r}:Q}" from "${CVS_ROOT.${r}:Q}"."; \
 	${SETENV} ${_CVS_ENV}						\
 	  ${_CVS_CMD} ${_CVS_FLAGS} -d ${CVS_ROOT.${r}:Q}		\
-	    checkout ${_CVS_CHECKOUT_FLAGS} ${_CVS_TAG_FLAG.${r}:Q}	\
+	    checkout ${_CVS_CHECKOUT_FLAGS} ${_CVS_TAG_FLAG.${r}}	\
 	      -d ${r} ${CVS_MODULE.${r}:Q};				\
 	${STEP_MSG} "Creating cached CVS archive "${_CVS_DISTFILE.${r}:Q}"."; \
 	${MKDIR} ${_CVS_DISTDIR:Q};					\

-- 
Best regards, Aleksey Cheusov.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
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.