From d6e910a0891b4b72f0078bd5a5a19b6100dede09 Mon Sep 17 00:00:00 2001 From: shaolinfry Date: Mon, 9 Jan 2017 07:21:45 +0000 Subject: [PATCH] Litecoin: Update gitian descriptors --- contrib/gitian-descriptors/assign_DISTNAME | 2 +- contrib/gitian-descriptors/gitian-linux.yml | 14 +++++++++----- contrib/gitian-descriptors/gitian-osx-signer.yml | 10 +++++----- contrib/gitian-descriptors/gitian-osx.yml | 14 ++++++++++---- contrib/gitian-descriptors/gitian-win-signer.yml | 8 ++++---- contrib/gitian-descriptors/gitian-win.yml | 14 +++++++++----- 6 files changed, 38 insertions(+), 24 deletions(-) diff --git a/contrib/gitian-descriptors/assign_DISTNAME b/contrib/gitian-descriptors/assign_DISTNAME index a2ca768aa..e17c2af95 100755 --- a/contrib/gitian-descriptors/assign_DISTNAME +++ b/contrib/gitian-descriptors/assign_DISTNAME @@ -9,4 +9,4 @@ if RECENT_TAG="$(git describe --exact-match HEAD)"; then else VERSION="$(git rev-parse --short=12 HEAD)" fi -DISTNAME="bitcoin-${VERSION}" +DISTNAME="litecoin-${VERSION}" diff --git a/contrib/gitian-descriptors/gitian-linux.yml b/contrib/gitian-descriptors/gitian-linux.yml index ec716cf2f..7400d41d8 100644 --- a/contrib/gitian-descriptors/gitian-linux.yml +++ b/contrib/gitian-descriptors/gitian-linux.yml @@ -1,5 +1,5 @@ --- -name: "bitcoin-core-linux-0.21" +name: "litecoin-core-linux-0.21" enable_cache: true distro: "ubuntu" suites: @@ -31,8 +31,8 @@ packages: - "binutils-riscv64-linux-gnu" - "g++-8-riscv64-linux-gnu" remotes: -- "url": "https://github.com/bitcoin/bitcoin.git" - "dir": "bitcoin" +- "url": "https://github.com/litecoin-project/litecoin.git" + "dir": "litecoin" files: [] script: | set -e -o pipefail @@ -91,7 +91,7 @@ script: | create_per-host_faketime_wrappers "2000-01-01 12:00:00" export PATH=${WRAP_DIR}:${PATH} - cd bitcoin + cd litecoin BASEPREFIX="${PWD}/depends" # Build dependencies for each host for i in $HOSTS; do @@ -141,8 +141,12 @@ script: | find . -name "lib*.la" -delete find . -name "lib*.a" -delete rm -rf ${DISTNAME}/lib/pkgconfig + # Litecoin: Delete libbitcoin from binary distribution for now, see #192 + rm -rf ${DISTNAME}/lib/ + rm -rf ${DISTNAME}/include/ + # Litecoin: ends find ${DISTNAME}/bin -type f -executable -print0 | xargs -0 -n1 -I{} ../contrib/devtools/split-debug.sh {} {} {}.dbg - find ${DISTNAME}/lib -type f -print0 | xargs -0 -n1 -I{} ../contrib/devtools/split-debug.sh {} {} {}.dbg + # find ${DISTNAME}/lib -type f -print0 | xargs -0 -n1 -I{} ../contrib/devtools/split-debug.sh {} {} {}.dbg # Litecoin: see issue 192 cp ../README.md ${DISTNAME}/ find ${DISTNAME} -not -name "*.dbg" | sort | tar --mtime="$REFERENCE_DATETIME" --no-recursion --mode='u+rw,go+r-w,a+X' --owner=0 --group=0 -c -T - | gzip -9n > ${OUTDIR}/${DISTNAME}-${i}.tar.gz find ${DISTNAME} -name "*.dbg" | sort | tar --mtime="$REFERENCE_DATETIME" --no-recursion --mode='u+rw,go+r-w,a+X' --owner=0 --group=0 -c -T - | gzip -9n > ${OUTDIR}/${DISTNAME}-${i}-debug.tar.gz diff --git a/contrib/gitian-descriptors/gitian-osx-signer.yml b/contrib/gitian-descriptors/gitian-osx-signer.yml index a4f3219c2..53604238f 100644 --- a/contrib/gitian-descriptors/gitian-osx-signer.yml +++ b/contrib/gitian-descriptors/gitian-osx-signer.yml @@ -1,5 +1,5 @@ --- -name: "bitcoin-dmg-signer" +name: "litecoin-dmg-signer" distro: "ubuntu" suites: - "bionic" @@ -8,10 +8,10 @@ architectures: packages: - "faketime" remotes: -- "url": "https://github.com/bitcoin-core/bitcoin-detached-sigs.git" +- "url": "https://github.com/litecoin-project/litecoin-detached-sigs.git" "dir": "signature" files: -- "bitcoin-osx-unsigned.tar.gz" +- "litecoin-osx-unsigned.tar.gz" script: | set -e -o pipefail @@ -30,8 +30,8 @@ script: | chmod +x ${WRAP_DIR}/${prog} done - UNSIGNED=bitcoin-osx-unsigned.tar.gz - SIGNED=bitcoin-osx-signed.dmg + UNSIGNED=litecoin-osx-unsigned.tar.gz + SIGNED=litecoin-osx-signed.dmg tar -xf ${UNSIGNED} OSX_VOLNAME="$(cat osx_volname)" diff --git a/contrib/gitian-descriptors/gitian-osx.yml b/contrib/gitian-descriptors/gitian-osx.yml index df50f4518..cbe16a85f 100644 --- a/contrib/gitian-descriptors/gitian-osx.yml +++ b/contrib/gitian-descriptors/gitian-osx.yml @@ -1,5 +1,5 @@ --- -name: "bitcoin-core-osx-0.21" +name: "litecoin-core-osx-0.21" enable_cache: true distro: "ubuntu" suites: @@ -29,8 +29,8 @@ packages: - "python3-setuptools" - "fonts-tuffy" remotes: -- "url": "https://github.com/bitcoin/bitcoin.git" - "dir": "bitcoin" +- "url": "https://github.com/litecoin-project/litecoin.git" + "dir": "litecoin" files: - "Xcode-11.3.1-11C505-extracted-SDK-with-libcxx-headers.tar.gz" script: | @@ -86,7 +86,7 @@ script: | create_per-host_faketime_wrappers "2000-01-01 12:00:00" export PATH=${WRAP_DIR}:${PATH} - cd bitcoin + cd litecoin BASEPREFIX="${PWD}/depends" mkdir -p ${BASEPREFIX}/SDKs @@ -151,6 +151,12 @@ script: | cd installed find . -name "lib*.la" -delete find . -name "lib*.a" -delete + + # Litecoin: Delete libbitcoin from binary distribution for now, see #192 + rm -rf ${DISTNAME}/lib/ + rm -rf ${DISTNAME}/include/ + # Litecoin: ends + rm -rf ${DISTNAME}/lib/pkgconfig find ${DISTNAME} | sort | tar --mtime="$REFERENCE_DATETIME" --no-recursion --mode='u+rw,go+r-w,a+X' --owner=0 --group=0 -c -T - | gzip -9n > ${OUTDIR}/${DISTNAME}-${i}.tar.gz cd ../../ diff --git a/contrib/gitian-descriptors/gitian-win-signer.yml b/contrib/gitian-descriptors/gitian-win-signer.yml index 6bcd12666..de8fff33a 100644 --- a/contrib/gitian-descriptors/gitian-win-signer.yml +++ b/contrib/gitian-descriptors/gitian-win-signer.yml @@ -1,5 +1,5 @@ --- -name: "bitcoin-win-signer" +name: "litecoin-win-signer" distro: "ubuntu" suites: - "bionic" @@ -12,11 +12,11 @@ packages: - "libtool" - "pkg-config" remotes: -- "url": "https://github.com/bitcoin-core/bitcoin-detached-sigs.git" +- "url": "https://github.com/litecoin-project/litecoin-detached-sigs.git" "dir": "signature" files: - "osslsigncode-2.0.tar.gz" -- "bitcoin-win-unsigned.tar.gz" +- "litecoin-win-unsigned.tar.gz" script: | set -e -o pipefail @@ -27,7 +27,7 @@ script: | echo "5a60e0a4b3e0b4d655317b2f12a810211c50242138322b16e7e01c6fbb89d92f osslsigncode-2.0.tar.gz" | sha256sum -c mkdir -p ${UNSIGNED_DIR} - tar -C ${UNSIGNED_DIR} -xf bitcoin-win-unsigned.tar.gz + tar -C ${UNSIGNED_DIR} -xf litecoin-win-unsigned.tar.gz tar xf osslsigncode-2.0.tar.gz cd osslsigncode-2.0 diff --git a/contrib/gitian-descriptors/gitian-win.yml b/contrib/gitian-descriptors/gitian-win.yml index 4d61cded7..4c4bf5073 100644 --- a/contrib/gitian-descriptors/gitian-win.yml +++ b/contrib/gitian-descriptors/gitian-win.yml @@ -1,5 +1,5 @@ --- -name: "bitcoin-core-win-0.21" +name: "litecoin-core-win-0.21" enable_cache: true distro: "ubuntu" suites: @@ -23,8 +23,8 @@ packages: - "ca-certificates" - "python3" remotes: -- "url": "https://github.com/bitcoin/bitcoin.git" - "dir": "bitcoin" +- "url": "https://github.com/litecoin-project/litecoin.git" + "dir": "litecoin" files: [] script: | set -e -o pipefail @@ -94,7 +94,7 @@ script: | create_per-host_compiler_wrapper "2000-01-01 12:00:00" export PATH=${WRAP_DIR}:${PATH} - cd bitcoin + cd litecoin BASEPREFIX="${PWD}/depends" # Build dependencies for each host for i in $HOSTS; do @@ -139,9 +139,13 @@ script: | mv ${DISTNAME}/bin/*.dll ${DISTNAME}/lib/ find . -name "lib*.la" -delete find . -name "lib*.a" -delete + # Litecoin: Delete libbitcoin from binary distribution for now, see #192 + rm -rf ${DISTNAME}/lib/ + rm -rf ${DISTNAME}/include/ + # Litecoin: ends rm -rf ${DISTNAME}/lib/pkgconfig find ${DISTNAME}/bin -type f -executable -print0 | xargs -0 -n1 -I{} ../contrib/devtools/split-debug.sh {} {} {}.dbg - find ${DISTNAME}/lib -type f -print0 | xargs -0 -n1 -I{} ../contrib/devtools/split-debug.sh {} {} {}.dbg + # Litecon: find ${DISTNAME}/lib -type f -print0 | xargs -0 -n1 -I{} ../contrib/devtools/split-debug.sh {} {} {}.dbg cp ../doc/README_windows.txt ${DISTNAME}/readme.txt find ${DISTNAME} -not -name "*.dbg" -type f | sort | zip -X@ ${OUTDIR}/${DISTNAME}-${i//x86_64-w64-mingw32/win64}.zip find ${DISTNAME} -name "*.dbg" -type f | sort | zip -X@ ${OUTDIR}/${DISTNAME}-${i//x86_64-w64-mingw32/win64}-debug.zip