Merge pull request #57 from VerusCoin/dave-dev

Get recursive dependencies
This commit is contained in:
Asher Dawes
2018-06-16 17:56:13 -07:00
committed by GitHub
9 changed files with 137 additions and 34 deletions

View File

@@ -1,10 +1,9 @@
stages:
- build
- test
build_linux:
build:linux:
image: asherd/veruscoin-cross-compiler:linux
services:
- docker:dind
variables:
DOCKER_DRIVER: overlay2
stage: build
@@ -12,7 +11,7 @@ build_linux:
key: ${CI_JOB_NAME}
paths:
- depends/built
- .ccache
- .ccache
- .zcash-params
before_script:
- mkdir .ccache || echo ccache exists
@@ -20,7 +19,7 @@ build_linux:
- mkdir .zcash-params || echo zcash-params exists
- ln -s $PWD/.zcash-params /root/.zcash-params
script:
script:
- "./zcutil/fetch-params.sh"
- "./zcutil/build.sh"
- "cp src/komodod src/komodo-cli kmd/linux/verus-cli && chmod -R +x kmd/linux/verus-cli/"
@@ -29,10 +28,8 @@ build_linux:
- kmd/linux/verus-cli
expire_in: 1 week
build_windows:
build:windows:
image: asherd/veruscoin-cross-compiler:latest
services:
- docker:dind
variables:
DOCKER_DRIVER: overlay2
stage: build
@@ -40,7 +37,7 @@ build_windows:
key: ${CI_JOB_NAME}
paths:
- depends/built
- .ccache
- .ccache
- .cargo
- .zcash-params
before_script:
@@ -50,7 +47,7 @@ build_windows:
- ln -s $PWD/.zcash-params /root/.zcash-params
- mkdir .cargo || echo .cargo exists
- ln -s $PWD/.cargo /root/.cargo
script:
script:
- "./zcutil/fetch-params.sh"
- "./zcutil/build-win.sh"
- "cp src/komodod.exe src/komodo-cli.exe src/komodo-tx.exe kmd/windows/verus-cli"
@@ -59,22 +56,53 @@ build_windows:
- kmd/windows/verus-cli
expire_in: 1 week
build_mac:
build:mac:
stage: build
tags: ["osx"]
cache:
key: ${CI_JOB_NAME}
paths:
- depends/built
- .ccache
before_script:
- mkdir .ccache || echo ccache exists
script:
script:
- "./zcutil/fetch-params.sh"
- "./zcutil/build-mac.sh | xcpretty"
- "./makeRelease.sh"
- "cp src/komodod src/komodo-cli kmd/mac/verus-cli && chmod +x kmd/mac/verus-cli/komodod && chmod +x kmd/mac/verus-cli/komodo-cli"
artifacts:
paths:
- kmd/mac/verus-cli
expire_in: 1 week
code_quality:
image: docker:stable
variables:
DOCKER_DRIVER: overlay2
allow_failure: true
services:
- docker:stable-dind
script:
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
- docker run
--env SOURCE_CODE="$PWD"
--volume "$PWD":/code
--volume /var/run/docker.sock:/var/run/docker.sock
"registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
artifacts:
paths: [gl-code-quality-report.json]
sast:
image: docker:stable
variables:
DOCKER_DRIVER: overlay2
allow_failure: true
services:
- docker:stable-dind
script:
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
- docker run
--env SAST_CONFIDENCE_LEVEL="${SAST_CONFIDENCE_LEVEL:-3}"
--volume "$PWD:/code"
--volume /var/run/docker.sock:/var/run/docker.sock
"registry.gitlab.com/gitlab-org/security-products/sast:$SP_VERSION" /app/bin/run /code
artifacts:
paths: [gl-sast-report.json]

View File

@@ -1,4 +1,4 @@
VerusCoin Command Line Tools v0.3.4-beta
VerusCoin Command Line Tools v0.3.6-beta
Contents:
komodod - VerusCoin's enhanced Komodo daemon
komodo-cli - VerusCoin's Komodo command line utility

View File

@@ -1,5 +0,0 @@
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/core"
brew "gcc@5"
brew "libidn2"

View File

@@ -1,4 +1,4 @@
VerusCoin Command Line Tools v0.3.4-beta
VerusCoin Command Line Tools v0.3.6-beta
Contents:
Brewfile - configuration for brew that specifies verus-cli requirements. Used via a "brew Brewfile" command.
komodod - VerusCoin's enhanced Komodo daemon.

View File

@@ -1,4 +1,4 @@
VerusCoin Command Line Tools v0.3.4-beta
VerusCoin Command Line Tools v0.3.6-beta
Contents:
komodod.exe - VerusCoin's enhanced Komodo daemon
komodo-cli.exe - iVerusCoin's Komodo command line utility

View File

