Skip to content

Commit

Permalink
dev-util/bitcoin-tx-22.0: Fix build without LevelDB
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/829412
Signed-off-by: Luke Dashjr <[email protected]>
Closes: gentoo#23410
Signed-off-by: Florian Schmaus <[email protected]>
  • Loading branch information
luke-jr authored and Flowdalic committed Dec 19, 2021
1 parent c541980 commit f4e315a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-util/bitcoin-tx/bitcoin-tx-22.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
23 changes: 23 additions & 0 deletions dev-util/bitcoin-tx/files/22.0-fix_build_without_leveldb.patch
Original file line number Diff line number Diff line change
@@ -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."));
}

0 comments on commit f4e315a

Please sign in to comment.