Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update toolchains, deps and further cleanup #1857

Merged
merged 36 commits into from
Apr 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
3817309
Suppress depends related superfluous warnings
prasannavl Mar 29, 2023
4d01ec8
Fix passthrough string quote
prasannavl Mar 29, 2023
074b619
Fix windres, bcrypt failures
prasannavl Apr 2, 2023
8419b02
Cleanup build, workflows, dockerfiles
prasannavl Apr 3, 2023
3002caf
Cleanup comments
prasannavl Apr 3, 2023
a8e8585
Refactor default var setup
prasannavl Apr 3, 2023
779bac9
Cleanup comments
prasannavl Apr 3, 2023
d02392b
Add safe_rm_rf and simplify left file list
prasannavl Apr 3, 2023
71788b4
Fix shellcheck
prasannavl Apr 3, 2023
7255c60
Fix arm core images
prasannavl Apr 3, 2023
7855ba6
More cleanup, unify packaging, safer rm
prasannavl Apr 3, 2023
f7fa1d9
Apply default conf across all arch, conf args append
prasannavl Apr 3, 2023
d70597b
Apply glibc compat only on linux builds
prasannavl Apr 3, 2023
e3e4b23
Clean up obsolete comments
prasannavl Apr 3, 2023
0fa27ad
Cleanup unmaintained files
prasannavl Apr 3, 2023
89fe9a9
Remove install.md
prasannavl Apr 3, 2023
41b58a2
Remove libdeficonsensus dyn lib, defi-wallet
prasannavl Apr 4, 2023
c798744
Enable static linking
prasannavl Apr 4, 2023
570d1b6
Revert boost changes
prasannavl Apr 4, 2023
98fb360
Merge branch 'master' into pvl/cleanup-unmaintained-files
prasannavl Apr 4, 2023
33cb49d
Remove outdated man pages
prasannavl Apr 4, 2023
8f1ffaa
Remove debian packaging related file
prasannavl Apr 4, 2023
34eb5fb
Bump boost min to 1.77, remove obsolete checks
prasannavl Apr 4, 2023
5d5fbf3
Revert boost config cleanup
prasannavl Apr 4, 2023
cda2d7d
More cleanups, nsis, gitian
prasannavl Apr 4, 2023
14184b7
Remove boost reduce exports change
prasannavl Apr 4, 2023
e2830f9
Cleanup boost obsolete check
prasannavl Apr 4, 2023
435c625
Reorganize scripts, merge share and contrib
prasannavl Apr 4, 2023
b9249a7
Fix docker script
prasannavl Apr 4, 2023
ed35ac6
Remove wallet tool test
prasannavl Apr 4, 2023
a4ed14d
static libgcc, disable tests and benches on CI builds
prasannavl Apr 4, 2023
2fc1d78
Fix CI builds to use consistent compilers
prasannavl Apr 4, 2023
6eb1b87
Better consistency in toolchains
prasannavl Apr 4, 2023
c1ebadd
Remove cdrkit, libdmg and switch to docker multiplatform base
prasannavl Apr 4, 2023
9bc463f
Update cppcheck version
prasannavl Apr 4, 2023
15d1a4f
Merge branch 'master' into pvl/post-cleanup
prasannavl Apr 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ src/config/defi-config.h
src/config/defi-config.h.in
src/config/stamp-h1
src/obj
share/setup.nsi

.deps
.dirstamp
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/build-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:
- master

env:
MAKE_CONF_ARGS: --disable-bench
BUILD_VERSION: latest # Computed

jobs:
Expand All @@ -22,7 +21,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -64,7 +63,7 @@ jobs:
- uses: actions/checkout@v3

- name: Build and package
run: DOCKERFILE="arm-linux-gnueabihf" TARGET="arm-linux-gnueabihf" ./make.sh docker-release-git
run: TARGET="arm-linux-gnueabihf" ./make.sh docker-release-git

