Update litecoin to 0.18.1.
Notable port changes:
- Disable BIP70, form changlog:
"A new --disable-bip70 option may be passed to ./configure to prevent
Bitcoin-Qt from being built with support for the BIP70 payment
protocol or from linking libssl. As the payment protocol has exposed
Bitcoin Core to libssl vulnerabilities in the past, builders who don't
need BIP70 support are encouraged to use this option to reduce their
exposure to
- Most parts sync with net/bitcoin
Rafael
Index: Makefile
===================================================================
RCS file: /cvs/ports/net/litecoin/Makefile,v
retrieving revision 1.9
diff -u -p -u -p -r1.9 Makefile
--- Makefile 13 Jan 2020 19:55:52 -0000 1.9
+++ Makefile 19 Jun 2020 05:18:58 -0000
@@ -6,10 +6,9 @@ COMMENT = P2P payment system
GH_ACCOUNT = litecoin-project
GH_PROJECT = litecoin
-GH_TAGNAME = v0.17.1
-REVISION = 3
+GH_TAGNAME = v0.18.1
-SHARED_LIBS += bitcoinconsensus 1.0 # 0.0
+SHARED_LIBS += bitcoinconsensus 2.0 # 0.0
SHARED_LIBS += secp256k1 0.0 # 0.0
SHARED_LIBS += univalue 0.0 # 100.3
@@ -22,16 +21,16 @@ MAINTAINER = Rafael Sadowski <rsadowski
# MIT
PERMIT_PACKAGE = Yes
-WANTLIB += ${COMPILER_LIBCXX} boost_chrono-mt boost_filesystem
-WANTLIB += boost_timer-mt boost_unit_test_framework-mt
+WANTLIB += ${COMPILER_LIBCXX} boost_filesystem
WANTLIB += boost_system boost_system-mt boost_thread-mt c crypto
-WANTLIB += db_cxx event_core event_extra event_pthreads m sodium
-WANTLIB += ssl zmq
+WANTLIB += db_cxx event_core event_extra event_pthreads icuio
+WANTLIB += m sodium ssl zmq zstd
-LIB_DEPENDS = devel/boost \
- net/zeromq \
+LIB_DEPENDS = archivers/zstd \
+ databases/db/v4 \
+ devel/boost \
devel/libevent2 \
- databases/db/v4
+ net/zeromq
USE_GMAKE = Yes
@@ -43,7 +42,8 @@ CONFIGURE_STYLE = autoreconf
AUTOCONF_VERSION = 2.69
AUTOMAKE_VERSION = 1.14
AUTORECONF = ./autogen.sh
-CONFIGURE_ARGS += --with-incompatible-bdb
+CONFIGURE_ARGS += --with-incompatible-bdb \
+ --disable-bip70
CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include/db4
-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib/db4"
@@ -59,18 +59,19 @@ FLAVOR ?=
CONFIGURE_ARGS += --without-gui
.else
-WANTLIB += GL Qt5Core Qt5Test Qt5DBus Qt5Gui Qt5Network Qt5Widgets X11
+WANTLIB += GL Qt5Core Qt5DBus Qt5Gui Qt5Network Qt5Widgets X11
+WANTLIB += Qt5Test boost_chrono-mt boost_timer-mt boost_unit_test_framework-mt
WANTLIB += X11-xcb Xdamage Xext Xfixes Xxf86vm dbus-1 drm execinfo
WANTLIB += expat freetype glapi glib-2.0 graphite2 gthread-2.0
WANTLIB += harfbuzz iconv icudata icui18n icuuc intl miniupnpc
-WANTLIB += pcre pcre2-16 png protobuf qrencode xcb xcb-dri2
+WANTLIB += pcre pcre2-16 png qrencode xcb xcb-dri2 double-conversion
WANTLIB += xcb-dri3 xcb-glx xcb-present xcb-sync xcb-xfixes xshmfence
WANTLIB += z
MODULES += x11/qt5
-LIB_DEPENDS += devel/protobuf \
- graphics/libqrencode \
+LIB_DEPENDS += graphics/libqrencode \
+ math/double-conversion \
net/miniupnp/miniupnpc
CONFIGURE_ARGS += --with-gui=qt5
Index: distinfo
===================================================================
RCS file: /cvs/ports/net/litecoin/distinfo,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 distinfo
--- distinfo 12 May 2019 13:22:58 -0000 1.2
+++ distinfo 19 Jun 2020 05:18:58 -0000
@@ -1,2 +1,2 @@
-SHA256 (litecoin-0.17.1.tar.gz) = bgVRSkgJkPH/HnyBtUQ9dB9AFsA6tcHvRL9LFpr4i+4=
-SIZE (litecoin-0.17.1.tar.gz) = 4717718
+SHA256 (litecoin-0.18.1.tar.gz) = LWfLoRrcWJC5aYzN3raN08L/avGb8+0PHHGTSLkUBC8=
+SIZE (litecoin-0.18.1.tar.gz) = 5122629
Index: patches/patch-configure_ac
===================================================================
RCS file: /cvs/ports/net/litecoin/patches/patch-configure_ac,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 patch-configure_ac
--- patches/patch-configure_ac 12 May 2019 13:22:58 -0000 1.2
+++ patches/patch-configure_ac 19 Jun 2020 05:18:58 -0000
@@ -5,19 +5,7 @@ We already uses PIE as default. Unbreak
Index: configure.ac
--- configure.ac.orig
+++ configure.ac
-@@ -694,11 +694,6 @@ if test "x$enable_gprof" = xyes; then
- [AC_MSG_ERROR(gprof profiling requested but not available)],
[[$GPROF_LDFLAGS]])
- fi
-
--if test x$TARGET_OS != xwindows; then
-- # All windows code is PIC, forcing it on just adds useless compile warnings
-- AX_CHECK_COMPILE_FLAG([-fPIC],[PIC_FLAGS="-fPIC"])
--fi
--
- if test x$use_hardening != xno; then
- use_hardening=yes
-
AX_CHECK_COMPILE_FLAG([-Wstack-protector],[HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS
-Wstack-protector"])
-@@ -716,7 +711,6 @@ if test x$use_hardening != xno; then
+@@ -752,7 +752,6 @@ if test x$use_hardening != xno; then
AX_CHECK_LINK_FLAG([[-Wl,--high-entropy-va]],
[HARDENED_LDFLAGS="$HARDENED_LDFLAGS -Wl,--high-entropy-va"])
AX_CHECK_LINK_FLAG([[-Wl,-z,relro]], [HARDENED_LDFLAGS="$HARDENED_LDFLAGS
-Wl,-z,relro"])
AX_CHECK_LINK_FLAG([[-Wl,-z,now]], [HARDENED_LDFLAGS="$HARDENED_LDFLAGS
-Wl,-z,now"])
Index: patches/patch-src_wallet_db_cpp
===================================================================
RCS file: /cvs/ports/net/litecoin/patches/patch-src_wallet_db_cpp,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 patch-src_wallet_db_cpp
--- patches/patch-src_wallet_db_cpp 12 May 2019 13:22:58 -0000 1.2
+++ patches/patch-src_wallet_db_cpp 19 Jun 2020 05:18:58 -0000
@@ -8,7 +8,7 @@ Index: src/wallet/db.cpp
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
-@@ -156,7 +156,9 @@ bool BerkeleyEnvironment::Open(bool retry)
+@@ -191,7 +191,9 @@ bool BerkeleyEnvironment::Open(bool retry)
dbenv->set_errfile(fsbridge::fopen(pathErrorFile, "a")); /// debug
dbenv->set_flags(DB_AUTO_COMMIT, 1);
dbenv->set_flags(DB_TXN_WRITE_NOSYNC, 1);
@@ -18,7 +18,7 @@ Index: src/wallet/db.cpp
int ret = dbenv->open(strPath.c_str(),
DB_CREATE |
DB_INIT_LOCK |
-@@ -213,7 +215,9 @@ void BerkeleyEnvironment::MakeMock()
+@@ -248,7 +250,9 @@ BerkeleyEnvironment::BerkeleyEnvironment()
dbenv->set_lk_max_locks(10000);
dbenv->set_lk_max_objects(10000);
dbenv->set_flags(DB_AUTO_COMMIT, 1);
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/net/litecoin/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 PLIST
--- pkg/PLIST 13 Jan 2020 19:55:52 -0000 1.2
+++ pkg/PLIST 19 Jun 2020 05:18:58 -0000
@@ -14,6 +14,7 @@
@bin bin/bench_litecoin
@bin bin/litecoin-cli
@bin bin/litecoin-tx
+@bin bin/litecoin-wallet
@bin bin/litecoind
@bin bin/test_litecoin
include/bitcoinconsensus.h
@@ -34,6 +35,7 @@ lib/pkgconfig/libsecp256k1.pc
lib/pkgconfig/libunivalue.pc
@man man/man1/litecoin-cli.1
@man man/man1/litecoin-tx.1
+@man man/man1/litecoin-wallet.1
@man man/man1/litecoind.1
share/bash-completion/completions/litecoin/
share/bash-completion/completions/litecoin/bitcoin-cli.bash-completion