[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor-messenger-build/master] libgpg-error: build from a non-random directory
commit a22d3a05e619796865fa545ee8ff1fecc91184a6
Author: Nicolas Vigier <boklm@xxxxxxxxxxxxxx>
Date: Thu Oct 15 18:00:41 2015 +0200
libgpg-error: build from a non-random directory
---
projects/libgpg-error/build | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/projects/libgpg-error/build b/projects/libgpg-error/build
index 3d3749b..8768dc7 100644
--- a/projects/libgpg-error/build
+++ b/projects/libgpg-error/build
@@ -1,12 +1,14 @@
#!/bin/sh
set -e
+rootdir=$(pwd)
distdir="/var/tmp/dist/[% project %]"
mkdir -p "$distdir"
[% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %]
-tar xf [% project %]-[% c('version') %].tar.bz2
-cd [% project %]-[% c('version') %]
+mkdir -p /var/tmp/build
+tar -C /var/tmp/build -xf $rootdir/[% project %]-[% c('version') %].tar.bz2
+cd /var/tmp/build/[% project %]-[% c('version') %]
[% IF c("var/osx") -%]
-cp ../lock-obj-pub.x86_64-apple-darwin14.0.0.h src/syscfg/lock-obj-pub.darwin10.h
+cp $rootdir/lock-obj-pub.x86_64-apple-darwin14.0.0.h src/syscfg/lock-obj-pub.darwin10.h
echo 'int main() {}' > src/gen-posix-lock-obj.c
[% END -%]
./configure --prefix="$distdir" [% c("var/configure_opt") %][% IF c('var/windows') or c('var/osx') %] --enable-static --disable-shared[% END %]
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits