summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2021-01-23 15:45:58 +0100
committerFlorian Pritz <bluewind@xinu.at>2021-01-23 15:45:58 +0100
commit62b297137cc2fa0ad2cc9c94c32d7fc03b8cc80a (patch)
tree0a4b731313ed3982287312dcd0fcccc8eeaa6c9f
parentf3383082a8cbb0952817f3601f03d4f94f34e0e7 (diff)
downloadbin-62b297137cc2fa0ad2cc9c94c32d7fc03b8cc80a.tar.gz
bin-62b297137cc2fa0ad2cc9c94c32d7fc03b8cc80a.tar.xz
ch: Add SOURCE_DATE_EPOCH for repro builds
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xch5
1 files changed, 5 insertions, 0 deletions
diff --git a/ch b/ch
index fb5ac1e..c875649 100755
--- a/ch
+++ b/ch
@@ -46,6 +46,11 @@ if [[ ! -d "$CHROOTS" ]]; then
return 1
fi
+# Always build official packages reproducibly
+if [[ ! -v SOURCE_DATE_EPOCH ]]; then
+ export SOURCE_DATE_EPOCH=$(date +%s)
+fi
+
__genchroot() {
sudo btrfs subvolume snapshot "$chrootdir/root" "$copydir"
}