commit:     05a44653f0cb459b22349e4b15c447ac70bf09be
Author:     Matt Whitlock <gentoo <AT> mattwhitlock <DOT> name>
AuthorDate: Tue Dec 12 21:25:56 2023 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Wed Dec 13 07:46:39 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05a44653

net-p2p/bitcoin-core: fix build failure when USE="-daemon"

Regenerating the example bitcoin.conf doesn't work when we didn't build
bitcoind.

No revbump required since it was not possible to complete a build in the
affected configurations.

Closes: https://bugs.gentoo.org/919772
Signed-off-by: Matt Whitlock <gentoo <AT> mattwhitlock.name>
Closes: https://github.com/gentoo/gentoo/pull/34255
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 net-p2p/bitcoin-core/bitcoin-core-26.0.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/net-p2p/bitcoin-core/bitcoin-core-26.0.ebuild 
b/net-p2p/bitcoin-core/bitcoin-core-26.0.ebuild
index 6bdeaa1317a6..4e37d3fc4059 100644
--- a/net-p2p/bitcoin-core/bitcoin-core-26.0.ebuild
+++ b/net-p2p/bitcoin-core/bitcoin-core-26.0.ebuild
@@ -194,7 +194,9 @@ src_configure() {
 src_compile() {
        default
 
-       tc-is-cross-compiler || TOPDIR="${S}" bash 
contrib/devtools/gen-bitcoin-conf.sh || die
+       if use daemon && ! tc-is-cross-compiler ; then
+               TOPDIR="${S}" bash contrib/devtools/gen-bitcoin-conf.sh || die
+       fi
        sed -e 's/ To use, copy this file$//p;Tp;:0;n;/save the 
file\.$/!b0;d;:p;p' \
                -ni share/examples/bitcoin.conf || die
 }

Reply via email to