Merge pull request #57 from VerusCoin/dave-dev
Get recursive dependencies
This commit is contained in:
@@ -1,10 +1,9 @@
|
|||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
- test
|
||||||
|
|
||||||
build_linux:
|
build:linux:
|
||||||
image: asherd/veruscoin-cross-compiler:linux
|
image: asherd/veruscoin-cross-compiler:linux
|
||||||
services:
|
|
||||||
- docker:dind
|
|
||||||
variables:
|
variables:
|
||||||
DOCKER_DRIVER: overlay2
|
DOCKER_DRIVER: overlay2
|
||||||
stage: build
|
stage: build
|
||||||
@@ -12,7 +11,7 @@ build_linux:
|
|||||||
key: ${CI_JOB_NAME}
|
key: ${CI_JOB_NAME}
|
||||||
paths:
|
paths:
|
||||||
- depends/built
|
- depends/built
|
||||||
- .ccache
|
- .ccache
|
||||||
- .zcash-params
|
- .zcash-params
|
||||||
before_script:
|
before_script:
|
||||||
- mkdir .ccache || echo ccache exists
|
- mkdir .ccache || echo ccache exists
|
||||||
@@ -20,7 +19,7 @@ build_linux:
|
|||||||
- mkdir .zcash-params || echo zcash-params exists
|
- mkdir .zcash-params || echo zcash-params exists
|
||||||
- ln -s $PWD/.zcash-params /root/.zcash-params
|
- ln -s $PWD/.zcash-params /root/.zcash-params
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- "./zcutil/fetch-params.sh"
|
- "./zcutil/fetch-params.sh"
|
||||||
- "./zcutil/build.sh"
|
- "./zcutil/build.sh"
|
||||||
- "cp src/komodod src/komodo-cli kmd/linux/verus-cli && chmod -R +x kmd/linux/verus-cli/"
|
- "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
|
- kmd/linux/verus-cli
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
|
|
||||||
build_windows:
|
build:windows:
|
||||||
image: asherd/veruscoin-cross-compiler:latest
|
image: asherd/veruscoin-cross-compiler:latest
|
||||||
services:
|
|
||||||
- docker:dind
|
|
||||||
variables:
|
variables:
|
||||||
DOCKER_DRIVER: overlay2
|
DOCKER_DRIVER: overlay2
|
||||||
stage: build
|
stage: build
|
||||||
@@ -40,7 +37,7 @@ build_windows:
|
|||||||
key: ${CI_JOB_NAME}
|
key: ${CI_JOB_NAME}
|
||||||
paths:
|
paths:
|
||||||
- depends/built
|
- depends/built
|
||||||
- .ccache
|
- .ccache
|
||||||
- .cargo
|
- .cargo
|
||||||
- .zcash-params
|
- .zcash-params
|
||||||
before_script:
|
before_script:
|
||||||
@@ -50,7 +47,7 @@ build_windows:
|
|||||||
- ln -s $PWD/.zcash-params /root/.zcash-params
|
- ln -s $PWD/.zcash-params /root/.zcash-params
|
||||||
- mkdir .cargo || echo .cargo exists
|
- mkdir .cargo || echo .cargo exists
|
||||||
- ln -s $PWD/.cargo /root/.cargo
|
- ln -s $PWD/.cargo /root/.cargo
|
||||||
script:
|
script:
|
||||||
- "./zcutil/fetch-params.sh"
|
- "./zcutil/fetch-params.sh"
|
||||||
- "./zcutil/build-win.sh"
|
- "./zcutil/build-win.sh"
|
||||||
- "cp src/komodod.exe src/komodo-cli.exe src/komodo-tx.exe kmd/windows/verus-cli"
|
- "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
|
- kmd/windows/verus-cli
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
|
|
||||||
build_mac:
|
build:mac:
|
||||||
stage: build
|
stage: build
|
||||||
tags: ["osx"]
|
tags: ["osx"]
|
||||||
cache:
|
cache:
|
||||||
key: ${CI_JOB_NAME}
|
key: ${CI_JOB_NAME}
|
||||||
paths:
|
paths:
|
||||||
- depends/built
|
- depends/built
|
||||||
- .ccache
|
|
||||||
before_script:
|
script:
|
||||||
- mkdir .ccache || echo ccache exists
|
|
||||||
script:
|
|
||||||
- "./zcutil/fetch-params.sh"
|
- "./zcutil/fetch-params.sh"
|
||||||
- "./zcutil/build-mac.sh | xcpretty"
|
- "./zcutil/build-mac.sh | xcpretty"
|
||||||
- "./makeRelease.sh"
|
- "./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:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- kmd/mac/verus-cli
|
- kmd/mac/verus-cli
|
||||||
expire_in: 1 week
|
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]
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
VerusCoin Command Line Tools v0.3.4-beta
|
VerusCoin Command Line Tools v0.3.6-beta
|
||||||
Contents:
|
Contents:
|
||||||
komodod - VerusCoin's enhanced Komodo daemon
|
komodod - VerusCoin's enhanced Komodo daemon
|
||||||
komodo-cli - VerusCoin's Komodo command line utility
|
komodo-cli - VerusCoin's Komodo command line utility
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
tap "homebrew/bundle"
|
|
||||||
tap "homebrew/cask"
|
|
||||||
tap "homebrew/core"
|
|
||||||
brew "gcc@5"
|
|
||||||
brew "libidn2"
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
VerusCoin Command Line Tools v0.3.4-beta
|
VerusCoin Command Line Tools v0.3.6-beta
|
||||||
Contents:
|
Contents:
|
||||||
Brewfile - configuration for brew that specifies verus-cli requirements. Used via a "brew Brewfile" command.
|
Brewfile - configuration for brew that specifies verus-cli requirements. Used via a "brew Brewfile" command.
|
||||||
komodod - VerusCoin's enhanced Komodo daemon.
|
komodod - VerusCoin's enhanced Komodo daemon.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
VerusCoin Command Line Tools v0.3.4-beta
|
VerusCoin Command Line Tools v0.3.6-beta
|
||||||
Contents:
|
Contents:
|
||||||
komodod.exe - VerusCoin's enhanced Komodo daemon
|
komodod.exe - VerusCoin's enhanced Komodo daemon
|
||||||
komodo-cli.exe - iVerusCoin's Komodo command line utility
|
komodo-cli.exe - iVerusCoin's Komodo command line utility
|
||||||
|
|||||||
@@ -1,17 +1,94 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
KMD_DIR=kmd/mac/verus-cli
|
||||||
|
|
||||||
binaries=("komodo-cli" "komodod")
|
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[@]}";
|
for binary in "${binaries[@]}";
|
||||||
do
|
do
|
||||||
# find the dylibs to copy for komodod
|
# modify komododi or komodo-cli to point to dylibs
|
||||||
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
|
|
||||||
echo "modifying $binary to use local libraries"
|
echo "modifying $binary to use local libraries"
|
||||||
for dylib in $DYLIBS; do install_name_tool -change $dylib @executable_path/`basename $dylib` src/$binary; done;
|
for dylib in "${alllibs[@]}"
|
||||||
chmod +x src/$binary
|
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
|
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
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
#include "uint256.h"
|
#include "uint256.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
|
#undef __cpuid
|
||||||
#include <boost/thread.hpp>
|
#include <boost/thread.hpp>
|
||||||
#include <boost/tuple/tuple_comparison.hpp>
|
#include <boost/tuple/tuple_comparison.hpp>
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
|
#undef __cpuid
|
||||||
#include <boost/thread/mutex.hpp>
|
#include <boost/thread/mutex.hpp>
|
||||||
#include <boost/thread/once.hpp>
|
#include <boost/thread/once.hpp>
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
#include "threadsafety.h"
|
#include "threadsafety.h"
|
||||||
|
|
||||||
|
#undef __cpuid
|
||||||
#include <boost/thread/condition_variable.hpp>
|
#include <boost/thread/condition_variable.hpp>
|
||||||
#include <boost/thread/locks.hpp>
|
#include <boost/thread/locks.hpp>
|
||||||
#include <boost/thread/mutex.hpp>
|
#include <boost/thread/mutex.hpp>
|
||||||
|
|||||||
Reference in New Issue
Block a user