Replaced the timestamps in version.properties, the man pages and the documentation with SOURCE_DATE_EPOCH
Emmanuel Bourg
7 years ago
7 | 7 |
- Refreshed debian/copyright
|
8 | 8 |
* Moved the core library, the annotations and the Ant tasks to distinct
|
9 | 9 |
packages (Closes: #808707)
|
|
10 |
* Reproducibility: replaced the timestamps in version.properties,
|
|
11 |
the man pages and the documentation with SOURCE_DATE_EPOCH
|
10 | 12 |
* Depend on libasm-java (>= 5.0) instead of libasm4-java
|
11 | 13 |
* Removed junit4 and jdepend from the runtime dependencies
|
12 | 14 |
* debian/rules: Generate the man pages during the build phase
|
|
0 |
Description: Make the timestamps reproducible
|
|
1 |
Author: Emmanuel Bourg <ebourg@apache.org>
|
|
2 |
Forwarded: no
|
|
3 |
--- a/src/java/edu/umd/cs/findbugs/Version.java
|
|
4 |
+++ b/src/java/edu/umd/cs/findbugs/Version.java
|
|
5 |
@@ -92,6 +92,12 @@
|
|
6 |
SimpleDateFormat eclipseDateFormat = new SimpleDateFormat("yyyyMMdd", Locale.ENGLISH);
|
|
7 |
SimpleDateFormat releaseDateFormat = new SimpleDateFormat(UpdateChecker.PLUGIN_RELEASE_DATE_FMT, Locale.ENGLISH);
|
|
8 |
Date now = new Date();
|
|
9 |
+ if (System.getenv("SOURCE_DATE_EPOCH") != null) {
|
|
10 |
+ now = new Date(Long.parseLong(System.getenv("SOURCE_DATE_EPOCH")) * 1000L);
|
|
11 |
+ dateFormat.setTimeZone(java.util.TimeZone.getTimeZone("UTC"));
|
|
12 |
+ eclipseDateFormat.setTimeZone(java.util.TimeZone.getTimeZone("UTC"));
|
|
13 |
+ releaseDateFormat.setTimeZone(java.util.TimeZone.getTimeZone("UTC"));
|
|
14 |
+ }
|
|
15 |
COMPUTED_DATE = dateFormat.format(now);
|
|
16 |
COMPUTED_ECLIPSE_DATE = eclipseDateFormat.format(now);
|
|
17 |
String tmp = releaseDateFormat.format(now);
|
11 | 11 |
0012-verbose-tests.patch
|
12 | 12 |
0013-dont-fetch-external-libraries.patch
|
13 | 13 |
0014-asm-compatibility.patch
|
|
14 |
0015-reproducibility.patch
|