@@ -1,17 +1,94 @@
#!/bin/sh
KMD_DIR=kmd/mac/verus-cli
binaries=("komodo-cli" "komodod")
alllibs=()
for binary in "${binaries[@]}";
do
# do the work in the destination directory
cp src/$binary $KMD_DIR
# find the dylibs to copy for komodod
DYLIBS=`otool -L $KMD_DIR/$binary | grep "/usr/local" | awk -F' ' '{ print $1 }'`
echo "copying $DYLIBS to $KMD_DIR"
# copy the dylibs to the srcdir
for dylib in $DYLIBS; do cp -rf $dylib $KMD_DIR; done
#DYLIBS=`otool -L $KMD_DIR/$binary | grep "/usr/lib" | awk -F' ' '{ print $1 }'`
# copy the other dylibs to the srcdir
#for dylib in $DYLIBS; do cp -rf $dylib $KMD_DIR; alllibs+=($dylib); done
done
libraries=("libgcc_s.1.dylib" "libgomp.1.dylib" "libidn2.0.dylib" "libstdc++.6.dylib")
for binary in "${libraries[@]}";
do
# Need to undo this for the dylibs when we are done
chmod 755 $KMD_DIR/$binary
# find the dylibs to copy for komodod
DYLIBS=`otool -L $KMD_DIR/$binary | grep "/usr/local" | awk -F' ' '{ print $1 }'`
echo "copying $DYLIBS to $KMD_DIR"
# copy the dylibs to the srcdir
for dylib in $DYLIBS; do cp -rf $dylib $KMD_DIR; alllibs+=($dylib); done
#DYLIBS=`otool -L $KMD_DIR/$binary | grep "/usr/lib" | awk -F' ' '{ print $1 }'`
# copy the other dylibs to the srcdir
#for dylib in $DYLIBS; do cp -rf $dylib $KMD_DIR; alllibs+=($dylib); newlibs+=(`basename $dylib`); done
done
indirectlibraries=("libintl.8.dylib" "libunistring.2.dylib")
newlibs=()
for binary in "${indirectlibraries[@]}"
do
# Need to undo this for the dylibs when we are done
chmod 755 src/$binary
# find the dylibs to copy for komodod
DYLIBS=`otool -L $KMD_DIR/$binary | grep "/usr/local" | awk -F' ' '{ print $1 }'`
echo "copying indirect $DYLIBS to $KMD_DIR"
# copy the dylibs to the dest dir
for dylib in $DYLIBS; do cp -rf $dylib $KMD_DIR; alllibs+=($dylib); done
#DYLIBS=`otool -L $KMD_DIR/$binary | grep "/usr/lib" | awk -F' ' '{ print $1 }'`
# copy the other dylibs to the srcdir
#for dylib in $DYLIBS; do cp -rf $dylib $KMD_DIR; alllibs+=($dylib); newlibs+=(`basename $dylib`); done
done
# now process all the new libs we found indirectly
for binary in "${newlibs[@]}";
do
# Need to undo this for the dylibs when we are done
chmod 755 src/$binary
# find the dylibs to copy for komodod
DYLIBS=`otool -L $KMD_DIR/$binary | grep "/usr/local" | awk -F' ' '{ print $1 }'`
echo "copying indirect $DYLIBS to $KMD_DIR"
# copy the dylibs to the dest dir
for dylib in $DYLIBS; do cp -rf $dylib $KMD_DIR; alllibs+=($dylib); done
#DYLIBS=`otool -L $KMD_DIR/$binary | grep "/usr/lib" | awk -F' ' '{ print $1 }'`
# copy the other dylibs to the srcdir
#for dylib in $DYLIBS; do cp -rf $dylib $KMD_DIR; alllibs+=($dylib); done
done
for binary in "${binaries[@]}";
do
# find the dylibs to copy for komodod
DYLIBS=`otool -L src/$binary | grep "/usr/local" | awk -F' ' '{ print $1 }'`
echo "copying $DYLIBS to $src"
# copy the dylibs to the srcdir
for dylib in $DYLIBS; do cp -rf $dylib src/; done
# modify komodod to point to dylibs
# modify komododi or komodo-cli to point to dylibs
echo "modifying $binary to use local libraries"
for dylib in $DYLIBS; do install_name_tool -change $dylib @executable_path/`basename $dylib` src/$binary; done;
chmod +x src/$binary
for dylib in "${alllibs[@]}"
do
echo "Next lib is $dylib "
install_name_tool -change $dylib @executable_path/`basename $dylib` $KMD_DIR/$binary
done
chmod +x $KMD_DIR/$binary
done
libs=("${libraries[@]}" "${indirectlibraries[@]}" "${newlibs[@]}")
for binary in "${libs[@]}";
do
# modify dylibs to point to dylibs
echo "modifying $binary to use local libraries"
for dylib in "${alllibs[@]}"
do
echo "Next lib is $dylib "
chmod 755 $KMD_DIR/$binary
install_name_tool -change $dylib @executable_path/`basename $dylib` $KMD_DIR/$binary
done
chmod +x $KMD_DIR/$binary
done

View File

@@ -12,6 +12,7 @@
#include "uint256.h"
#include "util.h"
#undef __cpuid
#include <boost/thread.hpp>
#include <boost/tuple/tuple_comparison.hpp>

View File

@@ -10,6 +10,7 @@
#include <map>
#undef __cpuid
#include <boost/thread/mutex.hpp>
#include <boost/thread/once.hpp>

View File

@@ -8,6 +8,7 @@
#include "threadsafety.h"
#undef __cpuid
#include <boost/thread/condition_variable.hpp>
#include <boost/thread/locks.hpp>
#include <boost/thread/mutex.hpp>