I ran into the same problem -- the error is

Creating dvc-version.texinfo
date: illegal time format
usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ... 
            [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
make[1]: *** [dvc-version.texinfo] Error 1
make: *** [info] Error 2
mini:_.build fz$ 

...because BSD `date' has different flags. Workaround:

=== modified file 'texinfo/Makefile.in'
--- texinfo/Makefile.in 2008-08-23 06:33:26 +0000
+++ texinfo/Makefile.in 2009-07-03 17:50:43 +0000
@@ -79,7 +79,7 @@
 dvc-version.texinfo: $(top_srcdir)/configure
        @echo Creating $@
        @( echo @set VERSION $(PACKAGE_VERSION) ; \
-          date '+...@set UPDATED %F' -r $< ) > $@
+         stat -t'%F' -f'@set UPDATED %Sm' $< ) > $@
 
 .PHONY: all dvi pdf html info \
        install uninstall \


Unfortunately this is not a cross-platform solution either, and I dont' think 
there is an easy POSIX one-liner we could put here.  (See [1], and compare the 
BSD and Linux man pages for `date', `stat', `ls' at [2].)  If you insist on a 
standard date format, I believe the `automatic' solution is to include 
`mdate-sh' in the distribution, as described in (info "(automake) Texinfo")) -- 
much as we already have `install-sh'.

[1] http://www.opengroup.org/onlinepubs/009695399/utilities/contents.html
[2] http://www.freebsd.org/cgi/man.cgi  

P.S. The `configure' script in the nightly snapshot
(http://download.gna.org/dvc/) also didn't work for me.  The error reads
"AC_PROG_MKDIR_P: command not found" and then "/bin/sh: MKDIR_P@:
command not found" during make install.  This is fixed by running
autoconf, so I believe the phrase "only needed when the configure script
is not present" should be amended in the INSTALL file.

-- 
make fails on OS X at "date" call
https://bugs.launchpad.net/bugs/386779
You received this bug notification because you are a member of dvc-dev,
which is the registrant for dvc.

Status in Distributed Version Control for Emacs: New

Bug description:
Symptom:

On OS X, when running 'make' in /path/to/dvc/++build/ as per instructions (that 
is, after running 'autoconf' and 'configure'), exits abruptly with an error 
message citing unexpected 'date' behavior. (Sorry not to have copied it, should 
be deterministically easy to reproduce).


Workaround:

1. Install gdate (typically by installing the GNU 'coreutils' package via 
MacPorts/Fink).
2. Symlink 'gdate' as 'date' in some path directory which appears earlier in 
$PATH than /bin/date.

DVC's 'make' then runs to successful completion on both 10.4.11 on Intel and 
10.5.6 on PPC, so probably works on all OS X.


Fix:

Test for GNU 'date' in 'configure' and abort if not (or find a way to make the 
build script work with OS X 'date').


Analysis:

It seems likely that this defect will occur on other BSD derivatives (though I 
have no data to submit).

_______________________________________________
Dvc-dev mailing list
[email protected]
https://mail.gna.org/listinfo/dvc-dev

Reply via email to