commit 40a17907e3422785c495e01bfb5c7c0f6b9e7e11 Author: Sukhbir Singh sukhbir@torproject.org Date: Fri Sep 1 17:57:11 2017 -0400
Make OS X builds reproducible
This commit makes the OS X builds reproducible. Changes borrowed from tor-browser-build.git (ddmg.sh). --- projects/tor-messenger/build.osx | 3 +++ projects/tor-messenger/config | 1 + 2 files changed, 4 insertions(+)
diff --git a/projects/tor-messenger/build.osx b/projects/tor-messenger/build.osx index 5764809..f344153 100755 --- a/projects/tor-messenger/build.osx +++ b/projects/tor-messenger/build.osx @@ -72,6 +72,9 @@ find . ! -executable -exec chmod 644 {} ; find . -type f | sed -e 's/^.///' | sort | xargs -i echo "{}={}" > ../filelist.txt find . -type l | sed -e 's/^.///' | sort | xargs -i echo "{}={}" >> ../filelist.txt
+export LD_PRELOAD=[% c("var/faketime_path") %] +export FAKETIME="[% USE date; GET date.format(c('timestamp'), format = '%Y-%m-%d %H:%M:%S') %]" + genisoimage -D -V "Tor Messenger" -no-pad -R -apple -o ../TorMessenger-uncompressed.dmg -path-list ../filelist.txt -graft-points -gid 20 -dir-mode 0755 -new-dir-mode 0755 cd .. OUTDIR='[% dest_dir _ "/" _ c("filename") %]' diff --git a/projects/tor-messenger/config b/projects/tor-messenger/config index 56f1854..ee2f401 100644 --- a/projects/tor-messenger/config +++ b/projects/tor-messenger/config @@ -68,6 +68,7 @@ targets: mar_osname: osx64 arch_deps: - genisoimage + - faketime - bsdtar linux-i686: var:
tor-commits@lists.torproject.org