lang/solidity: update to 0.8.30 release.

This commit is contained in:
Alex Dupre
2025-05-08 18:22:55 +02:00
parent 4fb194ad52
commit 3142800d59
6 changed files with 24 additions and 33 deletions
+4 -9
View File
@@ -1,5 +1,5 @@
PORTNAME= solidity
PORTVERSION= 0.8.27
PORTVERSION= 0.8.30
CATEGORIES= lang
MASTER_SITES= https://github.com/ethereum/solidity/releases/download/v${PORTVERSION}/
DISTNAME= ${PORTNAME}_${PORTVERSION}
@@ -23,18 +23,13 @@ CPE_VENDOR= ${PORTNAME}lang
OPTIONS_DEFINE= Z3 CVC5
OPTIONS_DEFAULT=Z3
OPTIONS_EXCLUDE_i386= Z3
Z3_DESC= SMT Checker via Z3
CVC5_DESC= SMT Checker via CVC5
Z3_LIB_DEPENDS= libz3.so:math/z3
Z3_RUN_DEPENDS= z3:math/z3
CVC5_RUN_DEPENDS= cvc5:math/cvc5
Z3_CMAKE_OFF= USE_Z3
CMAKE_ARGS+= -DUSE_LD_GOLD=OFF -DTESTS=OFF \
-DIGNORE_VENDORED_DEPENDENCIES=ON \
-DRANGE_V3_INCLUDE_DIR="${LOCALBASE}/include" \
-DSTRICT_NLOHMANN_JSON_VERSION=OFF \
-DSTRICT_Z3_VERSION=OFF
CMAKE_ARGS+= -DTESTS=OFF \
-DIGNORE_VENDORED_DEPENDENCIES=ON
PLIST_FILES= bin/solc \
bin/yul-phaser
+3 -3
View File
@@ -1,3 +1,3 @@
TIMESTAMP = 1725531164
SHA256 (solidity_0.8.27.tar.gz) = b015e05468f3da791c8b252eb201fa5cb1f62642d6285ed2a845b142f96fc8a6
SIZE (solidity_0.8.27.tar.gz) = 12616162
TIMESTAMP = 1746720051
SHA256 (solidity_0.8.30.tar.gz) = 5e8d58dff551a18205e325c22f1a3b194058efbdc128853afd75d31b0568216d
SIZE (solidity_0.8.30.tar.gz) = 12807705
+1 -16
View File
@@ -1,6 +1,6 @@
--- CMakeLists.txt.orig 2024-09-04 09:02:02 UTC
+++ CMakeLists.txt
@@ -52,15 +52,21 @@ mark_as_advanced(ONLY_BUILD_SOLIDITY_LIBRARIES)
@@ -52,9 +52,6 @@ mark_as_advanced(ONLY_BUILD_SOLIDITY_LIBRARIES)
mark_as_advanced(IGNORE_VENDORED_DEPENDENCIES)
mark_as_advanced(ONLY_BUILD_SOLIDITY_LIBRARIES)
@@ -10,18 +10,3 @@
# Let's find our dependencies
include(EthDependencies)
if (NOT IGNORE_VENDORED_DEPENDENCIES)
include(fmtlib)
include(nlohmann-json)
include(range-v3)
+else()
+ # fmtlib
+ find_package(fmt REQUIRED)
+ # nlohmann-json
+ find_package(nlohmann_json REQUIRED)
+ # range-v3
+ add_library(range-v3 INTERFACE IMPORTED)
+ set_target_properties(range-v3 PROPERTIES
+ INTERFACE_INCLUDE_DIRECTORIES ${RANGE_V3_INCLUDE_DIR})
endif()
find_package(Threads)
@@ -1,6 +1,6 @@
--- libevmasm/Assembly.cpp.orig 2024-05-21 09:44:13 UTC
--- libevmasm/Assembly.cpp.orig 2025-05-07 10:46:47 UTC
+++ libevmasm/Assembly.cpp
@@ -54,6 +54,8 @@ std::map<std::string, std::shared_ptr<std::string cons
@@ -55,6 +55,8 @@ std::map<std::string, std::shared_ptr<std::string cons
std::map<std::string, std::shared_ptr<std::string const>> Assembly::s_sharedSourceNames;
@@ -1,8 +1,8 @@
--- libevmasm/Instruction.h.orig 2023-07-19 09:24:46 UTC
--- libevmasm/Instruction.h.orig 2025-05-07 10:46:47 UTC
+++ libevmasm/Instruction.h
@@ -27,6 +27,8 @@
#include <libsolutil/Assertions.h>
@@ -28,6 +28,8 @@
#include <liblangutil/EVMVersion.h>
#include <liblangutil/Exceptions.h>
+#undef MSIZE // remove MSIZE definition from <sys/params.h>, included by boost 1.66.0
+
@@ -0,0 +1,11 @@
--- libyul/backends/evm/EVMDialect.cpp.orig 2025-05-08 16:10:03 UTC
+++ libyul/backends/evm/EVMDialect.cpp
@@ -56,6 +56,8 @@ std::tuple<size_t, size_t> constexpr verbatimIndexToAr
return std::make_tuple(_index - numRets * EVMDialect::verbatimMaxInputSlots, numRets);
}
+#undef MSIZE // remove MSIZE definition from <sys/params.h>, included by boost 1.66.0
+
BuiltinFunctionForEVM createEVMFunction(
langutil::EVMVersion _evmVersion,
std::string const& _name,