Skip to content

Commit

Permalink
gitian: bump build system to focal from bionic
Browse files Browse the repository at this point in the history
  • Loading branch information
xanimo committed Feb 5, 2024
1 parent e234707 commit 63d98e4
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 35 deletions.
20 changes: 11 additions & 9 deletions contrib/gitian-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ if [ ! -d "gitian" ]; then
fi

pushd gitian

if [ ! -d "gitian-builder" ]; then
git clone https://github.com/devrandom/gitian-builder.git
fi
Expand All @@ -123,10 +122,19 @@ pushd libdogecoin
popd

pushd gitian-builder
if [ ! -d "patches" ]; then
mkdir -p patches
fi

if [ ! -f "patches/update-mirrorbase.patch" ]; then
wget -P patches https://gist.githubusercontent.com/xanimo/b8e4bc8ac554e384090e1e5eef19b5bf/raw/76f4294fae96a56ee01acf897be523ffaa1fffcb/update-mirrorbase.patch
git apply patches/update-mirrorbase.patch
fi

if [ "$USE_DOCKER" ]; then
bin/make-base-vm --docker --suite bionic --arch amd64
bin/make-base-vm --docker --suite focal --arch amd64
elif [ "$USE_LXC" ]; then
bin/make-base-vm --lxc --suite bionic --arch amd64
bin/make-base-vm --lxc --suite focal --arch amd64
fi

if [ ! -d "inputs" ]; then
Expand All @@ -151,12 +159,6 @@ if [ ! -d "${BUILD_SUFFIX}" ]; then
mkdir -p ${BUILD_SUFFIX}
fi

# uncomment once we fix mac and windows packaging
# if [ "$SIGNER" ]; then
# DESCRIPTORS+=('win-signer' 'osx-signer')
# fi

# leaving commented in case it failure in loop above
./bin/gbuild -m ${MEM} -j ${PROC} --commit libdogecoin=${COMMIT} --url libdogecoin=${URL} ../libdogecoin/contrib/gitian-descriptors/gitian-linux.yml
if [ "$SIGNER" ]; then
./bin/gsign --signer "$SIGNER" --release "$COMMIT"-"linux" \
Expand Down
23 changes: 11 additions & 12 deletions contrib/gitian-descriptors/gitian-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,32 @@
name: "libdogecoin-linux-0.1.3"
enable_cache: true
suites:
- "bionic"
- "focal"
architectures:
- "amd64"
packages:
- "curl"
- "shellcheck"
- "g++-aarch64-linux-gnu"
- "g++-7-aarch64-linux-gnu"
- "gcc-7-aarch64-linux-gnu"
- "g++-9-aarch64-linux-gnu"
- "gcc-9-aarch64-linux-gnu"
- "binutils-aarch64-linux-gnu"
- "g++-arm-linux-gnueabihf"
- "g++-7-arm-linux-gnueabihf"
- "gcc-7-arm-linux-gnueabihf"
- "g++-9-arm-linux-gnueabihf"
- "gcc-9-arm-linux-gnueabihf"
- "binutils-arm-linux-gnueabihf"
- "g++-7-multilib"
- "gcc-7-multilib"
- "binutils-gold"
- "git-core"
- "g++-9-multilib"
- "gcc-9-multilib"
- "binutils"
- "git"
- "pkg-config"
- "autoconf"
- "libtool"
- "automake"
- "make"
- "faketime"
- "bsdmainutils"
- "ca-certificates"
- "python"
- "python3"
remotes:
- "url": "${URL}"
"dir": "libdogecoin"
Expand Down Expand Up @@ -144,7 +144,6 @@ script: |
for i in ${HOSTS}; do
export PATH=${BASEPREFIX}/${i}/native/bin:${ORIGPATH}
./contrib/scripts/build.sh --host ${i} --depends
./contrib/scripts/combine.sh --target .libs/libdogecoin.a --append "depends/${i}/lib/libunistring.a"
./contrib/scripts/pack.sh --host=${i} --prefix=build --commit="0.1.3"
done
Expand Down
5 changes: 3 additions & 2 deletions contrib/gitian-descriptors/gitian-osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: "libdogecoin-osx-0.1.3"
enable_cache: true
suites:
- "bionic"
- "focal"
architectures:
- "amd64"
packages:
Expand All @@ -22,6 +22,8 @@ packages:
- "python3"
- "python3-dev"
- "python3-setuptools"
- "libtinfo5"
- "xorriso"
remotes:
- "url": "${URL}"
"dir": "libdogecoin"
Expand Down Expand Up @@ -111,7 +113,6 @@ script: |
for i in ${HOSTS}; do
export PATH=${BASEPREFIX}/${i}/native/bin:${ORIGPATH}
./contrib/scripts/build.sh --host ${i} --depends
./contrib/scripts/combine.sh --target .libs/libdogecoin.a --append "depends/${i}/lib/libunistring.a"
./contrib/scripts/pack.sh --host=${i} --prefix=build --commit="0.1.3"
done
Expand Down
10 changes: 5 additions & 5 deletions contrib/gitian-descriptors/gitian-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: "libdogecoin-win-0.1.3"
enable_cache: true
suites:
- "bionic"
- "focal"
architectures:
- "amd64"
packages:
Expand All @@ -15,12 +15,13 @@ packages:
- "automake"
- "faketime"
- "bsdmainutils"
- "mingw-w64"
- "g++-mingw-w64"
- "g++-mingw-w64-x86-64"
- "g++"
- "g++-mingw-w64-i686"
- "nsis"
- "zip"
- "ca-certificates"
- "python"
- "python3"
- "rename"
remotes:
- "url": "${URL}"
Expand Down Expand Up @@ -131,7 +132,6 @@ script: |
for i in ${HOSTS}; do
export PATH=${BASEPREFIX}/${i}/native/bin:${ORIGPATH}
./contrib/scripts/build.sh --host ${i} --depends
./contrib/scripts/combine.sh --target .libs/libdogecoin.a --append "depends/${i}/lib/libunistring.a"
./contrib/scripts/pack.sh --host=${i} --prefix=build --commit="0.1.3"
done
Expand Down
4 changes: 2 additions & 2 deletions contrib/scripts/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ if [ "$HOST" ]; then
;;
esac
BUILD_SUFFIX="libdogecoin"
EXE="`pwd`/such$BINARY_SUFFIX `pwd`/sendtx$BINARY_SUFFIX"
EXE="`pwd`/such$BINARY_SUFFIX `pwd`/sendtx$BINARY_SUFFIX `pwd`/spvnode$BINARY_SUFFIX"
FILES="$LIB $EXE"
fi

