git: d9241604bcd8 - main - lang/solidity: Unbreak

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 02 Jun 2022 05:28:50 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d9241604bcd87c961d2b90e76c01e8b26fdd6e2c

commit d9241604bcd87c961d2b90e76c01e8b26fdd6e2c
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-06-02 05:26:54 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-06-02 05:28:46 +0000

    lang/solidity: Unbreak
    
    * boost-1.77.0 related compilation failure is fixed
    * missing STL header failure if fixed
    
    PR:             246106
    Approved by:    portmgr (unbreak)
---
 lang/solidity/Makefile                                      |  5 +++--
 lang/solidity/distinfo                                      |  4 +++-
 .../files/patch-tools_solidityUpgrade_SourceUpgrade.cpp     | 13 +++++++++++++
 3 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/lang/solidity/Makefile b/lang/solidity/Makefile
index a53e7676869b..a34b27306990 100644
--- a/lang/solidity/Makefile
+++ b/lang/solidity/Makefile
@@ -6,6 +6,9 @@ CATEGORIES=	lang
 MASTER_SITES=	https://github.com/ethereum/solidity/releases/download/v${PORTVERSION}/
 DISTNAME=	${PORTNAME}_${PORTVERSION}
 
+PATCH_SITES=	https://github.com/ethereum/solidity/commit/
+PATCHFILES=	026e26af998c10ca4e39ab6b1b8e64dbc2fdd910.patch:-p1 # https://github.com/ethereum/solidity/pull/13090
+
 MAINTAINER=	ale@FreeBSD.org
 COMMENT=	Solidity Contract-Oriented Programming Language
 
@@ -14,8 +17,6 @@ LICENSE=	GPLv3
 NOT_FOR_ARCHS=		powerpc powerpc64 powerpcspe sparc64
 NOT_FOR_ARCHS_REASON=	solidity currently does not support big endian systems
 
-BROKEN=		error: implicit conversion loses integer precision: 'typename std::enable_if<number_category<cpp_int_backend<0, 0, boost::multiprecision::signed_magnitude, boost::multiprecision::unchecked, allocator<unsigned long long>>>::value == number_kind_integer, std::size_t>::type' (aka 'unsigned long') to 'unsigned int'
-
 BUILD_DEPENDS=	boost-libs>=0:devel/boost-libs \
 		libfmt>=0:devel/libfmt \
 		range-v3>=0:devel/range-v3
diff --git a/lang/solidity/distinfo b/lang/solidity/distinfo
index 64d2bfcc474e..a2d79b177fe1 100644
--- a/lang/solidity/distinfo
+++ b/lang/solidity/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1652802997
+TIMESTAMP = 1654144304
 SHA256 (solidity_0.8.14.tar.gz) = 7ccdf20c889206103d0a48fe10b1c3f1f21269070861e80382f7ede8785e61d4
 SIZE (solidity_0.8.14.tar.gz) = 3214611
+SHA256 (026e26af998c10ca4e39ab6b1b8e64dbc2fdd910.patch) = fe2ecb05f607e19cd6795c135e046a0414b32d6b12eee745c5a5d05fe38ce7c9
+SIZE (026e26af998c10ca4e39ab6b1b8e64dbc2fdd910.patch) = 2189
diff --git a/lang/solidity/files/patch-tools_solidityUpgrade_SourceUpgrade.cpp b/lang/solidity/files/patch-tools_solidityUpgrade_SourceUpgrade.cpp
new file mode 100644
index 000000000000..59e040bce985
--- /dev/null
+++ b/lang/solidity/files/patch-tools_solidityUpgrade_SourceUpgrade.cpp
@@ -0,0 +1,13 @@
+- workaround for https://github.com/ethereum/solidity/issues/13091
+
+--- tools/solidityUpgrade/SourceUpgrade.cpp.orig	2022-06-02 02:23:26 UTC
++++ tools/solidityUpgrade/SourceUpgrade.cpp
+@@ -34,6 +34,8 @@
+ 	#include <unistd.h>
+ #endif
+ 
++#include <fstream>
++
+ 
+ namespace po = boost::program_options;
+ namespace fs = boost::filesystem;