EbmlVersion.cpp: always set EbmlCodeDate to "Unknown"
This is done in order to enable deterministic builds while still keeping the library API and ABI compatible. Patch by Ed Schouten <ed@nuxi.nl>.
This commit is contained in:
parent
81e7ffd512
commit
1c93d143cf
@ -1,3 +1,9 @@
|
||||
2015-11-21 Moritz Bunkus <moritz@bunkus.org>
|
||||
|
||||
* EbmlVersion.cpp: in order to enable deterministic builds the
|
||||
EbmlCodeDate variable has been set to "Unknown" instead of the
|
||||
date and time of compilation. Patch by Ed Schouten <ed@nuxi.nl>.
|
||||
|
||||
2015-11-18 Moritz Bunkus <moritz@bunkus.org>
|
||||
|
||||
* libebml_t.h: use C99-style integer typedefs instead of BSD-style
|
||||
|
@ -111,11 +111,6 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
// For compilers that don't define __TIMESTAMP__ (e.g. gcc 2.95, gcc 3.2)
|
||||
#ifndef __TIMESTAMP__
|
||||
#define __TIMESTAMP__ __DATE__ " " __TIME__
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define EBML_PRETTYLONGINT(c) (c ## ll)
|
||||
#else // __GNUC__
|
||||
|
@ -39,6 +39,10 @@
|
||||
START_LIBEBML_NAMESPACE
|
||||
|
||||
const std::string EbmlCodeVersion = "1.3.3";
|
||||
const std::string EbmlCodeDate = __TIMESTAMP__;
|
||||
|
||||
// Up to version 1.3.3 this library exported a build date string. As
|
||||
// this made the build non-reproducible, replace it by a placeholder to
|
||||
// remain API compatible.
|
||||
const std::string EbmlCodeDate = "Unknown";
|
||||
|
||||
END_LIBEBML_NAMESPACE
|
||||
|
Loading…
Reference in New Issue
Block a user