Expand Down Expand Up @@ -159,7 +159,7 @@ if [ ! -f "$BUILD_PREFIX/$BUILD_SUFFIX/checksums.txt" ]; then
if [ ! -d "`pwd`/bin" ]; then
mkdir -p `pwd`/bin
fi
mv such* sendtx* "`pwd`/bin"
mv such* sendtx* spvnode* "`pwd`/bin"
popd
fi

Expand Down
10 changes: 5 additions & 5 deletions contrib/scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ has_param() {
return 1
}

COMMON_PACKAGES="autoconf automake autotools-dev bison build-essential curl ca-certificates golang libtool libtool-bin pkg-config procps python3 python3-venv qemu-user rsync valgrind"
COMMON_PACKAGES="autoconf automake autotools-dev bison build-essential curl ca-certificates libtool libtool-bin pkg-config procps qemu-user rsync valgrind"
ARCH_PACKAGES=""
OS_PACKAGES=""
DEPENDS=""
Expand All @@ -36,7 +36,7 @@ TARGET_ARCH=""
if has_param '--depends' "$@"; then
DEPENDS=1
else
COMMON_PACKAGES+=" libevent-dev"
COMMON_PACKAGES+=" libevent-dev libunistring-dev"
fi

if has_param '--docker' "$@"; then
Expand Down Expand Up @@ -65,7 +65,7 @@ if has_param '--host' "$@"; then
if [ $DEPENDS ]; then
ARCH_PACKAGES+="g++-mingw-w64 "
fi
ARCH_PACKAGES+="nsis wine64 wine-stable bc wine-binfmt"
ARCH_PACKAGES+="nsis wine64 wine-stable bc wine-binfmt zip"
TARGET_ARCH="amd64"
$USE_SUDO dpkg --add-architecture $TARGET_ARCH
;;
Expand All @@ -79,12 +79,12 @@ if has_param '--host' "$@"; then
;;
"x86_64-apple-darwin15")
OS_PACKAGES="cmake zlib xorriso go"
ARCH_PACKAGES+="g++ cmake libz-dev libcap-dev libtinfo5 libplist-utils librsvg2-bin libz-dev libtiff-tools libncurses-dev lld python2-minimal golang"
ARCH_PACKAGES+="g++ cmake libz-dev libcap-dev libtinfo5 libplist-utils librsvg2-bin libz-dev libtiff-tools libncurses-dev lld python2-minimal"
TARGET_ARCH="amd64"
;;
"arm64-apple-darwin")
OS_PACKAGES="cmake zlib xorriso go"
ARCH_PACKAGES+="g++ cmake libz-dev libcap-dev libtinfo5 libplist-utils librsvg2-bin libz-dev libtiff-tools libncurses-dev lld python2-minimal golang"
ARCH_PACKAGES+="g++ cmake libz-dev libcap-dev libtinfo5 libplist-utils librsvg2-bin libz-dev libtiff-tools libncurses-dev lld python2-minimal"
TARGET_ARCH="arm64"
;;
"x86_64-pc-linux-gnu")
Expand Down

0 comments on commit 63d98e4

Please sign in to comment.