[tbb-commits] [tor-browser-build/master] Bug 20426: Build libevent for osx using faketime

boklm at torproject.org boklm at torproject.org
Fri Apr 14 13:59:20 UTC 2017


commit d2c018a26ec61f85a2fa7a0f9a7360025ff0fb24
Author: Nicolas Vigier <boklm at torproject.org>
Date:   Fri Apr 14 15:56:53 2017 +0200

    Bug 20426: Build libevent for osx using faketime
---
 projects/libevent/build  | 4 ++++
 projects/libevent/config | 6 ++++++
 2 files changed, 10 insertions(+)

diff --git a/projects/libevent/build b/projects/libevent/build
index 2bed816..0e4e074 100644
--- a/projects/libevent/build
+++ b/projects/libevent/build
@@ -7,6 +7,10 @@ tar -C /var/tmp/build -xf [% project %]-[% c('version') %].tar.gz
 cd /var/tmp/build/[% project %]-[% c('version') %]
 ./autogen.sh
 ./configure --disable-static [% c("var/configure_opt") %] --prefix=$distdir
+[% IF c("var/osx") -%]
+  export LD_PRELOAD=[% c("var/faketime_path") %]
+  export FAKETIME="[% USE date; GET date.format(c('timestamp'), format = '%Y-%m-%d %H:%M:%S') %]"
+[% END -%]
 make -j4
 make install
 cd /var/tmp/dist
diff --git a/projects/libevent/config b/projects/libevent/config
index 8bd4b4e..15ada11 100644
--- a/projects/libevent/config
+++ b/projects/libevent/config
@@ -7,6 +7,12 @@ gpg_keyring: libevent.gpg
 filename: '[% project %]-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %].tar.gz'
 remote_docker: 1
 
+targets:
+  osx-x86_64:
+    var:
+      arch_deps:
+        - faketime
+
 input_files:
   - project: docker-image
   - name: '[% c("var/compiler") %]'



More information about the tbb-commits mailing list