Use $SOURCE_DATE_EPOCH when updating timestamps of manual pages
This makes the package reproducible at build time. Closes: #879169
This commit is contained in:
parent
ee3e8be5b7
commit
1f1dce740e
|
@ -1,3 +1,11 @@
|
||||||
|
live-build (1:20170921) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
|
* Use $SOURCE_DATE_EPOCH when updating timestamps of manual pages in order
|
||||||
|
to make the package reproducible at build time. Closes: #879169
|
||||||
|
Thanks to Chris Lamb <lamby@debian.org> for the patch.
|
||||||
|
|
||||||
|
-- Raphaël Hertzog <hertzog@debian.org> Mon, 20 Nov 2017 22:02:22 +0100
|
||||||
|
|
||||||
live-build (1:20170920) unstable; urgency=medium
|
live-build (1:20170920) unstable; urgency=medium
|
||||||
|
|
||||||
* Auto-update version strings in manual pages.
|
* Auto-update version strings in manual pages.
|
||||||
|
|
|
@ -13,11 +13,11 @@ set -e
|
||||||
PROGRAM="LIVE\\\-BUILD"
|
PROGRAM="LIVE\\\-BUILD"
|
||||||
VERSION="$(cd .. && dpkg-parsechangelog -S Version)"
|
VERSION="$(cd .. && dpkg-parsechangelog -S Version)"
|
||||||
|
|
||||||
DATE="$(LC_ALL=C date +%Y\\\\-%m\\\\-%d)"
|
DATE="$(LC_ALL=C date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y\\\\-%m\\\\-%d)"
|
||||||
|
|
||||||
DAY="$(LC_ALL=C date +%d)"
|
DAY="$(LC_ALL=C date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%d)"
|
||||||
MONTH="$(LC_ALL=C date +%m)"
|
MONTH="$(LC_ALL=C date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%m)"
|
||||||
YEAR="$(LC_ALL=C date +%Y)"
|
YEAR="$(LC_ALL=C date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y)"
|
||||||
|
|
||||||
echo "Updating version headers..."
|
echo "Updating version headers..."
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue