[tor-commits] [tor-browser-bundle/master] Build pycrypto for windows.

mikeperry at torproject.org mikeperry at torproject.org
Tue Jan 21 04:47:04 UTC 2014


commit ef5cfc117f018cd6975f469a512fe449f7c8ff14
Author: David Fifield <david at bamsoftware.com>
Date:   Sun Nov 17 19:09:43 2013 +0000

    Build pycrypto for windows.
---
 gitian/descriptors/windows/gitian-pluggable-transports.yml |   11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/gitian/descriptors/windows/gitian-pluggable-transports.yml b/gitian/descriptors/windows/gitian-pluggable-transports.yml
index 1075277..07c36fc 100644
--- a/gitian/descriptors/windows/gitian-pluggable-transports.yml
+++ b/gitian/descriptors/windows/gitian-pluggable-transports.yml
@@ -19,6 +19,7 @@ remotes:
   "dir": "pyptlib"
 files:
 - "setuptools.tar.gz"
+- "pycrypto.tar.gz"
 - "ubuntu-wine.gpg"
 - "wine-wrappers"
 - "python.msi"
@@ -93,6 +94,16 @@ script: |
   LD_PRELOAD= $INSTPYTHON setup.py install --single-version-externally-managed --record /dev/null
   cd ..
   #
+  tar xzf pycrypto.tar.gz
+  cd pycrypto-*
+  find -type f | xargs touch --date="$REFERENCE_DATETIME"
+  # This is bogus, that we run the configure script in the build environment, but it seems to work.
+  # https://bugs.launchpad.net/pycrypto/+bug/1096207 for ac_cv_func_malloc_0_nonnull.
+  ac_cv_func_malloc_0_nonnull=yes sh configure --host=i686-w64-mingw32
+  LD_PRELOAD= $INSTPYTHON setup.py build_ext -c mingw32
+  LD_PRELOAD= $INSTPYTHON setup.py install
+  cd ..
+  #
   cd openssl
   find -type f | xargs touch --date="$REFERENCE_DATETIME"
   ./Configure -shared --cross-compile-prefix=i686-w64-mingw32- mingw --prefix=$INSTDIR/openssl





More information about the tor-commits mailing list