mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-04 07:07:45 +01:00
build: remove protobuf from depends
This commit is contained in:
parent
4af0447169
commit
67328bb7ca
8 changed files with 2 additions and 82 deletions
|
@ -104,7 +104,7 @@ jobs:
|
||||||
FILE_ENV="./ci/test/00_setup_env_win64.sh"
|
FILE_ENV="./ci/test/00_setup_env_win64.sh"
|
||||||
|
|
||||||
- stage: test
|
- stage: test
|
||||||
name: '32-bit + dash [GOAL: install] [GUI: BIP70 enabled]'
|
name: '32-bit + dash [GOAL: install] [gui]'
|
||||||
env: >-
|
env: >-
|
||||||
FILE_ENV="./ci/test/00_setup_env_i686.sh"
|
FILE_ENV="./ci/test/00_setup_env_i686.sh"
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,7 @@
|
||||||
export LC_ALL=C.UTF-8
|
export LC_ALL=C.UTF-8
|
||||||
|
|
||||||
export HOST=i686-pc-linux-gnu
|
export HOST=i686-pc-linux-gnu
|
||||||
export DEP_OPTS="PROTOBUF=1"
|
|
||||||
export PACKAGES="g++-multilib python3-zmq"
|
export PACKAGES="g++-multilib python3-zmq"
|
||||||
export GOAL="install"
|
export GOAL="install"
|
||||||
export BITCOIN_CONFIG="--enable-zmq --with-gui=qt5 --enable-bip70 --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++"
|
export BITCOIN_CONFIG="--enable-zmq --with-gui=qt5 --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++"
|
||||||
export CONFIG_SHELL="/bin/dash"
|
export CONFIG_SHELL="/bin/dash"
|
||||||
|
|
|
@ -9,7 +9,6 @@ WORK_PATH = $(BASEDIR)/work
|
||||||
BASE_CACHE ?= $(BASEDIR)/built
|
BASE_CACHE ?= $(BASEDIR)/built
|
||||||
SDK_PATH ?= $(BASEDIR)/SDKs
|
SDK_PATH ?= $(BASEDIR)/SDKs
|
||||||
NO_QT ?=
|
NO_QT ?=
|
||||||
PROTOBUF ?=
|
|
||||||
RAPIDCHECK ?=
|
RAPIDCHECK ?=
|
||||||
NO_WALLET ?=
|
NO_WALLET ?=
|
||||||
NO_ZMQ ?=
|
NO_ZMQ ?=
|
||||||
|
@ -101,17 +100,11 @@ wallet_packages_$(NO_WALLET) = $(wallet_packages)
|
||||||
upnp_packages_$(NO_UPNP) = $(upnp_packages)
|
upnp_packages_$(NO_UPNP) = $(upnp_packages)
|
||||||
zmq_packages_$(NO_ZMQ) = $(zmq_packages)
|
zmq_packages_$(NO_ZMQ) = $(zmq_packages)
|
||||||
|
|
||||||
protobuf_packages_$(PROTOBUF) = $(protobuf_packages)
|
|
||||||
rapidcheck_packages_$(RAPIDCHECK) = $(rapidcheck_packages)
|
rapidcheck_packages_$(RAPIDCHECK) = $(rapidcheck_packages)
|
||||||
|
|
||||||
packages += $($(host_arch)_$(host_os)_packages) $($(host_os)_packages) $(qt_packages_) $(wallet_packages_) $(upnp_packages_)
|
packages += $($(host_arch)_$(host_os)_packages) $($(host_os)_packages) $(qt_packages_) $(wallet_packages_) $(upnp_packages_)
|
||||||
native_packages += $($(host_arch)_$(host_os)_native_packages) $($(host_os)_native_packages)
|
native_packages += $($(host_arch)_$(host_os)_native_packages) $($(host_os)_native_packages)
|
||||||
|
|
||||||
ifeq ($(protobuf_packages_),)
|
|
||||||
native_packages += $(protobuf_native_packages)
|
|
||||||
packages += $(protobuf_packages)
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq ($(zmq_packages_),)
|
ifneq ($(zmq_packages_),)
|
||||||
packages += $(zmq_packages)
|
packages += $(zmq_packages)
|
||||||
endif
|
endif
|
||||||
|
@ -157,7 +150,6 @@ $(host_prefix)/share/config.site : config.site.in $(host_prefix)/.stamp_$(final_
|
||||||
-e 's|@allow_host_packages@|$(ALLOW_HOST_PACKAGES)|' \
|
-e 's|@allow_host_packages@|$(ALLOW_HOST_PACKAGES)|' \
|
||||||
-e 's|@no_qt@|$(NO_QT)|' \
|
-e 's|@no_qt@|$(NO_QT)|' \
|
||||||
-e 's|@no_zmq@|$(NO_ZMQ)|' \
|
-e 's|@no_zmq@|$(NO_ZMQ)|' \
|
||||||
-e 's|@enable_bip70@|$(PROTOBUF)|' \
|
|
||||||
-e 's|@no_wallet@|$(NO_WALLET)|' \
|
-e 's|@no_wallet@|$(NO_WALLET)|' \
|
||||||
-e 's|@no_upnp@|$(NO_UPNP)|' \
|
-e 's|@no_upnp@|$(NO_UPNP)|' \
|
||||||
-e 's|@debug@|$(DEBUG)|' \
|
-e 's|@debug@|$(DEBUG)|' \
|
||||||
|
|
|
@ -77,7 +77,6 @@ The following can be set when running make: make FOO=bar
|
||||||
NO_UPNP: Don't download/build/cache packages needed for enabling upnp
|
NO_UPNP: Don't download/build/cache packages needed for enabling upnp
|
||||||
DEBUG: disable some optimizations and enable more runtime checking
|
DEBUG: disable some optimizations and enable more runtime checking
|
||||||
RAPIDCHECK: build rapidcheck (experimental, requires cmake)
|
RAPIDCHECK: build rapidcheck (experimental, requires cmake)
|
||||||
PROTOBUF: build protobuf (used for deprecated BIP70 support)
|
|
||||||
HOST_ID_SALT: Optional salt to use when generating host package ids
|
HOST_ID_SALT: Optional salt to use when generating host package ids
|
||||||
BUILD_ID_SALT: Optional salt to use when generating build package ids
|
BUILD_ID_SALT: Optional salt to use when generating build package ids
|
||||||
|
|
||||||
|
|
|
@ -16,10 +16,6 @@ fi
|
||||||
if test -z $with_qt_bindir && test -z "@no_qt@"; then
|
if test -z $with_qt_bindir && test -z "@no_qt@"; then
|
||||||
with_qt_bindir=$depends_prefix/native/bin
|
with_qt_bindir=$depends_prefix/native/bin
|
||||||
fi
|
fi
|
||||||
if test -z $with_protoc_bindir && test -z "@no_qt@"; then
|
|
||||||
with_protoc_bindir=$depends_prefix/native/bin
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
if test -z $enable_wallet && test -n "@no_wallet@"; then
|
if test -z $enable_wallet && test -n "@no_wallet@"; then
|
||||||
enable_wallet=no
|
enable_wallet=no
|
||||||
|
@ -37,10 +33,6 @@ if test -z $enable_zmq && test -n "@no_zmq@"; then
|
||||||
enable_zmq=no
|
enable_zmq=no
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -n $enable_bip70 && test -n "@enable_bip70@"; then
|
|
||||||
enable_bip70=yes
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test x@host_os@ = xdarwin; then
|
if test x@host_os@ = xdarwin; then
|
||||||
BREW=no
|
BREW=no
|
||||||
PORT=no
|
PORT=no
|
||||||
|
|
|
@ -1,25 +0,0 @@
|
||||||
package=native_protobuf
|
|
||||||
$(package)_version=2.6.1
|
|
||||||
$(package)_download_path=https://github.com/google/protobuf/releases/download/v$($(package)_version)
|
|
||||||
$(package)_file_name=protobuf-$($(package)_version).tar.bz2
|
|
||||||
$(package)_sha256_hash=ee445612d544d885ae240ffbcbf9267faa9f593b7b101f21d58beceb92661910
|
|
||||||
|
|
||||||
define $(package)_set_vars
|
|
||||||
$(package)_config_opts=--disable-shared --without-zlib
|
|
||||||
endef
|
|
||||||
|
|
||||||
define $(package)_config_cmds
|
|
||||||
$($(package)_autoconf)
|
|
||||||
endef
|
|
||||||
|
|
||||||
define $(package)_build_cmds
|
|
||||||
$(MAKE) -C src protoc
|
|
||||||
endef
|
|
||||||
|
|
||||||
define $(package)_stage_cmds
|
|
||||||
$(MAKE) -C src DESTDIR=$($(package)_staging_dir) install-strip
|
|
||||||
endef
|
|
||||||
|
|
||||||
define $(package)_postprocess_cmds
|
|
||||||
rm -rf lib include
|
|
||||||
endef
|
|
|
@ -1,8 +1,5 @@
|
||||||
packages:=boost openssl libevent
|
packages:=boost openssl libevent
|
||||||
|
|
||||||
protobuf_native_packages = native_protobuf
|
|
||||||
protobuf_packages = protobuf
|
|
||||||
|
|
||||||
qt_packages = qrencode zlib
|
qt_packages = qrencode zlib
|
||||||
|
|
||||||
qt_linux_packages:=qt expat libxcb xcb_proto libXau xproto freetype fontconfig
|
qt_linux_packages:=qt expat libxcb xcb_proto libXau xproto freetype fontconfig
|
||||||
|
|
|
@ -1,34 +0,0 @@
|
||||||
package=protobuf
|
|
||||||
$(package)_version=$(native_$(package)_version)
|
|
||||||
$(package)_download_path=$(native_$(package)_download_path)
|
|
||||||
$(package)_file_name=$(native_$(package)_file_name)
|
|
||||||
$(package)_sha256_hash=$(native_$(package)_sha256_hash)
|
|
||||||
$(package)_dependencies=native_$(package)
|
|
||||||
$(package)_cxxflags=-std=c++11
|
|
||||||
|
|
||||||
define $(package)_set_vars
|
|
||||||
$(package)_config_opts=--disable-shared --with-protoc=$(build_prefix)/bin/protoc --disable-dependency-tracking
|
|
||||||
$(package)_config_opts_linux=--with-pic
|
|
||||||
endef
|
|
||||||
|
|
||||||
define $(package)_preprocess_cmds
|
|
||||||
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub . &&\
|
|
||||||
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub gtest/build-aux
|
|
||||||
endef
|
|
||||||
|
|
||||||
define $(package)_config_cmds
|
|
||||||
$($(package)_autoconf)
|
|
||||||
endef
|
|
||||||
|
|
||||||
define $(package)_build_cmds
|
|
||||||
$(MAKE) -C src libprotobuf.la
|
|
||||||
endef
|
|
||||||
|
|
||||||
define $(package)_stage_cmds
|
|
||||||
$(MAKE) DESTDIR=$($(package)_staging_dir) -C src install-libLTLIBRARIES install-nobase_includeHEADERS &&\
|
|
||||||
$(MAKE) DESTDIR=$($(package)_staging_dir) install-pkgconfigDATA
|
|
||||||
endef
|
|
||||||
|
|
||||||
define $(package)_postprocess_cmds
|
|
||||||
rm lib/libprotoc.a lib/*.la
|
|
||||||
endef
|
|
Loading…
Add table
Reference in a new issue