[packages/feathercoin] - up to 0.21.0
baggins
baggins at pld-linux.org
Sun Nov 15 11:46:09 CET 2026
commit 2081f434a6b504323daecae19bd1cb63b1a9011f
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Nov 15 11:45:56 2026 +0100
- up to 0.21.0
boost-1.87.patch | 20 ++++++++++----------
boost-1.90.patch | 21 +++++++++++++++++++++
feathercoin-includes.patch | 10 ----------
feathercoin.spec | 30 +++++++++++++++++-------------
lib.patch | 32 +++++++++++++++-----------------
libsecp256k1-0.6.patch | 11 +++++++++++
missing-includes.patch | 30 +++++++++++++++++++++++++-----
7 files changed, 99 insertions(+), 55 deletions(-)
---
diff --git a/feathercoin.spec b/feathercoin.spec
index db07456..8b33c69 100644
--- a/feathercoin.spec
+++ b/feathercoin.spec
@@ -7,19 +7,20 @@
Summary: Feathercoin - a peer-to-peer currency
Summary(pl.UTF-8): Feathercoin - waluta peer-to-peer
Name: feathercoin
-Version: 0.19.2
+Version: 0.21.0
Release: 1
License: MIT
Group: Applications/Networking
#Source0Download: https://github.com/FeatherCoin/Feathercoin/releases
Source0: https://github.com/FeatherCoin/Feathercoin/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 84bbeb92cdd39591d6a2029e9b7a1b20
+# Source0-md5: a35625548ced2676d8953aace6d86f54
Patch0: lib.patch
Patch1: %{name}-miniupnpc.patch
-Patch2: %{name}-includes.patch
Patch3: %{name}-univalue.patch
Patch4: missing-includes.patch
Patch5: boost-1.87.patch
+Patch6: boost-1.90.patch
+Patch7: libsecp256k1-0.6.patch
URL: https://www.feathercoin.com/
%if %{with gui}
BuildRequires: Qt5Core-devel >= 5
@@ -39,7 +40,7 @@ BuildRequires: db-cxx-devel >= 4.8
BuildRequires: gettext-tools
BuildRequires: libevent-devel
%{?with_gui:BuildRequires: libpng-devel}
-BuildRequires: libsecp256k1-devel >= 0.1.0.15
+BuildRequires: libsecp256k1-devel >= 0.6.0
BuildRequires: libstdc++-devel >= 6:7
BuildRequires: libtool >= 2:2
BuildRequires: libunivalue-devel >= 1.0.4
@@ -114,12 +115,13 @@ Oparty na Qt portfel Feathercoin.
%prep
%setup -q -n Feathercoin-%{version}
-%patch -P 0 -p1
-%patch -P 1 -p1
-%patch -P 2 -p1
-%patch -P 3 -p1
-%patch -P 4 -p1
-%patch -P 5 -p1
+%patch -P0 -p1
+%patch -P1 -p1
+%patch -P3 -p1
+%patch -P4 -p1
+%patch -P5 -p1
+%patch -P6 -p1
+%patch -P7 -p1
# current protobuf requires C++17
# AX_CXX_COMPILE_STDCXX([11], [noext], [mandatory], [nodefault])
@@ -127,6 +129,8 @@ Oparty na Qt portfel Feathercoin.
# too old version of macro for C++17, rely on autoconf-archive
%{__rm} build-aux/m4/ax_cxx_compile_stdcxx.m4
+%{__rm} -r src/secp256k1
+
%build
%{__libtoolize}
%{__aclocal}
@@ -204,12 +208,12 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/feathercoin-tx.1*
%{_mandir}/man1/feathercoin-wallet.1*
%{_mandir}/man1/feathercoind.1*
-%attr(755,root,root) %{_libdir}/libbitcoinconsensus.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libbitcoinconsensus.so.0
+%{_libdir}/libbitcoinconsensus.so.*.*.*
+%ghost %{_libdir}/libbitcoinconsensus.so.0
%files devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libbitcoinconsensus.so
+%{_libdir}/libbitcoinconsensus.so
%{_includedir}/bitcoinconsensus.h
%{_pkgconfigdir}/libbitcoinconsensus.pc
diff --git a/boost-1.87.patch b/boost-1.87.patch
index 2c88250..734b3f3 100644
--- a/boost-1.87.patch
+++ b/boost-1.87.patch
@@ -1,5 +1,5 @@
---- Feathercoin-0.19.1.1/src/wallet/db.cpp~ 2022-10-29 18:23:33.000000000 +0200
-+++ Feathercoin-0.19.1.1/src/wallet/db.cpp 2024-12-23 00:06:23.313333211 +0100
+--- Feathercoin-0.19.1.1/src/wallet/bdb.cpp~ 2022-10-29 18:23:33.000000000 +0200
++++ Feathercoin-0.19.1.1/src/wallet/bdb.cpp 2024-12-23 00:06:23.313333211 +0100
@@ -880,7 +880,7 @@
return false;
}
@@ -12,11 +12,11 @@
--- Feathercoin-0.19.1.1/src/wallet/walletutil.cpp~ 2022-10-29 18:23:33.000000000 +0200
+++ Feathercoin-0.19.1.1/src/wallet/walletutil.cpp 2024-12-23 00:15:40.453333198 +0100
@@ -74,7 +74,7 @@
- if (it->status().type() == fs::directory_file && IsBerkeleyBtree(it->path() / "wallet.dat")) {
- // Found a directory which contains wallet.dat btree file, add it as a wallet.
- paths.emplace_back(path);
-- } else if (it.level() == 0 && it->symlink_status().type() == fs::regular_file && IsBerkeleyBtree(it->path())) {
-+ } else if (it.depth() == 0 && it->symlink_status().type() == fs::regular_file && IsBerkeleyBtree(it->path())) {
- if (it->path().filename() == "wallet.dat") {
- // Found top-level wallet.dat btree file, add top level directory ""
- // as a wallet.
+ (ExistsBerkeleyDatabase(it->path()) || ExistsSQLiteDatabase(it->path()))) {
+ // Found a directory which contains wallet.dat btree file, add it as a wallet.
+ paths.emplace_back(path);
+- } else if (it.level() == 0 && it->symlink_status().type() == fs::regular_file && ExistsBerkeleyDatabase(it->path())) {
++ } else if (it.depth() == 0 && it->symlink_status().type() == fs::regular_file && ExistsBerkeleyDatabase(it->path())) {
+ if (it->path().filename() == "wallet.dat") {
+ // Found top-level wallet.dat btree file, add top level directory ""
+ // as a wallet.
diff --git a/boost-1.90.patch b/boost-1.90.patch
new file mode 100644
index 0000000..430c71d
--- /dev/null
+++ b/boost-1.90.patch
@@ -0,0 +1,21 @@
+--- Feathercoin-0.21.0/configure.ac~ 2026-11-15 10:26:30.000000000 +0100
++++ Feathercoin-0.21.0/configure.ac 2026-11-15 10:27:54.334213393 +0100
+@@ -1298,7 +1298,6 @@
+ if test x$want_boost = xno; then
+ AC_MSG_ERROR([[only libbitcoinconsensus can be built without boost]])
+ fi
+-AX_BOOST_SYSTEM
+ AX_BOOST_FILESYSTEM
+ AX_BOOST_THREAD
+
+--- Feathercoin-0.21.0/src/wallet/walletutil.cpp~ 2026-11-15 10:36:32.000000000 +0100
++++ Feathercoin-0.21.0/src/wallet/walletutil.cpp 2026-11-15 10:41:05.466821701 +0100
+@@ -73,7 +73,7 @@
+ }
+ } catch (const std::exception& e) {
+ LogPrintf("%s: Error scanning %s: %s\n", __func__, it->path().string(), e.what());
+- it.no_push();
++ it.disable_recursion_pending();
+ }
+ }
+
diff --git a/feathercoin-includes.patch b/feathercoin-includes.patch
deleted file mode 100644
index 351ae9b..0000000
--- a/feathercoin-includes.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- Feathercoin-0.19.1/src/util/translation.h.orig 2020-08-06 11:29:39.000000000 +0200
-+++ Feathercoin-0.19.1/src/util/translation.h 2020-09-22 18:56:30.333268791 +0200
-@@ -7,6 +7,7 @@
-
- #include <tinyformat.h>
-
-+#include <functional>
- #include <utility>
-
- /**
diff --git a/lib.patch b/lib.patch
index 0395190..99919f0 100644
--- a/lib.patch
+++ b/lib.patch
@@ -1,23 +1,23 @@
--- Feathercoin-0.19.1/configure.ac.orig 2020-08-06 11:29:39.000000000 +0200
+++ Feathercoin-0.19.1/configure.ac 2020-09-21 22:22:56.190904468 +0200
@@ -1252,6 +1252,7 @@
- else
- AC_DEFINE_UNQUOTED([ENABLE_ZMQ],[0],[Define to 1 to enable ZMQ functions])
- fi
-+ PKG_CHECK_MODULES([SECP256K1], [libsecp256k1],, [AC_MSG_ERROR(libsecp256k1 not found.)])
- ]
- )
else
+ AC_DEFINE_UNQUOTED([ENABLE_ZMQ], [0], [Define to 1 to enable ZMQ functions])
+ fi
++PKG_CHECK_MODULES([SECP256K1], [libsecp256k1],, [AC_MSG_ERROR(libsecp256k1 not found.)])
+
+ if test "x$use_zmq" = xyes; then
+ dnl Assume libzmq was built for static linking
@@ -1655,9 +1656,6 @@
AC_CONFIG_SUBDIRS([src/univalue])
fi
--ac_configure_args="${ac_configure_args} --disable-shared --with-pic --enable-benchmark=no --with-bignum=no --enable-module-recovery --disable-jni"
+-ac_configure_args="${ac_configure_args} --disable-shared --with-pic --enable-benchmark=no --with-bignum=no --enable-module-recovery --enable-module-schnorrsig --enable-experimental"
-AC_CONFIG_SUBDIRS([src/secp256k1])
-
AC_OUTPUT
- dnl Taken from https://wiki.debian.org/RpathIssue
+ dnl Replace the BUILDDIR path with the correct Windows path if compiling on Native Windows
--- Feathercoin-0.16.3/src/Makefile.am~ 2018-09-22 09:16:24.000000000 +0200
+++ Feathercoin-0.16.3/src/Makefile.am 2018-09-25 20:40:02.844966767 +0200
@@ -2,7 +2,7 @@
@@ -27,25 +27,23 @@
-DIST_SUBDIRS = secp256k1 univalue
+DIST_SUBDIRS = univalue
- AM_LDFLAGS = $(PTHREAD_CFLAGS) $(LIBTOOL_LDFLAGS) $(HARDENED_LDFLAGS) $(GPROF_LDFLAGS) $(SANITIZER_LDFLAGS)
+ AM_LDFLAGS = $(LIBTOOL_LDFLAGS) $(HARDENED_LDFLAGS) $(GPROF_LDFLAGS) $(SANITIZER_LDFLAGS)
AM_CXXFLAGS = $(DEBUG_CXXFLAGS) $(HARDENED_CXXFLAGS) $(WARN_CXXFLAGS) $(NOWARN_CXXFLAGS) $(ERROR_CXXFLAGS) $(GPROF_CXXFLAGS) $(SANITIZER_CXXFLAGS)
@@ -20,7 +20,7 @@ endif
+ LIBUNIVALUE = $(UNIVALUE_LIBS)
+ endif
- BITCOIN_INCLUDES=-I$(builddir) $(BDB_CPPFLAGS) $(BOOST_CPPFLAGS) $(LEVELDB_CPPFLAGS) $(CRYPTO_CFLAGS) $(SSL_CFLAGS)
+-BITCOIN_INCLUDES=-I$(builddir) -I$(srcdir)/secp256k1/include $(BDB_CPPFLAGS) $(BOOST_CPPFLAGS) $(LEVELDB_CPPFLAGS)
++BITCOIN_INCLUDES=-I$(builddir) $(SECP256K1_CFLAGS) $(BDB_CPPFLAGS) $(BOOST_CPPFLAGS) $(LEVELDB_CPPFLAGS)
--BITCOIN_INCLUDES += -I$(srcdir)/secp256k1/include
-+BITCOIN_INCLUDES += $(SECP256K1_CFLAGS)
BITCOIN_INCLUDES += $(UNIVALUE_CFLAGS)
- LIBBITCOIN_SERVER=libbitcoin_server.a
-@@ -30,8 +30,8 @@ LIBBITCOIN_CLI=libbitcoin_cli.a
+@@ -30,7 +30,7 @@ LIBBITCOIN_CLI=libbitcoin_cli.a
LIBBITCOIN_UTIL=libbitcoin_util.a
LIBBITCOIN_CRYPTO_BASE=crypto/libbitcoin_crypto_base.a
LIBBITCOINQT=qt/libbitcoinqt.a
-LIBSECP256K1=secp256k1/libsecp256k1.la
--
+LIBSECP256K1=$(SECP256K1_LIBS)
-+
+
if ENABLE_ZMQ
LIBBITCOIN_ZMQ=libbitcoin_zmq.a
- endif
diff --git a/libsecp256k1-0.6.patch b/libsecp256k1-0.6.patch
new file mode 100644
index 0000000..ec5815d
--- /dev/null
+++ b/libsecp256k1-0.6.patch
@@ -0,0 +1,11 @@
+--- Feathercoin-0.21.0/src/pubkey.cpp~ 2026-05-30 14:40:59.000000000 +0200
++++ Feathercoin-0.21.0/src/pubkey.cpp 2026-11-15 11:36:55.227396713 +0100
+@@ -178,7 +178,7 @@
+ assert(sigbytes.size() == 64);
+ secp256k1_xonly_pubkey pubkey;
+ if (!secp256k1_xonly_pubkey_parse(secp256k1_context_verify, &pubkey, m_keydata.data())) return false;
+- return secp256k1_schnorrsig_verify(secp256k1_context_verify, sigbytes.data(), msg.begin(), &pubkey);
++ return secp256k1_schnorrsig_verify(secp256k1_context_verify, sigbytes.data(), msg.begin(), msg.size(), &pubkey);
+ }
+
+ bool XOnlyPubKey::CheckPayToContract(const XOnlyPubKey& base, const uint256& hash, bool parity) const
diff --git a/missing-includes.patch b/missing-includes.patch
index f8ab45d..5cd7f31 100644
--- a/missing-includes.patch
+++ b/missing-includes.patch
@@ -6,15 +6,15 @@ diff -ur Feathercoin-0.19.1.orig/src/bench/block_assemble.cpp Feathercoin-0.19.1
+#include <array>
- #include <list>
#include <vector>
+ static void AssembleBlock(benchmark::Bench& bench)
diff -ur Feathercoin-0.19.1.orig/src/net_processing.cpp Feathercoin-0.19.1/src/net_processing.cpp
--- Feathercoin-0.19.1.orig/src/net_processing.cpp 2020-08-06 11:29:39.000000000 +0200
+++ Feathercoin-0.19.1/src/net_processing.cpp 2023-02-21 12:27:04.349114113 +0100
@@ -30,8 +30,20 @@
- #include <util/strencodings.h>
- #include <util/validation.h>
+ #include <util/system.h>
+ #include <validation.h>
+#include <algorithm>
+#include <array>
@@ -31,8 +31,8 @@ diff -ur Feathercoin-0.19.1.orig/src/net_processing.cpp Feathercoin-0.19.1/src/n
+#include <utility>
+#include <vector>
- #if defined(NDEBUG)
- # error "Feathercoin cannot be compiled without assertions."
+ /** Expiration time for orphan transactions in seconds */
+ static constexpr int64_t ORPHAN_TX_EXPIRE_TIME = 20 * 60;
diff -ur Feathercoin-0.19.1.orig/src/qt/sendcoinsdialog.cpp Feathercoin-0.19.1/src/qt/sendcoinsdialog.cpp
--- Feathercoin-0.19.1.orig/src/qt/sendcoinsdialog.cpp 2020-08-06 11:29:39.000000000 +0200
+++ Feathercoin-0.19.1/src/qt/sendcoinsdialog.cpp 2023-02-21 12:28:52.529773392 +0100
@@ -46,3 +46,23 @@ diff -ur Feathercoin-0.19.1.orig/src/qt/sendcoinsdialog.cpp Feathercoin-0.19.1/s
static const std::array<int, 9> confTargets = { {2, 4, 6, 12, 24, 48, 144, 504, 1008} };
int getConfTargetForIndex(int index) {
if (index+1 > static_cast<int>(confTargets.size())) {
+--- Feathercoin-0.21.0/src/chainparamsbase.h~ 2026-05-30 14:40:59.000000000 +0200
++++ Feathercoin-0.21.0/src/chainparamsbase.h 2026-11-15 10:30:07.424111903 +0100
+@@ -7,6 +7,7 @@
+
+ #include <memory>
+ #include <string>
++#include <cstdint>
+
+ class ArgsManager;
+
+--- Feathercoin-0.21.0/src/zmq/zmqabstractnotifier.h~ 2026-05-30 14:40:59.000000000 +0200
++++ Feathercoin-0.21.0/src/zmq/zmqabstractnotifier.h 2026-11-15 10:42:26.606736864 +0100
+@@ -9,6 +9,7 @@
+
+ #include <memory>
+ #include <string>
++#include <cstdint>
+
+ class CBlockIndex;
+ class CTransaction;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/feathercoin.git/commitdiff/2081f434a6b504323daecae19bd1cb63b1a9011f
More information about the pld-cvs-commit
mailing list