[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor-browser-bundle/master] Build pycrypto for mac.
commit 54b61f18ffdf786498ce20b3c3f5789e38e5932b
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date: Tue Nov 12 06:32:58 2013 +0000
Build pycrypto for mac.
---
.../descriptors/mac/gitian-pluggable-transports.yml | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/gitian/descriptors/mac/gitian-pluggable-transports.yml b/gitian/descriptors/mac/gitian-pluggable-transports.yml
index 08885ee..b0c7870 100644
--- a/gitian/descriptors/mac/gitian-pluggable-transports.yml
+++ b/gitian/descriptors/mac/gitian-pluggable-transports.yml
@@ -18,6 +18,7 @@ remotes:
- "url": "https://git.torproject.org/pluggable-transports/pyptlib.git"
"dir": "pyptlib"
files:
+- "pycrypto.tar.gz"
- "apple-uni-sdk-10.6_20110407-0.flosoft1_i386.deb"
- "multiarch-darwin11-cctools127.2-gcc42-5666.3-llvmgcc42-2336.1-Linux-120724.tar.xz"
- "dzip.sh"
@@ -37,8 +38,11 @@ script: |
#export CXXFLAGS=$CFLAGS
#export LDFLAGS=$CFLAGS
export PATH="$PATH:/usr/apple-osx/bin/"
- export CFLAGS="-I/usr/lib/apple/SDKs/MacOSX10.6.sdk/usr/include/ -I/usr/lib/gcc/i686-apple-darwin10/4.2.1/include/ -I. -L/usr/lib/apple/SDKs/MacOSX10.6.sdk/usr/lib/ -L/usr/lib/apple/SDKs/MacOSX10.6.sdk/usr/lib/system/ -mmacosx-version-min=10.5"
- export LDFLAGS="-L/usr/lib/apple/SDKs/MacOSX10.6.sdk/usr/lib/ -L/usr/lib/apple/SDKs/MacOSX10.6.sdk/usr/lib/system/ -mmacosx-version-min=10.5"
+ export CC=/usr/apple-osx/bin/i686-apple-darwin11-gcc
+ # http://bugs.python.org/issue9437
+ export LDSHARED="$CC -pthread -shared"
+ export CFLAGS="-I/usr/lib/apple/SDKs/MacOSX10.6.sdk/usr/include/ -I/usr/lib/gcc/i686-apple-darwin10/4.2.1/include/ -I. -L/usr/lib/apple/SDKs/MacOSX10.6.sdk/usr/lib/ -L/usr/lib/apple/SDKs/MacOSX10.6.sdk/usr/lib/system/ -F/usr/lib/apple/SDKs/MacOSX10.6.sdk/System/Library/Frameworks -mmacosx-version-min=10.5"
+ export LDFLAGS="-L/usr/lib/apple/SDKs/MacOSX10.6.sdk/usr/lib/ -L/usr/lib/apple/SDKs/MacOSX10.6.sdk/usr/lib/system/ -F/usr/lib/apple/SDKs/MacOSX10.6.sdk/System/Library/Frameworks -mmacosx-version-min=10.5"
#
mkdir -p $PTDIR/
mkdir -p $OUTDIR/
@@ -56,6 +60,16 @@ script: |
cp -a build/pyptlib $PTDIR/
cd ..
#
+ tar xzf pycrypto.tar.gz
+ cd pycrypto-*
+ find -type f | xargs touch --date="$REFERENCE_DATETIME"
+ # 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-apple-darwin11
+ LDSHARED="$LDSHARED -framework Python" python setup.py build_ext --build-lib build -I/usr/lib/apple/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Python.framework/Headers
+ python setup.py build --build-lib build
+ cp -a build/Crypto $PTDIR/
+ cd ..
+ #
cd openssl
find -type f | xargs touch --date="$REFERENCE_DATETIME"
CC=cc ./Configure --cross-compile-prefix=i686-apple-darwin11- $CFLAGS darwin-i386-cc --prefix=$INSTDIR/openssl
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits