Skip to content

Commit 74b533a

Browse files
committed
feat: make builds reproducible
By removing the timestamps from the bundled archives, builds can be made reproducible, which helps auditing. Signed-off-by: Harald Hoyer <[email protected]>
1 parent 242644c commit 74b533a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

external/CppMicroServices/framework/src/bundle/BundleResourceContainer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ bool BundleResourceContainer::GetStat(int index,
105105
const_cast<mz_zip_archive*>(&m_ZipArchive), index)
106106
? true
107107
: false;
108-
stat.modifiedTime = zipStat.m_time;
108+
stat.modifiedTime = 0;
109109
stat.crc32 = zipStat.m_crc32;
110110
// This will limit the size info from uint64 to uint32 on 32-bit
111111
// architectures. We don't care because we assume resources > 2GB

external/CppMicroServices/third_party/miniz.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
// If MINIZ_NO_TIME is specified then the ZIP archive functions will not be able to get the current time, or
171171
// get/set file times, and the C run-time funcs that get/set times won't be called.
172172
// The current downside is the times written to your archives will be from 1979.
173-
//#define MINIZ_NO_TIME
173+
#define MINIZ_NO_TIME
174174

175175
// Define MINIZ_NO_ARCHIVE_APIS to disable all ZIP archive API's.
176176
//#define MINIZ_NO_ARCHIVE_APIS

0 commit comments

Comments
 (0)