Skip to content

Commit 67cb62c

Browse files
authored
Merge pull request #2824 from jamescowens/fix_boost_1.89+configure.ac
build: Add multiple depends source fallback capability and Fix configure.ac changes for boost >=1.89
2 parents 994343a + 676a48a commit 67cb62c

File tree

4 files changed

+18
-13
lines changed

4 files changed

+18
-13
lines changed

configure.ac

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,14 +1075,11 @@ define(MINIMUM_REQUIRED_BOOST, 1.60.0)
10751075
define(MINIMUM_BOOST_SYSTEM_HEADER, 1.89.0)
10761076

10771077
dnl Check for Boost libs
1078-
dnl For Boost >= 1.89.0, Boost::System is header nly, so we only link to it if we're using a version that doesn't match Boost >= 1.89
1078+
dnl For Boost >= 1.89.0, Boost::System is header only, so we only link to it if we're using a version that doesn't match Boost >= 1.89
10791079
AX_BOOST_BASE([MINIMUM_REQUIRED_BOOST])
1080-
AX_BOOST_BASE([MINIMUM_BOOST_SYSTEM_HEADER], [
1081-
BOOST_SYSTEM_IS_HEADER="1"
1082-
], [
1083-
BOOST_SYSTEM_IS_HEADER="0"
1084-
AX_BOOST_SYSTEM
1085-
])
1080+
1081+
dnl Check whether Boost >= MINIMUM_BOOST_SYSTEM_HEADER so we know if Boost.System is header-only AC_MSG_CHECKING([for boostlib >= $MINIMUM_BOOST_SYSTEM_HEADER]) AX_BOOST_BASE([MINIMUM_BOOST_SYSTEM_HEADER], [BOOST_SYSTEM_IS_HEADER="1"], [BOOST_SYSTEM_IS_HEADER="0"]) AC_MSG_RESULT([$BOOST_SYSTEM_IS_HEADER])
1082+
10861083
AX_BOOST_FILESYSTEM
10871084
AX_BOOST_ZLIB
10881085
AX_BOOST_IOSTREAMS

depends/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ SDK_PATH ?= $(BASEDIR)/SDKs
1010
NO_QT ?=
1111
NO_WALLET ?=
1212
NO_UPNP ?=
13-
FALLBACK_DOWNLOAD_PATH ?= https://bitcoincore.org/depends-sources
13+
FALLBACK_DOWNLOAD_PATHS ?= https://bitcoincore.org/depends-sources https://gridcoin-depends-backup-sources.s3.us-east-1.amazonaws.com
14+
1415

1516
C_STANDARD ?= gnu11
1617
CXX_STANDARD ?= c++17

depends/funcs.mk

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,16 @@ define fetch_file_inner
2929
endef
3030

3131
define fetch_file
32-
( test -f $$($(1)_source_dir)/$(4) || \
33-
( $(call fetch_file_inner,$(1),$(2),$(3),$(4),$(5)) || \
34-
$(call fetch_file_inner,$(1),$(FALLBACK_DOWNLOAD_PATH),$(3),$(4),$(5))))
32+
( \
33+
test -f $$($(1)_source_dir)/$(4) || \
34+
( \
35+
$(call fetch_file_inner,$(1),$(2),$(3),$(4),$(5)) \
36+
$(foreach fallback_url,$(FALLBACK_DOWNLOAD_PATHS), \
37+
|| (echo "Primary download failed, trying fallback: $(fallback_url)" && $(call fetch_file_inner,$(1),$(fallback_url),$(3),$(4),$(5))) \
38+
) \
39+
|| (echo "All fallbacks failed for $(3)." && exit 1) \
40+
) \
41+
)
3542
endef
3643

3744
define int_get_build_recipe_hash

depends/packages/boost.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package=boost
22
GCCFLAGS?=
3-
$(package)_version=1.81.0
3+
$(package)_version=1.89.0
44
$(package)_download_path=https://archives.boost.io/release/$($(package)_version)/source/
55
$(package)_file_name=boost_$(subst .,_,$($(package)_version)).tar.gz
6-
$(package)_sha256_hash=205666dea9f6a7cfed87c7a6dfbeb52a2c1b9de55712c9c1a87735d7181452b6
6+
$(package)_sha256_hash=9de758db755e8330a01d995b0a24d09798048400ac25c03fc5ea9be364b13c93
77
$(package)_dependencies=zlib
88

99
define $(package)_set_vars

0 commit comments

Comments
 (0)