Browse Source

Deterministic Builds config for Hush

pull/65/head
Kent Sommer 7 years ago
parent
commit
2cfdf0841d
  1. 12
      contrib/gitian-descriptors/gitian-linux.yml

12
contrib/gitian-descriptors/gitian-linux.yml

@ -1,5 +1,5 @@
---
name: "zcash-1.0.12"
name: "hush-1.0.12"
enable_cache: true
distro: "debian"
suites:
@ -25,8 +25,8 @@ packages:
- "wget"
- "zlib1g-dev"
remotes:
- "url": "https://github.com/zcash/zcash.git"
"dir": "zcash"
- "url": "https://github.com/MyHush/hush.git"
"dir": "hush"
files: []
script: |
WRAP_DIR=$HOME/wrapped
@ -81,7 +81,7 @@ script: |
create_global_faketime_wrappers "2000-01-01 12:00:00"
create_per-host_faketime_wrappers "2000-01-01 12:00:00"
cd zcash
cd hush
BASEPREFIX=`pwd`/depends
# Build dependencies for each host
for i in $HOSTS; do
@ -96,13 +96,13 @@ script: |
./autogen.sh
CONFIG_SITE=${BASEPREFIX}/`echo "${HOSTS}" | awk '{print $1;}'`/share/config.site ./configure --prefix=/
make dist
SOURCEDIST=`echo zcash-*.tar.gz`
SOURCEDIST=`echo hush-*.tar.gz`
DISTNAME=`echo ${SOURCEDIST} | sed 's/.tar.*//'`
# Correct tar file order
mkdir -p temp
pushd temp
tar xf ../$SOURCEDIST
find zcash* | sort | tar --no-recursion --mode='u+rw,go+r-w,a+X' --owner=0 --group=0 -c -T - | gzip -9n > ../$SOURCEDIST
find hush* | sort | tar --no-recursion --mode='u+rw,go+r-w,a+X' --owner=0 --group=0 -c -T - | gzip -9n > ../$SOURCEDIST
popd
ORIGPATH="$PATH"

Loading…
Cancel
Save