1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

lang/solidity: Unbreak

* boost-1.77.0 related compilation failure is fixed
* missing STL header failure if fixed

PR:		246106
Approved by:	portmgr (unbreak)
This commit is contained in:
Yuri Victorovich 2022-06-01 22:26:54 -07:00
parent b76cfcc096
commit d9241604bc
3 changed files with 19 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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;