[tbb-commits] [tor-browser-build/master] Use faketime when generating dmg files

boklm at torproject.org boklm at torproject.org
Wed Feb 15 16:20:27 UTC 2017


commit 80399fe56927e17df1c4130698518445b009ae5a
Author: Nicolas Vigier <boklm at torproject.org>
Date:   Wed Feb 15 15:25:09 2017 +0100

    Use faketime when generating dmg files
---
 projects/tor-browser/config  | 1 +
 projects/tor-browser/ddmg.sh | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/projects/tor-browser/config b/projects/tor-browser/config
index 01463d9..5ee8be7 100644
--- a/projects/tor-browser/config
+++ b/projects/tor-browser/config
@@ -22,6 +22,7 @@ targets:
         - unzip
         - python
         - bzip2
+        - faketime
   windows-i686:
     var:
       mar_osname: win32
diff --git a/projects/tor-browser/ddmg.sh b/projects/tor-browser/ddmg.sh
index bc88797..20bd8f9 100755
--- a/projects/tor-browser/ddmg.sh
+++ b/projects/tor-browser/ddmg.sh
@@ -10,6 +10,9 @@ pushd [% src %]
 find . -type f | sed -e 's/^\.\///' | sort | xargs -i echo "{}={}" > [% filelist %]
 find . -type l | sed -e 's/^\.\///' | sort | xargs -i echo "{}={}" >> [% filelist %]
 
+export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
+export FAKETIME="[% USE date; GET date.format(c('timestamp'), format = '%Y-%m-%d %H:%M:%S') %]"
+
 genisoimage -D -V "Tor Browser" -no-pad -R -apple -o "$dmg_tmpdir/tbb-uncompressed.dmg" -path-list [% filelist %] -graft-points -gid 20 -dir-mode 0755 -new-dir-mode 0755
 
 dmg dmg "$dmg_tmpdir/tbb-uncompressed.dmg" [% c('dmg_out', { error_if_undef => 1 }) %]





More information about the tbb-commits mailing list