svn commit: r471906 - in head/net-p2p/monero-cli: . files

Vasil Dimov vd at FreeBSD.org
Thu Jun 7 10:46:48 UTC 2018


Author: vd
Date: Thu Jun  7 10:46:46 2018
New Revision: 471906
URL: https://svnweb.freebsd.org/changeset/ports/471906

Log:
  net-p2p/monero-cli: Upgrade from 0.12.0.0 to 0.12.2.0

Added:
  head/net-p2p/monero-cli/files/patch-external_CMakeLists.txt   (contents, props changed)
  head/net-p2p/monero-cli/files/patch-src_p2p_net__node.inl   (contents, props changed)
Deleted:
  head/net-p2p/monero-cli/files/patch-boost-1.67
  head/net-p2p/monero-cli/files/patch-src_cryptonote__core_cryptonote__core.cpp
  head/net-p2p/monero-cli/files/patch-src_daemon_command__line__args.h
  head/net-p2p/monero-cli/files/patch-src_wallet_wallet2.cpp
Modified:
  head/net-p2p/monero-cli/Makefile
  head/net-p2p/monero-cli/distinfo
  head/net-p2p/monero-cli/files/patch-cmake_Version.cmake

Modified: head/net-p2p/monero-cli/Makefile
==============================================================================
--- head/net-p2p/monero-cli/Makefile	Thu Jun  7 09:34:26 2018	(r471905)
+++ head/net-p2p/monero-cli/Makefile	Thu Jun  7 10:46:46 2018	(r471906)
@@ -2,9 +2,12 @@
 # $FreeBSD$
 
 PORTNAME=	monero-cli
-PORTVERSION=	0.12.0.0
+# To build from an arbitrary git commit comment the following two lines
+PORTVERSION=	0.12.2.0
 DISTVERSIONPREFIX=	v
-PORTREVISION=	2
+# and uncomment the following two lines
+#PORTVERSION=	0
+#PKGNAMESUFFIX=	-git-HEAD
 CATEGORIES=	net-p2p finance
 
 MAINTAINER=	vd at FreeBSD.org
@@ -27,20 +30,46 @@ LIB_DEPENDS=	\
 		libunbound.so:dns/unbound \
 		libunwind.so:devel/libunwind \
 		libzmq.so:net/libzmq4
-BUILD_DEPENDS=	${LOCALBASE}/include/zmq.hpp:net/cppzmq
+BUILD_DEPENDS=	${LOCALBASE}/include/rapidjson/document.h:devel/rapidjson \
+		${LOCALBASE}/include/zmq.hpp:net/cppzmq
 
 USES=		cmake compiler:c++11-lib pkgconfig readline ssl
 USE_GITHUB=	yes
 GH_ACCOUNT=	monero-project
 GH_PROJECT=	monero
+.if defined(PKGNAMESUFFIX)
+GH_TAGNAME=	${PKGNAMESUFFIX:C/-git-//}
+.endif
 CFLAGS+=	-D_WANT_SEMUN
-LLD_UNSAFE=	yes
 
 OPTIONS_DEFINE=		DOXYGEN
 DOXYGEN_BUILD_DEPENDS=	dot:graphics/graphviz \
 			doxygen:devel/doxygen
 DOXYGEN_CMAKE_BOOL=	BUILD_DOCUMENTATION
 
+.include <bsd.port.pre.mk>
+
+# On FreeBSD 12.x the default ld(1) is LLVM's ld which needs an explicit -m option
+# when linking without any input .o on the command line, like:
+# /usr/bin/ld -melf_amd64 -r -b binary -o blocksdat.o blocks.dat
+.if ${OSVERSION} >= 1200000
+ONLY_FOR_ARCHS=	aarch64 amd64 i386 powerpc powerpc64
+
+.if ${ARCH} == aarch64
+LD_EMULATION=	aarch64elf
+.elif ${ARCH} == amd64
+LD_EMULATION=	elf_amd64
+.elif ${ARCH} == i386
+LD_EMULATION=	elf_i386
+.elif ${ARCH} == powerpc
+LD_EMULATION=	elf32ppc
+.elif ${ARCH} == powerpc64
+LD_EMULATION=	elf64ppc
+.endif
+
+CMAKE_ARGS+=	-DLD_RAW_FLAGS:STRING=-m${LD_EMULATION}
+.endif
+
 USE_RC_SUBR=	monerod
 
 USERS=		monero
@@ -56,4 +85,4 @@ PLIST_FILES=	\
 		bin/monero-wallet-rpc \
 		bin/monerod
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

Modified: head/net-p2p/monero-cli/distinfo
==============================================================================
--- head/net-p2p/monero-cli/distinfo	Thu Jun  7 09:34:26 2018	(r471905)
+++ head/net-p2p/monero-cli/distinfo	Thu Jun  7 10:46:46 2018	(r471906)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1521964559
-SHA256 (monero-project-monero-v0.12.0.0_GH0.tar.gz) = 5e8303900a39e296c4ebaa41d957ab9ee04e915704e1049f82a9cbd4eedc8ffb
-SIZE (monero-project-monero-v0.12.0.0_GH0.tar.gz) = 8608168
+TIMESTAMP = 1528367811
+SHA256 (monero-project-monero-v0.12.2.0_GH0.tar.gz) = 804b4200d9673fee2a1e77251848082f9423e49f4d08e350efc476ae8b6a6dd9
+SIZE (monero-project-monero-v0.12.2.0_GH0.tar.gz) = 8431190

Modified: head/net-p2p/monero-cli/files/patch-cmake_Version.cmake
==============================================================================
--- head/net-p2p/monero-cli/files/patch-cmake_Version.cmake	Thu Jun  7 09:34:26 2018	(r471905)
+++ head/net-p2p/monero-cli/files/patch-cmake_Version.cmake	Thu Jun  7 10:46:46 2018	(r471906)
@@ -1,11 +1,6 @@
---- cmake/Version.cmake.orig	2018-03-26 15:12:24 UTC
-+++ cmake/Version.cmake
-@@ -28,11 +28,11 @@
- 
- function (write_static_version_header hash)
-   set(VERSIONTAG "${hash}")
--  configure_file("src/version.cpp.in" "version.cpp")
-+  configure_file("${CMAKE_BINARY_DIR}/src/version.cpp.in" "${CMAKE_BINARY_DIR}/version.cpp")
+--- cmake/Version.cmake.orig	2018-06-01 14:10:23.694883000 UTC
++++ cmake/Version.cmake	2018-06-01 14:10:35.450366000 UTC
+@@ -32,7 +32,7 @@
  endfunction ()
  
  find_package(Git QUIET)

Added: head/net-p2p/monero-cli/files/patch-external_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-p2p/monero-cli/files/patch-external_CMakeLists.txt	Thu Jun  7 10:46:46 2018	(r471906)
@@ -0,0 +1,42 @@
+--- external/CMakeLists.txt.orig	2018-05-23 21:21:59.000000000 UTC
++++ external/CMakeLists.txt	2018-06-01 17:48:47.449100000 UTC
+@@ -31,24 +31,27 @@
+ 
+ # This is broken up into two parts: first we check for miniupnp, compile it if we can't
+ # find it, and thereafter we check for libunbound, and compile it if we can't find it.
+-# We always compile if we are building statically to reduce static dependency issues...
+-# ...except for FreeBSD, because FreeBSD is a special case that doesn't play well with
+-# others.
+ 
+ find_package(Miniupnpc REQUIRED)
+ 
+-message(STATUS "Using in-tree miniupnpc")
++if(NOT MINIUPNPC_FOUND OR STATIC)
++  message(STATUS "Using in-tree miniupnpc")
+ 
+-add_subdirectory(miniupnp/miniupnpc)
++  add_subdirectory(miniupnp/miniupnpc)
+ 
+-set_property(TARGET libminiupnpc-static PROPERTY FOLDER "external")
+-if(MSVC)
+-  set_property(TARGET libminiupnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -wd4244 -wd4267")
+-elseif(NOT MSVC)
+-  set_property(TARGET libminiupnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-undef -Wno-unused-result -Wno-unused-value")
+-endif()
++  set_property(TARGET libminiupnpc-static PROPERTY FOLDER "external")
++  if(MSVC)
++    set_property(TARGET libminiupnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -wd4244 -wd4267")
++  elseif(NOT MSVC)
++    set_property(TARGET libminiupnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-undef -Wno-unused-result -Wno-unused-value")
++  endif()
+ 
+-set(UPNP_LIBRARIES "libminiupnpc-static" PARENT_SCOPE)
++  set(UPNP_LIBRARIES "libminiupnpc-static" PARENT_SCOPE)
++else()
++  message(STATUS "Found miniupnpc shared library (${MINIUPNP_LIBRARY})")
++  set(UPNP_LIBRARIES ${MINIUPNP_LIBRARY} PARENT_SCOPE)
++  set(UPNP_INCLUDE_DIR ${MINIUPNP_INCLUDE_DIR} PARENT_SCOPE)
++endif()
+ 
+ find_package(Unbound)
+ 

Added: head/net-p2p/monero-cli/files/patch-src_p2p_net__node.inl
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-p2p/monero-cli/files/patch-src_p2p_net__node.inl	Thu Jun  7 10:46:46 2018	(r471906)
@@ -0,0 +1,15 @@
+--- src/p2p/net_node.inl.orig	2018-06-06 19:28:51.925128000 UTC
++++ src/p2p/net_node.inl	2018-06-06 19:29:06.877331000 UTC
+@@ -49,9 +49,9 @@
+ #include "storages/levin_abstract_invoke2.h"
+ #include "cryptonote_core/cryptonote_core.h"
+ 
+-#include <miniupnp/miniupnpc/miniupnpc.h>
+-#include <miniupnp/miniupnpc/upnpcommands.h>
+-#include <miniupnp/miniupnpc/upnperrors.h>
++#include <miniupnpc/miniupnpc.h>
++#include <miniupnpc/upnpcommands.h>
++#include <miniupnpc/upnperrors.h>
+ 
+ #undef MONERO_DEFAULT_LOG_CATEGORY
+ #define MONERO_DEFAULT_LOG_CATEGORY "net.p2p"


More information about the svn-ports-all mailing list