- name: Publish artifact - arm-linux-gnueabihf
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:

jobs:
linux:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
os: [ubuntu-latest]
env:
BUILD_VERSION: latest # Computed
GITHUB_PULL_REQUEST: ${{ github.event.number }}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/tests-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
os: [ubuntu-latest]
env:
BUILD_VERSION: latest # Computed
GITHUB_PULL_REQUEST: ${{ github.event.number }}
PYTHON: 3.6
TRAVIS_BUILD_DIR: ${{ github.workspace }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/tests-jellyfish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ on:
pull_request:
branches:
- master

env:
BUILD_VERSION: latest # Computed

jobs:
test:
name: Test
Expand All @@ -27,7 +29,7 @@ jobs:
- name: Set build version
run: |
cd defichain
DOCKERFILE="x86_64-pc-linux-gnu-clang" TARGET="x86_64-pc-linux-gnu" ./make.sh git_version
./make.sh git_version

- name: Build and package
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
fetch-depth: 0

- name: Build Node
run: MAKE_CONF_ARGS="--disable-bench --disable-tests" ./make.sh build
run: TARGET="x86_64-pc-linux-gnu" ./make.sh build

- name: Upload Binaries
uses: actions/upload-artifact@v3
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ src/config/defi-config.h
src/config/defi-config.h.in
src/config/stamp-h1
src/obj
share/setup.nsi
share/qt/Info.plist

src/univalue/gen

Expand Down
28 changes: 14 additions & 14 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ DEFID_BIN=$(top_builddir)/src/$(DEFI_DAEMON_NAME)$(EXEEXT)
DEFI_CLI_BIN=$(top_builddir)/src/$(DEFI_CLI_NAME)$(EXEEXT)
DEFI_TX_BIN=$(top_builddir)/src/$(DEFI_TX_NAME)$(EXEEXT)

support_examples_dir = $(pkgdatadir)/examples
support_examples__DATA = $(top_srcdir)/share/examples/default.conf \
$(top_srcdir)/share/examples/pruned.conf
support_examples_dir = $(pkgdatadir)/conf-examples
support_examples__DATA = $(top_srcdir)/contrib/conf-examples/default.conf \
$(top_srcdir)/contrib/conf-examples/pruned.conf

support_rpcauth_dir = $(pkgdatadir)/rpcauth
support_rpcauth__DATA = $(top_srcdir)/share/rpcauth/rpcauth.py \
$(top_srcdir)/share/rpcauth/README.md
support_rpcauth__DATA = $(top_srcdir)/contrib/rpcauth/rpcauth.py \
$(top_srcdir)/contrib/rpcauth/README.md

support_service_dir = $(pkgdatadir)/service
support_service__DATA = \
Expand All @@ -29,22 +29,22 @@ support_service__DATA = \
$(top_srcdir)/contrib/init/defid.service

support_bash_dir = $(datadir)/bash-completion/completions
support_bash__DATA = $(top_srcdir)/contrib/defi-cli.bash-completion \
$(top_srcdir)/contrib/defi-tx.bash-completion \
$(top_srcdir)/contrib/defid.bash-completion
support_bash__DATA = $(top_srcdir)/contrib/bash-completion/defi-cli.bash-completion \
$(top_srcdir)/contrib/bash-completion/defi-tx.bash-completion \
$(top_srcdir)/contrib/bash-completion/defid.bash-completion

empty :=
space := $(empty) $(empty)

DIST_DOCS = $(wildcard doc/*.md) $(wildcard doc/release-notes/*.md)
DIST_CONTRIB = $(top_srcdir)/contrib/defi-cli.bash-completion \
$(top_srcdir)/contrib/defi-tx.bash-completion \
$(top_srcdir)/contrib/defid.bash-completion \
DIST_CONTRIB = $(top_srcdir)/contrib/bash-completion/defi-cli.bash-completion \
$(top_srcdir)/contrib/bash-completion/defi-tx.bash-completion \
$(top_srcdir)/contrib/bash-completion/defid.bash-completion \
$(top_srcdir)/contrib/init \
$(top_srcdir)/contrib/install_db4.sh
DIST_SHARE = \
$(top_srcdir)/share/genbuild.sh \
$(top_srcdir)/share/rpcauth
$(top_srcdir)/contrib/genbuild.sh \
$(top_srcdir)/contrib/rpcauth

BIN_CHECKS=$(top_srcdir)/contrib/devtools/symbol-check.py \
$(top_srcdir)/contrib/devtools/security-check.py
Expand Down Expand Up @@ -197,6 +197,6 @@ clean-docs:

clean-local: clean-docs
rm -rf coverage_percent.txt test_defi.coverage/ total.coverage/ test/tmp/ cache/
rm -rf test/functional/__pycache__ test/functional/test_framework/__pycache__ test/cache share/rpcauth/__pycache__
rm -rf test/functional/__pycache__ test/functional/test_framework/__pycache__ test/cache contrib/rpcauth/__pycache__
rm -rf osx_volname dist/ dpi36.background.tiff dpi72.background.tiff

2 changes: 1 addition & 1 deletion ci/extended_lint/04_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

export LC_ALL=C

CPPCHECK_VERSION=1.86
CPPCHECK_VERSION=2.10
curl -s https://codeload.github.com/danmar/cppcheck/tar.gz/${CPPCHECK_VERSION} | tar -zxf - --directory /tmp/
(cd /tmp/cppcheck-${CPPCHECK_VERSION}/ && make CFGDIR=/tmp/cppcheck-${CPPCHECK_VERSION}/cfg/ > /dev/null)
export PATH="$PATH:/tmp/cppcheck-${CPPCHECK_VERSION}/"
1 change: 0 additions & 1 deletion ci/test/06_script_a.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ END_FOLD

BEGIN_FOLD distdir
DOCKER_EXEC make distdir VERSION=$HOST
DOCKER_EXEC cp -r ../share "defi-$HOST/"
DOCKER_EXEC cp -r ../contrib "defi-$HOST/"
END_FOLD

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@
# If not, you must set rpcuser and rpcpassword to secure the JSON-RPC API.
#
# The config option `rpcauth` can be added to server startup argument. It is set at initialization time
# using the output from the script in share/rpcauth/rpcauth.py after providing a username:
# using the output from the script in contrib/rpcauth/rpcauth.py after providing a username:
#
# ./share/rpcauth/rpcauth.py alice
# ./contrib/rpcauth/rpcauth.py alice
# String to be appended to defi.conf:
# rpcauth=alice:f7efda5c189b999524f151318c0c86$d5b51b3beffbc02b724e5d095828e0bc8b2456e9ac8757ae3211a5d9b16a22ae
# Your password:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@
# If not, you must set rpcuser and rpcpassword to secure the JSON-RPC API.
#
# The config option `rpcauth` can be added to server startup argument. It is set at initialization time
# using the output from the script in share/rpcauth/rpcauth.py after providing a username:
# using the output from the script in contrib/rpcauth/rpcauth.py after providing a username:
#
# ./share/rpcauth/rpcauth.py alice
# ./contrib/rpcauth/rpcauth.py alice
# String to be appended to defi.conf:
# rpcauth=alice:f7efda5c189b999524f151318c0c86$d5b51b3beffbc02b724e5d095828e0bc8b2456e9ac8757ae3211a5d9b16a22ae
# Your password:
Expand Down
2 changes: 1 addition & 1 deletion contrib/devtools/optimize-pngs.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def content_hash(filename):

pngcrush = 'pngcrush'
git = 'git'
folders = ["share/pixmaps"]
folders = ["contrib/pixmaps"]
basePath = subprocess.check_output([git, 'rev-parse', '--show-toplevel'], universal_newlines=True, encoding='utf8').rstrip('\n')
totalSaveBytes = 0
noHashChange = True
Expand Down
5 changes: 2 additions & 3 deletions contrib/dockerfiles/aarch64-linux-gnu.dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG TARGET=aarch64-linux-gnu

# -----------
FROM ubuntu:20.04 as builder-base
FROM ubuntu:latest as builder-base
ARG TARGET
LABEL org.defichain.name="defichain-builder-base"
LABEL org.defichain.arch=${TARGET}
Expand All @@ -27,7 +27,6 @@ RUN ./make.sh clean-depends && ./make.sh build-deps
# -----------
FROM builder-base as builder
ARG TARGET
ARG BUILD_VERSION=

LABEL org.defichain.name="defichain-builder"
LABEL org.defichain.arch=${TARGET}
Expand All @@ -44,7 +43,7 @@ RUN mkdir /app && make prefix=/ DESTDIR=/app install && cp /work/README.md /app/

# -----------
### Actual image that contains defi binaries
FROM arm64v8/ubuntu:20.04
FROM --platform=linux/arm64 ubuntu:latest
ARG TARGET
LABEL org.defichain.name="defichain"
LABEL org.defichain.arch=${TARGET}
Expand Down
5 changes: 2 additions & 3 deletions contrib/dockerfiles/arm-linux-gnueabihf.dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG TARGET=arm-linux-gnueabihf

# -----------
FROM ubuntu:20.04 as builder-base
FROM ubuntu:latest as builder-base
ARG TARGET
LABEL org.defichain.name="defichain-builder-base"
LABEL org.defichain.arch=${TARGET}
Expand All @@ -27,7 +27,6 @@ RUN ./make.sh clean-depends && ./make.sh build-deps
# -----------
FROM builder-base as builder
ARG TARGET
ARG BUILD_VERSION=

LABEL org.defichain.name="defichain-builder"
LABEL org.defichain.arch=${TARGET}
Expand All @@ -44,7 +43,7 @@ RUN mkdir /app && make prefix=/ DESTDIR=/app install && cp /work/README.md /app/

# -----------
### Actual image that contains defi binaries
FROM arm32v7/ubuntu:20.04
FROM --platform=linux/arm/v7 ubuntu:latest
ARG TARGET
LABEL org.defichain.name="defichain"
LABEL org.defichain.arch=${TARGET}
Expand Down
5 changes: 2 additions & 3 deletions contrib/dockerfiles/x86_64-apple-darwin18.dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG TARGET=x86_64-apple-darwin18

# -----------
FROM ubuntu:20.04 as builder-base
FROM ubuntu:latest as builder-base
ARG TARGET
LABEL org.defichain.name="defichain-builder-base"
LABEL org.defichain.arch=${TARGET}
Expand All @@ -28,7 +28,6 @@ RUN ./make.sh clean-depends && ./make.sh build-deps
# -----------
FROM builder-base as builder
ARG TARGET
ARG BUILD_VERSION=

LABEL org.defichain.name="defichain-builder"
LABEL org.defichain.arch=${TARGET}
Expand All @@ -45,7 +44,7 @@ RUN mkdir /app && make prefix=/ DESTDIR=/app install && cp /work/README.md /app/

# -----------
### Actual image that contains defi binaries
FROM ubuntu:20.04
FROM ubuntu:latest
ARG TARGET
LABEL org.defichain.name="defichain"
LABEL org.defichain.arch=${TARGET}
Expand Down
9 changes: 5 additions & 4 deletions contrib/dockerfiles/x86_64-pc-linux-gnu-clang.dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG TARGET=x86_64-pc-linux-gnu

# -----------
FROM ubuntu:20.04 as builder-base
FROM debian:10 as builder-base
ARG TARGET
LABEL org.defichain.name="defichain-builder-base"
LABEL org.defichain.arch=${TARGET}
Expand All @@ -22,12 +22,13 @@ LABEL org.defichain.arch=${TARGET}
WORKDIR /work
COPY ./depends ./depends

RUN ./make.sh clean-depends && ./make.sh build-deps
RUN ./make.sh clean-depends && \
export MAKE_DEPS_ARGS="x86_64_linux_CC=clang-16 x86_64_linux_CXX=clang++-16" && \
./make.sh build-deps

# -----------
FROM builder-base as builder
ARG TARGET
ARG BUILD_VERSION=

LABEL org.defichain.name="defichain-builder"
LABEL org.defichain.arch=${TARGET}
Expand All @@ -45,7 +46,7 @@ RUN mkdir /app && make prefix=/ DESTDIR=/app install && cp /work/README.md /app/

# -----------
### Actual image that contains defi binaries
FROM ubuntu:20.04
FROM ubuntu:latest
ARG TARGET
LABEL org.defichain.name="defichain"
LABEL org.defichain.arch=${TARGET}
Expand Down
12 changes: 0 additions & 12 deletions contrib/dockerfiles/x86_64-pc-linux-gnu-dev.dockerfile

This file was deleted.

5 changes: 2 additions & 3 deletions contrib/dockerfiles/x86_64-pc-linux-gnu.dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG TARGET=x86_64-pc-linux-gnu

# -----------
FROM ubuntu:20.04 as builder-base
FROM ubuntu:latest as builder-base
ARG TARGET
LABEL org.defichain.name="defichain-builder-base"
LABEL org.defichain.arch=${TARGET}
Expand All @@ -26,7 +26,6 @@ RUN ./make.sh clean-depends && ./make.sh build-deps
# -----------
FROM builder-base as builder
ARG TARGET
ARG BUILD_VERSION=

LABEL org.defichain.name="defichain-builder"
LABEL org.defichain.arch=${TARGET}
Expand All @@ -44,7 +43,7 @@ RUN mkdir /app && make prefix=/ DESTDIR=/app install && cp /work/README.md /app/

# -----------
### Actual image that contains defi binaries
FROM ubuntu:20.04
FROM ubuntu:latest
ARG TARGET
LABEL org.defichain.name="defichain"
LABEL org.defichain.arch=${TARGET}
Expand Down
5 changes: 2 additions & 3 deletions contrib/dockerfiles/x86_64-w64-mingw32.dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG TARGET=x86_64-w64-mingw32

# -----------
FROM ubuntu:20.04 as builder-base
FROM ubuntu:latest as builder-base
ARG TARGET
LABEL org.defichain.name="defichain-builder-base"
LABEL org.defichain.arch=${TARGET}
Expand Down Expand Up @@ -30,7 +30,6 @@ RUN ./make.sh clean-depends && ./make.sh build-deps
# -----------
FROM builder-base as builder
ARG TARGET
ARG BUILD_VERSION=

LABEL org.defichain.name="defichain-builder"
LABEL org.defichain.arch=${TARGET}
Expand All @@ -47,7 +46,7 @@ RUN mkdir /app && make prefix=/ DESTDIR=/app install && cp /work/README.md /app/

# -----------
### Actual image that contains defi binaries
FROM ubuntu:20.04
FROM ubuntu:latest
ARG TARGET
LABEL org.defichain.name="defichain"
LABEL org.defichain.arch=${TARGET}
Expand Down
2 changes: 1 addition & 1 deletion share/genbuild.sh → contrib/genbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ git_check_in_repo() {
DESC=""
SUFFIX=""
CURRENT_BRANCH=""
if [ "${BITCOIN_GENBUILD_NO_GIT}" != "1" ] && [ -e "$(command -v git)" ] && [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ] && git_check_in_repo share/genbuild.sh; then
if [ "${BITCOIN_GENBUILD_NO_GIT}" != "1" ] && [ -e "$(command -v git)" ] && [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ] && git_check_in_repo contrib/genbuild.sh; then
# clean 'dirty' status of touched files that haven't been modified
git diff >/dev/null 2>/dev/null

Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
Loading