@@ -76,17 +76,33 @@ compile_bitcoin_from_source()
7676 -DCMAKE_CXX_COMPILER=" /usr/pkg/gcc12/bin/g++" \
7777 > /dev/null 2>&1
7878 ;;
79- gentoo )
79+ OpenBSD )
8080 cmake -B build \
81+ -DBUILD_GUI=ON \
8182 -DWITH_ZMQ=ON \
83+ -DENABLE_IPC=OFF \
8284 > /dev/null 2>&1
8385 ;;
84- * )
86+ gentoo )
8587 cmake -B build \
86- -DBUILD_GUI=ON \
8788 -DWITH_ZMQ=ON \
8889 > /dev/null 2>&1
8990 ;;
91+ * )
92+ if [ -f /etc/os-release ] &&
93+ [ " $( grep " ^ID=" /etc/os-release | cut -d= -f2 | tr -d ' "' ) " = ' ol' ]; then
94+ cmake -B build \
95+ -DBUILD_GUI=ON \
96+ -DWITH_ZMQ=ON \
97+ -DENABLE_IPC=OFF \
98+ > /dev/null 2>&1
99+ else
100+ cmake -B build \
101+ -DBUILD_GUI=ON \
102+ -DWITH_ZMQ=ON \
103+ > /dev/null 2>&1
104+ fi
105+ ;;
90106 esac
91107
92108 log_info ' Compiling source code. Please wait.'
@@ -314,6 +330,7 @@ bitcoin_tarball_download_extract_test_install()
314330 readonly BITCOIN_CORE_EXTRACT_DIR=" ${TEMP_DIRECTORY} /bitcoin-core"
315331 readonly BITCOIN_INSTALL_BIN_SOURCE=" ${BITCOIN_CORE_EXTRACT_DIR} /bin"
316332 readonly BITCOIN_INSTALL_LIB_SOURCE=" ${BITCOIN_CORE_EXTRACT_DIR} /lib"
333+ readonly BITCOIN_INSTALL_LIBEXEC_SOURCE=" ${BITCOIN_CORE_EXTRACT_DIR} /libexec"
317334 readonly BITCOIN_INSTALL_INCLUDE_SOURCE=" ${BITCOIN_CORE_EXTRACT_DIR} /include"
318335 readonly BITCOIN_INSTALL_MAN_SOURCE=" ${BITCOIN_CORE_EXTRACT_DIR} /share/man/man1"
319336 readonly BITCOIN_INSTALL_DESTINATION=' /usr/local'
@@ -456,9 +473,9 @@ bitcoin_tarball_test()
456473 # only sign test_bitcoin if on arm64 and target version is before 28.2
457474 if [ " ${TARGET_ARCHITECTURE} " = ' arm64' ] &&
458475 ! is_arm64_test_bitcoin_signed " ${target_bitcoin_version} " ; then
459- codesign -s - " ${BITCOIN_INSTALL_BIN_SOURCE } " /test_bitcoin
476+ codesign -s - " ${BITCOIN_INSTALL_LIBEXEC_SOURCE } " /test_bitcoin
460477 fi
461- UNIT_TEST_RESPONSE=" $( " ${BITCOIN_INSTALL_BIN_SOURCE } " /test_bitcoin 2>&1 ) "
478+ UNIT_TEST_RESPONSE=" $( " ${BITCOIN_INSTALL_LIBEXEC_SOURCE } " /test_bitcoin 2>&1 ) "
462479 readonly UNIT_TEST_RESPONSE
463480 case " ${UNIT_TEST_RESPONSE} " in
464481 * ' No errors detected' * ) ;;
@@ -900,20 +917,16 @@ install_build_dependencies_dnf()
900917 amzn)
901918 throw_error " Building from source on Amazon Linux is unsupported."
902919 ;;
920+ fedora) ;;
903921 rhel)
904922 sudo subscription-manager identity > /dev/null 2>&1 ||
905923 throw_error " Register your RHEL subscription with 'sudo subscription-manager subscribe'."
906924 sudo dnf config-manager --enable " rhel-${OS_MAJOR_VERSION_ID} -for-${TARGET_ARCHITECTURE} -appstream-rpms" ||
907925 throw_error " Failed to enable EPEL release rhel-${OS_MAJOR_VERSION_ID} -for-${TARGET_ARCHITECTURE} -appstream-rpms."
908926 ;;
909- * ) ;;
910- esac
911-
912- case " $( grep " ^ID=" /etc/os-release | cut -d= -f2 | tr -d ' "' ) " in
913- fedora) ;;
914927 * )
915928 dnf list installed epel-release > /dev/null 2>&1 ||
916- sudo dnf --assumeyes install " https://dl.fedoraproject.org/pub/epel/epel-release-latest-${OS_MAJOR_VERSION_ID} .noarch.rpm"
929+ sudo dnf --assumeyes install " https://dl.fedoraproject.org/pub/epel/epel-release-latest-${OS_MAJOR_VERSION_ID} .noarch.rpm" > /dev/null 2>&1
917930 ;;
918931 esac
919932
@@ -922,6 +935,10 @@ install_build_dependencies_dnf()
922935 dependencies=$( curl --fail --silent --show-error --location --retry 5 " ${BUILD_DEPENDENCIES_URL} " )
923936 [ -z " ${dependencies:- } " ] && throw_error " The list of dependencies is empty."
924937
938+ # TODO: install capnp on Oracle Linux
939+ [ " $( grep " ^ID=" /etc/os-release | cut -d= -f2 | tr -d ' "' ) " = ' ol' ] &&
940+ dependencies=" $( echo " ${dependencies} " | sed ' /capnp/d' ) "
941+
925942 printf ' %s\n' " ${dependencies} " | tr -d ' \r' | xargs sudo dnf install --assumeyes > /dev/null
926943}
927944
@@ -950,7 +967,7 @@ install_build_dependencies_freebsd()
950967 dependencies=$( torsocks curl --fail --silent --show-error --location --retry 2 " ${BUILD_DEPENDENCIES_URL} " ) ||
951968 dependencies=$( curl --fail --silent --show-error --location --retry 5 " ${BUILD_DEPENDENCIES_URL} " )
952969 [ -z " ${dependencies:- } " ] && throw_error " The list of dependencies is empty."
953- printf ' %s\n' " ${dependencies} " | tr -d ' \r' | xargs sudo pkg install --yes > /dev/null
970+ printf ' %s\n' " ${dependencies} " | tr -d ' \r' | xargs sudo pkg install --yes > /dev/null 2>&1
954971}
955972
956973install_build_dependencies_netbsd ()
@@ -1004,6 +1021,8 @@ install_build_dependencies_zypper()
10041021 dependencies=$( torsocks curl --fail --silent --show-error --location --retry 2 " ${BUILD_DEPENDENCIES_URL} " ) ||
10051022 dependencies=$( curl --fail --silent --show-error --location --retry 5 " ${BUILD_DEPENDENCIES_URL} " )
10061023 [ -z " ${dependencies:- } " ] && throw_error " The list of dependencies is empty."
1024+ [ " $( grep " ^ID=" /etc/os-release | cut -d= -f2 | tr -d ' "' ) " = ' sles' ] &&
1025+ throw_error ' Building on SUSE Enterprise is not supported' # dependencies="$(echo "${dependencies}" | sed 's/python3[0-9]+/python3/')"
10071026 printf ' %s\n' " ${dependencies} " | tr -d ' \r' | xargs sudo zypper --non-interactive --quiet install > /dev/null
10081027 export CXX=' g++-15'
10091028}
@@ -1533,10 +1552,10 @@ readonly VALID_BITCOIN_VERSION_LIST='0.9.5 0.10.0 0.10.1 0.10.2 0.10.3 0.10.4 \
15331552 0.16.3 0.17.0 0.17.0.1 0.17.1 0.17.2 0.18.0 0.18.1 0.19.0 0.19.0.1 0.19.1 \
15341553 0.20.0 0.20.1 0.20.2 0.21.0 0.21.1 0.21.2 22.0 22.1 23.0 23.1 23.2 24.0 \
15351554 24.0.1 24.1 24.2 25.0 25.1 25.2 26.0 26.1 26.2 27.0 27.1 27.2 28.0 28.1 \
1536- 28.2 29.0 29.1'
1555+ 28.2 29.0 29.1 30.0 '
15371556
15381557# Bump this variable for new Bitcoin Core releases
1539- target_bitcoin_version=' 29.1 '
1558+ target_bitcoin_version=' 30.0 '
15401559
15411560# Instantiate the parameter variables
15421561compile_bitcoin_flag=' false'
@@ -1650,7 +1669,7 @@ readonly TARGET_OPERATING_SYSTEM_RELEASE
16501669
16511670readonly BITCOIN_CORE_REPO=' https://github.com/bitcoin/bitcoin'
16521671readonly NODEBUILDER_REPO=' https://github.com/bitcoin-tools/nodebuilder'
1653- readonly NODEBUILDER_DEPENDENCIES_TAG=' v2.1.0 '
1672+ readonly NODEBUILDER_DEPENDENCIES_TAG=' master '
16541673readonly DEPENDENCIES_BASE_URL=" ${NODEBUILDER_REPO} /raw/${NODEBUILDER_DEPENDENCIES_TAG} /resources/dependencies"
16551674
16561675if [ " ${TARGET_KERNEL} " = ' NetBSD' ] && is_running_in_ci; then
0 commit comments