-
Notifications
You must be signed in to change notification settings - Fork 1.2k
backport: bitcoin#24322, #25064, #25065, #25168, #25281, #25290, #25307, #25487, #25607 (kernel backports) #7361
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
base: develop
Are you sure you want to change the base?
Changes from all commits
4152190
ea8d6ef
1c18732
9f33f06
7925965
14e8273
45b7b71
9c1a108
4f88aae
0752d8c
4614356
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -783,6 +783,12 @@ AC_ARG_WITH([libs], | |||||||||||||||||||||||||||||
| [build_bitcoin_libs=$withval], | ||||||||||||||||||||||||||||||
| [build_bitcoin_libs=yes]) | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| AC_ARG_WITH([experimental-kernel-lib], | ||||||||||||||||||||||||||||||
| [AS_HELP_STRING([--with-experimental-kernel-lib], | ||||||||||||||||||||||||||||||
| [build experimental dashkernel library (default is to build if we're building libraries and the experimental build-chainstate executable)])], | ||||||||||||||||||||||||||||||
| [build_experimental_kernel_lib=$withval], | ||||||||||||||||||||||||||||||
| [build_experimental_kernel_lib=auto]) | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| AC_ARG_WITH([daemon], | ||||||||||||||||||||||||||||||
| [AS_HELP_STRING([--with-daemon], | ||||||||||||||||||||||||||||||
| [build dashd daemon (default=yes)])], | ||||||||||||||||||||||||||||||
|
|
@@ -1791,15 +1797,23 @@ AM_CONDITIONAL([BUILD_BITCOIN_UTIL], [test $build_bitcoin_util = "yes"]) | |||||||||||||||||||||||||||||
| AC_MSG_RESULT($build_bitcoin_util) | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| AC_MSG_CHECKING([whether to build experimental dash-chainstate]) | ||||||||||||||||||||||||||||||
| AM_CONDITIONAL([BUILD_BITCOIN_CHAINSTATE], [test $build_bitcoin_chainstate = "yes"]) | ||||||||||||||||||||||||||||||
| if test "$build_experimental_kernel_lib" = "no"; then | ||||||||||||||||||||||||||||||
| AC_MSG_ERROR([experimental dash-chainstate cannot be built without the experimental dashkernel library. Use --with-experimental-kernel-lib]); | ||||||||||||||||||||||||||||||
| else | ||||||||||||||||||||||||||||||
| AM_CONDITIONAL([BUILD_BITCOIN_CHAINSTATE], [test $build_bitcoin_chainstate = "yes"]) | ||||||||||||||||||||||||||||||
| fi | ||||||||||||||||||||||||||||||
|
Comment on lines
+1800
to
+1804
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Error fires unconditionally when kernel library is disabled. Lines 1800-1802 error if The error should only fire when chainstate is explicitly enabled and the kernel library is disabled. 🐛 Proposed fix-if test "$build_experimental_kernel_lib" = "no"; then
-AC_MSG_ERROR([experimental dash-chainstate cannot be built without the experimental dashkernel library. Use --with-experimental-kernel-lib]);
-else
- AM_CONDITIONAL([BUILD_BITCOIN_CHAINSTATE], [test $build_bitcoin_chainstate = "yes"])
-fi
+if test "$build_bitcoin_chainstate" = "yes" && test "$build_experimental_kernel_lib" = "no"; then
+ AC_MSG_ERROR([experimental dash-chainstate cannot be built without the experimental dashkernel library. Use --with-experimental-kernel-lib])
+fi
+AM_CONDITIONAL([BUILD_BITCOIN_CHAINSTATE], [test $build_bitcoin_chainstate = "yes"])🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||
| AC_MSG_RESULT($build_bitcoin_chainstate) | ||||||||||||||||||||||||||||||
|
Comment on lines
1799
to
1805
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 Blocking: --with-experimental-kernel-lib=no aborts configure even when dash-chainstate is not requested The new guard at configure.ac:1800 fires on
Suggested change
source: ['codex'] |
||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| AC_MSG_CHECKING([whether to build libraries]) | ||||||||||||||||||||||||||||||
| AM_CONDITIONAL([BUILD_BITCOIN_LIBS], [test $build_bitcoin_libs = "yes"]) | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| if test "$build_bitcoin_libs" = "yes"; then | ||||||||||||||||||||||||||||||
| AC_DEFINE([HAVE_CONSENSUS_LIB], [1], [Define this symbol if the consensus lib has been built]) | ||||||||||||||||||||||||||||||
| AC_CONFIG_FILES([libdashconsensus.pc:libdashconsensus.pc.in]) | ||||||||||||||||||||||||||||||
| fi | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| AM_CONDITIONAL([BUILD_BITCOIN_KERNEL_LIB], [test "$build_experimental_kernel_lib" != "no" && ( test "$build_experimental_kernel_lib" = "yes" || test "$build_bitcoin_chainstate" = "yes" )]) | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| AC_MSG_RESULT($build_bitcoin_libs) | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| AC_LANG_POP | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| # Nothing for now. | ||
| [ | ||
| { include: [ "<bits/chrono.h>", private, "<chrono>", public ] }, | ||
| ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a user explicitly disables the experimental kernel library with
--without-experimental-kernel-libwhile leaving--enable-experimental-util-chainstateat its defaultno, configure still enters this branch and aborts. The dependency error should only be raised when chainstate was requested; otherwise a normal opt-out of the experimental library makes non-chainstate builds fail unnecessarily.Useful? React with 👍 / 👎.