diff options
Diffstat (limited to 'recipes-extended/upx/libucl/Reproducible-build.patch')
| -rw-r--r-- | recipes-extended/upx/libucl/Reproducible-build.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/recipes-extended/upx/libucl/Reproducible-build.patch b/recipes-extended/upx/libucl/Reproducible-build.patch new file mode 100644 index 00000000..8398fe02 --- /dev/null +++ b/recipes-extended/upx/libucl/Reproducible-build.patch | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | From: Robert Luberda <robert@debian.org> | ||
| 2 | Date: Sun, 31 May 2015 13:09:15 +0200 | ||
| 3 | Subject: 03 Reproducible build | ||
| 4 | |||
| 5 | Introduced BUILD_DATETIME pre-processor variable to | ||
| 6 | be used instead of __DATE__ __TIME__ to make build | ||
| 7 | reproducible. | ||
| 8 | --- | ||
| 9 | src/ucl_util.c | 4 ++++ | ||
| 10 | 1 file changed, 4 insertions(+) | ||
| 11 | |||
| 12 | diff --git a/src/ucl_util.c b/src/ucl_util.c | ||
| 13 | index 7e49a2a..58aa0ea 100644 | ||
| 14 | --- a/src/ucl_util.c | ||
| 15 | +++ b/src/ucl_util.c | ||
| 16 | @@ -55,7 +55,11 @@ static const char __ucl_copyright[] = | ||
| 17 | "<markus@oberhumer.com>\n" | ||
| 18 | "http://www.oberhumer.com $\n\n" | ||
| 19 | "$Id: UCL version: v" UCL_VERSION_STRING ", " UCL_VERSION_DATE " $\n" | ||
| 20 | +#if defined (BUILD_DATETIME) | ||
| 21 | + "$Built: " BUILD_DATETIME " $\n" | ||
| 22 | +#else | ||
| 23 | "$Built: " __DATE__ " " __TIME__ " $\n" | ||
| 24 | +#endif | ||
| 25 | "$Info: " ACC_INFO_OS | ||
| 26 | #if defined(ACC_INFO_OS_POSIX) | ||
| 27 | "/" ACC_INFO_OS_POSIX | ||
