diff options
author | 2021-12-18 20:25:25 +0000 | |
---|---|---|
committer | 2021-12-19 09:36:20 +0100 | |
commit | f4e315afe367101cc3e5d11dbab1f80ac44f078e (patch) | |
tree | 7fe31b762a6f0f9e6773d09a62bac80236132cda /dev-util/bitcoin-tx | |
parent | profiles/package.mask: last-rite dev-java/jackson (diff) | |
download | gentoo-f4e315afe367101cc3e5d11dbab1f80ac44f078e.tar.gz gentoo-f4e315afe367101cc3e5d11dbab1f80ac44f078e.tar.bz2 gentoo-f4e315afe367101cc3e5d11dbab1f80ac44f078e.zip |
dev-util/bitcoin-tx-22.0: Fix build without LevelDB
Closes: https://bugs.gentoo.org/829412
Signed-off-by: Luke Dashjr <luke-jr+git@utopios.org>
Closes: https://github.com/gentoo/gentoo/pull/23410
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-util/bitcoin-tx')
-rw-r--r-- | dev-util/bitcoin-tx/bitcoin-tx-22.0.ebuild | 1 | ||||
-rw-r--r-- | dev-util/bitcoin-tx/files/22.0-fix_build_without_leveldb.patch | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/dev-util/bitcoin-tx/bitcoin-tx-22.0.ebuild b/dev-util/bitcoin-tx/bitcoin-tx-22.0.ebuild index f09f17d20444..d450673bfec9 100644 --- a/dev-util/bitcoin-tx/bitcoin-tx-22.0.ebuild +++ b/dev-util/bitcoin-tx/bitcoin-tx-22.0.ebuild @@ -61,6 +61,7 @@ src_prepare() { local knots_patchdir="${WORKDIR}/${KNOTS_P}.patches/" eapply "${knots_patchdir}/${KNOTS_P}_p1-syslibs.patch" + eapply "${FILESDIR}/${PV}-fix_build_without_leveldb.patch" if use knots; then eapply "${knots_patchdir}/${KNOTS_P}_p2-fixes.patch" diff --git a/dev-util/bitcoin-tx/files/22.0-fix_build_without_leveldb.patch b/dev-util/bitcoin-tx/files/22.0-fix_build_without_leveldb.patch new file mode 100644 index 000000000000..e9dec14b9d43 --- /dev/null +++ b/dev-util/bitcoin-tx/files/22.0-fix_build_without_leveldb.patch @@ -0,0 +1,23 @@ +diff --git a/src/init/common.cpp b/src/init/common.cpp +index b5b74cda78b..d01e0e73b4a 100644 +--- a/src/init/common.cpp ++++ b/src/init/common.cpp +@@ -9,7 +9,6 @@ + #include <clientversion.h> + #include <compat/sanity.h> + #include <crypto/sha256.h> +-#include <dbwrapper.h> + #include <key.h> + #include <logging.h> + #include <node/ui_interface.h> +@@ -41,10 +40,6 @@ void UnsetGlobals() + + bool SanityChecks() + { +- if (!dbwrapper_SanityCheck()) { +- return InitError(Untranslated("Database sanity check failure. Aborting.")); +- } +- + if (!ECC_InitSanityCheck()) { + return InitError(Untranslated("Elliptic curve cryptography sanity check failure. Aborting.")); + } |