[Bug 96] New: SVMCOMPILETIME gets set incorrectly on many OS's

[email protected]
Newsgroups gmane.comp.java.vm.sablevm.bugs
Message-ID <[email protected]>
http://sablevm.org/bugs/show_bug.cgi?id=96

           Summary: SVMCOMPILETIME gets set incorrectly on many OS's
           Product: SableVM
           Version: unspecified
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: minor
          Priority: P3
         Component: default
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
                CC: [email protected]


The file sablevm/src/sablevm/Makefile.am at line 16 has the definition which sets SVMCOMPILETIME. It 
is ...
SVMCOMPILETIME = \
	$(shell date --utc '+%F %H:%M:%S UTC')

This is fine for Linux but unfortunately doesn't work on some other systems. 

Mac OS X, for example, just ignores the --utc which leads to the wrong value being supplied in the 
macro, as shown in this example (which is actually at 17:07:09 local time)
"-DSVMCOMPILETIME=\"2005-02-10 17:07:09 UTC\""

Other systems (freebsd53) produce an error instead, such as ...
date: illegal option -- -
usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ... 
            [-f fmt date | [[[[[cc]yy]mm]dd]HH]MM[.ss]] [+format]


I suggest the following string instead, which seems to work OK on Linux, Mac OS X, freebsd53, 
freebsd49, aix52 and solaris8 (so far).

SVMCOMPILETIME = \
	$(shell date -u '+%Y-%m-%d %H:%M:%S %Z')



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are the QA contact for the bug, or are watching the QA contact.
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.