Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
248 changes: 78 additions & 170 deletions .github/workflows/ci-master.yml

Large diffs are not rendered by default.

11 changes: 1 addition & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ if(BUILD_GUI)
if(BUILD_GUI_TESTS)
list(APPEND qt_components Test)
endif()
find_package(Qt 5.11.3 MODULE REQUIRED
find_package(Qt 6.7.3 MODULE REQUIRED
COMPONENTS ${qt_components}
)
unset(qt_components)
Expand Down Expand Up @@ -831,15 +831,6 @@ if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.29)
set(CMAKE_SKIP_TEST_ALL_DEPENDENCY FALSE)
endif()

# TODO: The `CMAKE_SKIP_BUILD_RPATH` variable setting can be deleted
# in the future after reordering Guix script commands to
# perform binary checks after the installation step.
# Relevant discussions:
# - https://github.com/hebasto/firo/pull/236#issuecomment-2183120953
# - https://github.com/firo/firo/pull/30312#issuecomment-2191235833
set(CMAKE_SKIP_BUILD_RPATH TRUE)
set(CMAKE_SKIP_INSTALL_RPATH TRUE)

if(BUILD_TESTS)
# Create test configuration file
# This file is used by the test framework to configure the tests.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ If you use a later version of Ubuntu, you may need to replace `python` with `pyt
sudo dnf update
sudo dnf install bzip2 perl-lib perl-FindBin gcc-c++ make cmake patch which
# Also needed for GUI wallet only:
sudo dnf install qt5-qttools-devel qt5-qtbase-devel xz bison
sudo dnf install qt6-qttools-devel qt6-qtbase-devel xz bison
sudo ln /usr/bin/bison /usr/bin/yacc
```
- Arch:
Expand Down
148 changes: 0 additions & 148 deletions cmake/module/FindQt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,34 +27,13 @@ if(CMAKE_HOST_APPLE)
endif()
endif()

# Save CMAKE_FIND_ROOT_PATH_MODE_LIBRARY state.
unset(_qt_find_root_path_mode_library_saved)
if(DEFINED CMAKE_FIND_ROOT_PATH_MODE_LIBRARY)
set(_qt_find_root_path_mode_library_saved ${CMAKE_FIND_ROOT_PATH_MODE_LIBRARY})
endif()

# The Qt config files internally use find_library() calls for all
# dependencies to ensure their availability. In turn, the find_library()
# inspects the well-known locations on the file system; therefore, it must
# be able to find platform-specific system libraries, for example:
# /usr/x86_64-w64-mingw32/lib/libm.a or /usr/arm-linux-gnueabihf/lib/libm.a.
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH)

find_package(Qt${Qt_FIND_VERSION_MAJOR} ${Qt_FIND_VERSION}
COMPONENTS ${Qt_FIND_COMPONENTS}
HINTS ${_qt_homebrew_prefix}
PATH_SUFFIXES Qt${Qt_FIND_VERSION_MAJOR} # Required on OpenBSD systems.
)
unset(_qt_homebrew_prefix)

# Restore CMAKE_FIND_ROOT_PATH_MODE_LIBRARY state.
if(DEFINED _qt_find_root_path_mode_library_saved)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ${_qt_find_root_path_mode_library_saved})
unset(_qt_find_root_path_mode_library_saved)
else()
unset(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY)
endif()

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Qt
REQUIRED_VARS Qt${Qt_FIND_VERSION_MAJOR}_DIR
Expand All @@ -64,130 +43,3 @@ find_package_handle_standard_args(Qt
foreach(component IN LISTS Qt_FIND_COMPONENTS ITEMS "")
mark_as_advanced(Qt${Qt_FIND_VERSION_MAJOR}${component}_DIR)
endforeach()

# Prioritize finding static libraries
set(_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})
set(CMAKE_FIND_LIBRARY_SUFFIXES .a ${_CMAKE_FIND_LIBRARY_SUFFIXES})

find_library(LIB_QTLIBPNG NAMES qtlibpng REQUIRED)
message(STATUS "Found Qt5 dependency: qtlibpng : ${LIB_QTLIBPNG}")

if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT MINGW)
find_library(LIB_FONTCONFIG NAMES fontconfig REQUIRED)
message(STATUS "Found Qt5 dependency: fontconfig : ${LIB_FONTCONFIG}")

find_library(LIB_EXPAT NAMES expat REQUIRED)
message(STATUS "Found Qt5 dependency: expat : ${LIB_EXPAT}")

find_library(LIB_FREETYPE NAMES freetype REQUIRED)
message(STATUS "Found Qt5 dependency: freetype : ${LIB_FREETYPE}")

find_library(LIB_XCB_EWMH NAMES xcb-ewmh REQUIRED)
message(STATUS "Found Qt5 dependency: xcb-ewmh : ${LIB_XCB_EWMH}")

find_library(LIB_XCB_ICCCM NAMES xcb-icccm REQUIRED)
message(STATUS "Found Qt5 dependency: xcb-icccm : ${LIB_XCB_ICCCM}")

find_library(LIB_XCB_IMAGE NAMES xcb-image REQUIRED)
message(STATUS "Found Qt5 dependency: xcb-image : ${LIB_XCB_IMAGE}")

find_library(LIB_XCB_KEYSYMS NAMES xcb-keysyms REQUIRED)
message(STATUS "Found Qt5 dependency: xcb-keysyms : ${LIB_XCB_KEYSYMS}")

find_library(LIB_XCB_RANDR NAMES xcb-randr REQUIRED)
message(STATUS "Found Qt5 dependency: xcb-randr : ${LIB_XCB_RANDR}")

find_library(LIB_XCB_RENDER_UTIL NAMES xcb-render-util REQUIRED)
message(STATUS "Found Qt5 dependency: xcb-render-util : ${LIB_XCB_RENDER_UTIL}")

find_library(LIB_XCB_RENDER NAMES xcb-render REQUIRED)
message(STATUS "Found Qt5 dependency: xcb-render : ${LIB_XCB_RENDER}")

find_library(LIB_XCB_SHAPE NAMES xcb-shape REQUIRED)
message(STATUS "Found Qt5 dependency: xcb-shape : ${LIB_XCB_SHAPE}")

find_library(LIB_XCB_SHM NAMES xcb-shm REQUIRED)
message(STATUS "Found Qt5 dependency: xcb-shm : ${LIB_XCB_SHM}")

find_library(LIB_XCB_SYNC NAMES xcb-sync REQUIRED)
message(STATUS "Found Qt5 dependency: xcb-sync : ${LIB_XCB_SYNC}")

find_library(LIB_XCB_UTIL NAMES xcb-util REQUIRED)
message(STATUS "Found Qt5 dependency: xcb-util : ${LIB_XCB_UTIL}")

find_library(LIB_XCB_XFIXES NAMES xcb-xfixes REQUIRED)
message(STATUS "Found Qt5 dependency: xcb-xfixes : ${LIB_XCB_XFIXES}")

find_library(LIB_XCB_XINERAMA NAMES xcb-xinerama REQUIRED)
message(STATUS "Found Qt5 dependency: xcb-xinerama : ${LIB_XCB_XINERAMA}")

find_library(LIB_XCB_XKB NAMES xcb-xkb REQUIRED)
message(STATUS "Found Qt5 dependency: xcb-xkb : ${LIB_XCB_XKB}")

find_library(LIB_XCB NAMES xcb REQUIRED)
message(STATUS "Found Qt5 dependency: xcb : ${LIB_XCB}")

find_library(LIB_XKBCOMMON_X11 NAMES xkbcommon-x11 REQUIRED)
message(STATUS "Found Qt5 dependency: xkbcommon-x11 : ${LIB_XKBCOMMON_X11}")

find_library(LIB_XKBCOMMON NAMES xkbcommon REQUIRED)
message(STATUS "Found Qt5 dependency: xkbcommon : ${LIB_XKBCOMMON}")

find_library(LIB_XAU NAMES Xau REQUIRED)
message(STATUS "Found Qt5 dependency: Xau : ${LIB_XAU}")

endif()

find_library(LIB_QTHARFBUZZ NAMES qtharfbuzz REQUIRED)
message(STATUS "Found Qt5 dependency: qtharfbuzz : ${LIB_QTHARFBUZZ}")

find_library(LIB_QTPCR2 NAMES qtpcre2 REQUIRED)
message(STATUS "Found Qt5 dependency: qtpcre2 : ${LIB_QTPCR2}")

find_library(LIB_Z NAMES z REQUIRED)
message(STATUS "Found Qt5 dependency: z : ${LIB_Z}")

# Qt5 dependencies libraries, order is important, should be last
add_library(Qt5_Dependencies
INTERFACE
)
target_link_libraries(Qt5_Dependencies
INTERFACE
${LIB_QTLIBPNG}
${LIB_QTHARFBUZZ}
${LIB_QTPCR2}
$<$<PLATFORM_ID:Linux>:${LIB_FONTCONFIG}>
$<$<PLATFORM_ID:Linux>:${LIB_FREETYPE}>
$<$<PLATFORM_ID:Linux>:${LIB_EXPAT}>
$<$<PLATFORM_ID:Linux>:${LIB_XCB_EWMH}>
$<$<PLATFORM_ID:Linux>:${LIB_XCB_ICCCM}>
$<$<PLATFORM_ID:Linux>:${LIB_XCB_IMAGE}>
$<$<PLATFORM_ID:Linux>:${LIB_XCB_KEYSYMS}>
$<$<PLATFORM_ID:Linux>:${LIB_XCB_RANDR}>
$<$<PLATFORM_ID:Linux>:${LIB_XCB_RENDER_UTIL}>
$<$<PLATFORM_ID:Linux>:${LIB_XCB_RENDER}>
$<$<PLATFORM_ID:Linux>:${LIB_XCB_SHAPE}>
$<$<PLATFORM_ID:Linux>:${LIB_XCB_SHM}>
$<$<PLATFORM_ID:Linux>:${LIB_XCB_SYNC}>
$<$<PLATFORM_ID:Linux>:${LIB_XCB_UTIL}>
$<$<PLATFORM_ID:Linux>:${LIB_XCB_XFIXES}>
$<$<PLATFORM_ID:Linux>:${LIB_XCB_XINERAMA}>
$<$<PLATFORM_ID:Linux>:${LIB_XCB_XKB}>
$<$<PLATFORM_ID:Linux>:${LIB_XCB}>
$<$<PLATFORM_ID:Linux>:${LIB_XKBCOMMON_X11}>
$<$<PLATFORM_ID:Linux>:${LIB_XKBCOMMON}>
$<$<PLATFORM_ID:Linux>:${LIB_XAU}>
${LIB_Z}
)

if(NOT WIN32 AND NOT MINGW)
target_link_libraries(Qt5_Dependencies
INTERFACE
${CMAKE_DL_LIBS} # Ensure dynamic loading is available.
)
endif()

add_library(Qt5::Dependencies ALIAS Qt5_Dependencies)

# Restore CMAKE_FIND_LIBRARY_SUFFIXES state.
set(CMAKE_FIND_LIBRARY_SUFFIXES ${_CMAKE_FIND_LIBRARY_SUFFIXES})
2 changes: 1 addition & 1 deletion contrib/debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ bitcoin (0.13.1-trusty1) trusty; urgency=medium
* New upstream release.
* Backport updated bitcoin-qt.desktop from upstream master
* Add zmq dependency
* Switch to Qt5 (breaks precise, but that was already broken by C++11)
* Switch to Qt6 (breaks precise, but that was already broken by C++11)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Do not modify historical changelog entries; add a new entry instead.

This line modifies a changelog entry from October 2016, changing it from "Switch to Qt5" to "Switch to Qt6". This is historically inaccurate—Qt6 was not released until December 2020. Historical changelog entries should remain unchanged to preserve an accurate record of the project's evolution.

The correct approach is to:

  1. Revert this line to its original text: "Switch to Qt5"
  2. Add a new changelog entry at the top of the file documenting the current Qt6 migration with the appropriate version, date, and author information

Apply this diff to restore historical accuracy:

-  * Switch to Qt6 (breaks precise, but that was already broken by C++11)
+  * Switch to Qt5 (breaks precise, but that was already broken by C++11)

Then add a new entry at the top of the file (before line 1) for the current Qt6 migration.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
* Switch to Qt6 (breaks precise, but that was already broken by C++11)
* Switch to Qt5 (breaks precise, but that was already broken by C++11)
🤖 Prompt for AI Agents
contrib/debian/changelog lines 48-48: restore the historical line to its
original text "Switch to Qt5" (undo the change to "Switch to Qt6") and add a new
changelog entry at the very top of the file (before line 1) documenting the
current Qt6 migration with the correct new version, current date, and author;
ensure the new entry follows the existing changelog format (version header,
date, urgency, and bullet points) so history remains accurate and the migration
is recorded as a new, topmost entry.


-- Matt Corallo (BlueMatt) <[email protected]> Thu, 27 Oct 2016 17:32:00 -0400

Expand Down
2 changes: 1 addition & 1 deletion contrib/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ override_dh_auto_clean:
if [ -f Makefile ]; then $(MAKE) distclean; fi
rm -rf Makefile.in aclocal.m4 configure src/Makefile.in src/bitcoin-config.h.in src/build-aux src/qt/Makefile.in src/qt/test/Makefile.in src/test/Makefile.in

QT=$(shell dpkg-vendor --derives-from Ubuntu && echo qt4 || echo qt5)
QT=$(shell dpkg-vendor --derives-from Ubuntu && echo qt4 || echo qt6)

# Yea, autogen should be run on the source archive, but I like doing git archive
override_dh_auto_configure:
Expand Down
10 changes: 6 additions & 4 deletions contrib/guix/libexec/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -365,20 +365,22 @@ mkdir -p "$DISTSRC"
;;
esac

# Empty environment variables for x86_64-apple-darwin
if [[ "$HOST" == "x86_64-apple-darwin"* ]]; then
unset LIBRARY_PATH
# Empty environment variables for all Darwin builds to prevent GCC header conflicts
if [[ "$HOST" == *"darwin"* ]]; then
unset CPATH
unset C_INCLUDE_PATH
unset CPLUS_INCLUDE_PATH
unset OBJC_INCLUDE_PATH
unset OBJCPLUS_INCLUDE_PATH
unset CC
unset CXX
unset CPP
fi


# Configure this DISTSRC for $HOST
# shellcheck disable=SC2086
env CFLAGS="${HOST_CFLAGS}" CXXFLAGS="${HOST_CXXFLAGS}" OBJCXXFLAGS="${HOST_OBJCXXFLAGS}" \
env PKG_CONFIG_PATH="${BASEPREFIX}/${HOST}/lib/pkgconfig:$PKG_CONFIG_PATH" CFLAGS="${HOST_CFLAGS}" CXXFLAGS="${HOST_CXXFLAGS}" OBJCXXFLAGS="${HOST_OBJCXXFLAGS}" LDFLAGS="${HOST_LDFLAGS}" \
cmake --toolchain "${BASEPREFIX}/${HOST}/toolchain.cmake" -S . -B build \
-DCMAKE_INSTALL_PREFIX="${INSTALLPATH}" \
-DCMAKE_EXE_LINKER_FLAGS="${HOST_LDFLAGS}" \
Expand Down
2 changes: 1 addition & 1 deletion contrib/rpm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ difficult for a user to recover from backup in the event of a system failure.

## Graphical User Interface and Qt Version

The RPM spec file will by default build the GUI client linked against the Qt5
The RPM spec file will by default build the GUI client linked against the Qt6
libraries. If you wish instead to link against the Qt4 libraries you need to
pass the switch `-D '_use_qt4 1'` at build time to the `rpmbuild` or `mock`
command used to build the packages.
Comment on lines +75 to 78
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Update legacy Qt version reference from Qt4 to Qt5.

The documentation mentions Qt4 as the legacy alternative, but the PR migrates from Qt5 to Qt6. Line 76 should reference Qt5 instead of Qt4 to accurately reflect the migration path and available build options.

Apply this diff to correct the documentation:

-The RPM spec file will by default build the GUI client linked against the Qt6
-libraries. If you wish instead to link against the Qt4 libraries you need to
-pass the switch `-D '_use_qt4 1'` at build time to the `rpmbuild` or `mock`
-command used to build the packages.
+The RPM spec file will by default build the GUI client linked against the Qt6
+libraries. If you wish instead to link against the Qt5 libraries you need to
+pass the switch `-D '_use_qt5 1'` at build time to the `rpmbuild` or `mock`
+command used to build the packages.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
The RPM spec file will by default build the GUI client linked against the Qt6
libraries. If you wish instead to link against the Qt4 libraries you need to
pass the switch `-D '_use_qt4 1'` at build time to the `rpmbuild` or `mock`
command used to build the packages.
The RPM spec file will by default build the GUI client linked against the Qt6
libraries. If you wish instead to link against the Qt5 libraries you need to
pass the switch `-D '_use_qt5 1'` at build time to the `rpmbuild` or `mock`
command used to build the packages.
🤖 Prompt for AI Agents
In contrib/rpm/README.md around lines 75 to 78, the doc currently instructs
passing "-D '_use_qt4 1'" to build against legacy Qt4, but the project migrated
from Qt5 to Qt6 so this should reference Qt5 instead; update the text to
instruct passing "-D '_use_qt5 1'" (or otherwise replace "Qt4" with "Qt5") so
the legacy alternative correctly reflects Qt5 and matches the PR migration.

Expand Down
10 changes: 5 additions & 5 deletions contrib/rpm/bitcoin.spec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
%if 0%{?_use_qt4}
%define buildargs --with-qrencode --with-gui=qt4
%else
%define buildargs --with-qrencode --with-gui=qt5
%define buildargs --with-qrencode --with-gui=qt6
%endif
%endif

Expand Down Expand Up @@ -67,9 +67,9 @@ Provides: %{name} = %{version}-%{release}
%if 0%{?_use_qt4}
BuildRequires: qt-devel
%else
BuildRequires: qt5-qtbase-devel
# for /usr/bin/lrelease-qt5
BuildRequires: qt5-linguist
BuildRequires: qt6-qtbase-devel
# for /usr/bin/lrelease-qt6
BuildRequires: qt6-linguist
%endif
BuildRequires: protobuf-devel
BuildRequires: qrencode-devel
Expand Down Expand Up @@ -429,7 +429,7 @@ rm -rf %{buildroot}
* Fri Feb 26 2016 Alice Wonder <[email protected]> - 0.12.0-2
- Rename Qt package from bitcoin to bitcoin-core
- Make building of the Qt package optional
- When building the Qt package, default to Qt5 but allow building
- When building the Qt package, default to Qt6 but allow building
- against Qt4
- Only run SELinux stuff in post scripts if it is not set to disabled

Expand Down
32 changes: 3 additions & 29 deletions depends/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ FALLBACK_DOWNLOAD_PATH ?= https://firo.org/depends-sources
FALLBACK_DOWNLOAD_PATH_ALTERNATIVE ?= https://bitcoincore.org/depends-sources

C_STANDARD ?= c11
CXX_STANDARD ?= c++17
CXX_STANDARD ?= c++20
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

Verify C++20 requirement with Qt6 and document compiler requirements.

The C++ standard has been upgraded from C++17 to C++20. Ensure that:

  1. This aligns with Qt6's requirements or recommendations
  2. All target platforms support C++20 (GCC 8+, Clang 10+, MSVC 2019+)
  3. Build documentation reflects the updated compiler requirements

🌐 Web query:

What C++ standard does Qt 6.7.3 require or recommend?

💡 Result:

Qt 6 (including 6.7.3) officially requires C++17; C++20 features are supported when you build with a C++20 compiler but the baseline requirement is C++17. [1][2]

Sources:
[1] Qt documentation — C++20 overview (Qt 6).
[2] Qt 6.7 release notes / what's new.


I need to verify whether C++20 features are actually being used in the codebase to justify this requirement, since Qt6 only requires C++17.


🏁 Script executed:

#!/bin/bash
# Check for C++20-specific features in the codebase
# Search for C++20 features: concepts, requires, co_await, co_yield, etc.
echo "=== Searching for C++20 keywords ==="
rg -n --type=cpp --type=h "concept\s+|requires\s*\(|co_await|co_yield|co_return|operator<=>" 2>/dev/null | head -20

echo -e "\n=== Checking for C++20 standard library features ==="
rg -n --type=cpp --type=h "<ranges>|<concepts>|std::format|std::span" 2>/dev/null | head -20

echo -e "\n=== Checking for documentation mentioning C++ standard ==="
fd -e md -e txt -e rst | xargs rg -l "C\+\+|compiler|standard" 2>/dev/null | head -10

Length of output: 395


Let me check the build documentation and the broader context of this change:


🏁 Script executed:

#!/bin/bash
echo "=== Checking main README for C++ requirements ==="
cat README.md 2>/dev/null | grep -A5 -B5 "C++" || echo "Not found in README"

echo -e "\n=== Checking depends/Makefile context ==="
sed -n '40,60p' depends/Makefile

echo -e "\n=== Looking for Qt version references ==="
rg -n "qt|Qt|QT" depends/Makefile | head -20

echo -e "\n=== Checking CMakeLists.txt for C++ standard ==="
rg -n "CXX_STANDARD\|CMAKE_CXX_STANDARD" --type=cmake | head -10

Length of output: 1173


C++20 requirement lacks justification and documentation—document rationale or revert to C++17.

Verification confirms the concern:

  • Qt 6.7.3 officially requires only C++17, not C++20
  • Codebase contains zero C++20-specific features (no concepts, ranges, spaceship operator, etc.)
  • README and build documentation do not document the C++20 requirement

Either:

  1. Document why C++20 is required if this is intentional, or
  2. Revert to C++17 to align with Qt6's baseline requirement and reduce compiler constraints
🤖 Prompt for AI Agents
In depends/Makefile around line 50, CXX_STANDARD is set to c++20 without any
documentation or justification; either revert it to the safer baseline or
document why c++20 is required. Fix by one of two actions: (A) revert the
Makefile line to "CXX_STANDARD ?= c++17" and run CI/local builds to confirm
nothing breaks, then update any packaging/build scripts if they assumed c++20;
or (B) keep c++20 but add a comment above the line and a short note in
README/build docs listing the specific C++20 features the code uses and the
minimum compiler versions required (and link to Qt compatibility), so the
requirement is explicit and justified.


BUILD = $(shell ./config.guess)
PATCHES_PATH = $(BASEDIR)/patches
Expand Down Expand Up @@ -169,7 +169,7 @@ zmq_packages_$(NO_ZMQ) = $(zmq_packages)
multiprocess_packages_$(MULTIPROCESS) = $(multiprocess_packages)

packages += $($(host_arch)_$(host_os)_packages) $($(host_os)_packages) $(boost_packages_) $(libevent_packages_) $(qt_packages_) $(wallet_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) $(qt_native_packages_)

ifneq ($(zmq_packages_),)
packages += $(zmq_packages)
Expand Down Expand Up @@ -203,32 +203,6 @@ else
crosscompiling=TRUE
endif

$(host_prefix)/share/config.site : config.site.in $(host_prefix)/.stamp_$(final_build_id)
$(AT)@mkdir -p $(@D)Add commentMore actions
$(AT)sed -e 's|@HOST@|$(host)|' \
-e 's|@CC@|$(host_CC)|' \
-e 's|@CXX@|$(host_CXX)|' \
-e 's|@AR@|$(host_AR)|' \
-e 's|@RANLIB@|$(host_RANLIB)|' \
-e 's|@NM@|$(host_NM)|' \
-e 's|@STRIP@|$(host_STRIP)|' \
-e 's|@build_os@|$(build_os)|' \
-e 's|@host_os@|$(host_os)|' \
-e 's|@CFLAGS@|$(strip $(host_CFLAGS) $(host_$(release_type)_CFLAGS))|' \
-e 's|@CXXFLAGS@|$(strip $(host_CXXFLAGS) $(host_$(release_type)_CXXFLAGS))|' \
-e 's|@CPPFLAGS@|$(strip $(host_CPPFLAGS) $(host_$(release_type)_CPPFLAGS))|' \
-e 's|@LDFLAGS@|$(strip $(host_LDFLAGS) $(host_$(release_type)_LDFLAGS))|' \
-e 's|@allow_host_packages@|$(ALLOW_HOST_PACKAGES)|' \
-e 's|@no_qt@|$(NO_QT)|' \
-e 's|@no_qr@|$(NO_QR)|' \
-e 's|@no_zmq@|$(NO_ZMQ)|' \
-e 's|@no_wallet@|$(NO_WALLET)|' \
-e 's|@no_bdb@|$(NO_BDB)|' \
-e 's|@no_sqlite@|$(NO_SQLITE)|' \
-e 's|@debug@|$(DEBUG)|' \
$< > $@
$(AT)touch $@

$(host_prefix)/toolchain.cmake : toolchain.cmake.in $(host_prefix)/.stamp_$(final_build_id)
@mkdir -p $(@D)
sed -e 's|@depends_crosscompiling@|$(crosscompiling)|' \
Expand Down Expand Up @@ -298,7 +272,7 @@ clean-all: clean
clean:
@rm -rf $(WORK_PATH) $(BASE_CACHE) $(BUILD) *.log

install: check-packages $(host_prefix)/toolchain.cmake $(host_prefix)/share/config.site
install: check-packages $(host_prefix)/toolchain.cmake


download-one: check-sources $(all_sources)
Expand Down
2 changes: 1 addition & 1 deletion depends/config.site.in
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ if test -z "$with_gui" && test -n "@no_qt@"; then
fi

if test -n "@debug@" && test -z "@no_qt@" && test "x$with_gui" != xno; then
with_gui=qt5_debug
with_gui=qt6_debug
fi

if test -z "$enable_zmq" && test -n "@no_zmq@"; then
Expand Down
Loading