aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2025-11-04 07:24:17 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2025-11-04 07:25:19 +0000
commit7ba8371b0234a28cb8c50ea4acafe68e8f0f9676 (patch)
tree6cf168f92222a3c7144b205737d83bf5cae856d1
parent317574cb1fda2ea406b352bd105ff4eaea67ed0e (diff)
Revert "science/arbor: update 0.10.1 → 0.11.0"
-rw-r--r--science/arbor/Makefile22
-rw-r--r--science/arbor/distinfo8
-rw-r--r--science/arbor/files/patch-CMakeLists.txt23
-rw-r--r--science/arbor/files/patch-cmake_CPM.cmake12
-rw-r--r--science/arbor/files/patch-sup_CMakeLists.txt6
-rw-r--r--science/arbor/pkg-plist4
6 files changed, 25 insertions, 50 deletions
diff --git a/science/arbor/Makefile b/science/arbor/Makefile
index f4d1208a4f82..3629628a0e8d 100644
--- a/science/arbor/Makefile
+++ b/science/arbor/Makefile
@@ -1,6 +1,7 @@
PORTNAME= arbor
DISTVERSIONPREFIX= v
-DISTVERSION= 0.11.0
+DISTVERSION= 0.10.1
+PORTEPOCH= 1
CATEGORIES= science
MAINTAINER= yuri@FreeBSD.org
@@ -11,26 +12,25 @@ WWW= https://arbor-sim.org/ \
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
+BROKEN= compilation fails with clang-19, see https://github.com/arbor-sim/arbor/issues/2424
#BROKEN_armv7= compilation fails: unknown type name 'float64x2_t'
BUILD_DEPENDS= bash:shells/bash \
libfmt>0:devel/libfmt \
nlohmann-json>0:devel/nlohmann-json \
random123>0:devel/random123 \
- ${PYTHON_PKGNAMEPREFIX}svgwrite>0:graphics/py-svgwrite@${PY_FLAVOR} \
- tinyopt>0:devel/tinyopt
+ ${PYTHON_PKGNAMEPREFIX}svgwrite>0:graphics/py-svgwrite@${PY_FLAVOR}
BUILD_DEPENDS+= ${LOCALBASE}/lib/cmake/GTest/GTestConfig.cmake:devel/googletest # https://github.com/arbor-sim/arbor/issues/2205
LIB_DEPENDS= libhwloc.so:devel/hwloc2 \
libpugixml.so:textproc/pugixml \
libunits.so:misc/units
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}svgwrite>0:graphics/py-svgwrite@${PY_FLAVOR}
-TEST_DEPENDS= googletest>0:devel/googletest
+TEST_DEPENDS= googletest>=0:devel/googletest
-USES= cmake compiler:c++20-lang localbase pkgconfig python shebangfix
+USES= cmake compiler:c++17-lang localbase python shebangfix
USE_GITHUB= yes
GH_ACCOUNT= arbor-sim
-GH_TUPLE= cpm-cmake:CPM.cmake:v0.39.0:cpm
SHEBANG_FILES= scripts/arbor-build-catalogue
@@ -38,7 +38,6 @@ CMAKE_ON= BUILD_SHARED_LIBS
CMAKE_OFF= ARB_USE_BUNDLED_UNITS
CMAKE_ARGS= -DPython3_EXECUTABLE=${PYTHON_CMD}
-CONFIGURE_ENV= CPM_REPO=${WRKSRC_cpm}
LDFLAGS+= -L${LOCALBASE}/lib -lunits
OPTIONS_DEFINE= NATIVE
@@ -46,16 +45,9 @@ OPTIONS_DEFINE= NATIVE
NATIVE_CMAKE_ON= -DARB_ARCH=native
NATIVE_CMAKE_OFF= -DARB_ARCH=none
-TEST_TARGET= tests
+TEST_TARGET= tests # tests fail to build, see https://github.com/arbor-sim/arbor/issues/2075
post-install:
@${RMDIR} ${STAGEDIR}${DOCSDIR}
-post-test: # run tests
- @${BUILD_WRKSRC}/bin/unit
- @${BUILD_WRKSRC}/bin/unit-local
- @${BUILD_WRKSRC}/bin/unit-modcc
-
-# tests fail with LIBCPP assertion for invalid array element access, see https://github.com/arbor-sim/arbor/issues/2484
-
.include <bsd.port.mk>
diff --git a/science/arbor/distinfo b/science/arbor/distinfo
index ddd22577d041..895ebcc91640 100644
--- a/science/arbor/distinfo
+++ b/science/arbor/distinfo
@@ -1,5 +1,3 @@
-TIMESTAMP = 1762075604
-SHA256 (arbor-sim-arbor-v0.11.0_GH0.tar.gz) = 6df68b308dd629df993eda40319676cd43407ae211d0846100b0cf42e8c9ad22
-SIZE (arbor-sim-arbor-v0.11.0_GH0.tar.gz) = 12511038
-SHA256 (cpm-cmake-CPM.cmake-v0.39.0_GH0.tar.gz) = 621cfca03a5a0fcf316f08aee37d775a71620879e768ebf74be8495773f6b578
-SIZE (cpm-cmake-CPM.cmake-v0.39.0_GH0.tar.gz) = 100981
+TIMESTAMP = 1724617928
+SHA256 (arbor-sim-arbor-v0.10.1_GH0.tar.gz) = 6a9a209dc20ab6edcf9847a70b0b4dbabf0c0d3c7e6e29b5bec7c00de9d7b8ae
+SIZE (arbor-sim-arbor-v0.10.1_GH0.tar.gz) = 10159032
diff --git a/science/arbor/files/patch-CMakeLists.txt b/science/arbor/files/patch-CMakeLists.txt
index 9a056733f8ea..b813375ca016 100644
--- a/science/arbor/files/patch-CMakeLists.txt
+++ b/science/arbor/files/patch-CMakeLists.txt
@@ -1,6 +1,6 @@
---- CMakeLists.txt.orig 2025-04-24 10:33:03 UTC
+--- CMakeLists.txt.orig 2024-08-09 10:22:00 UTC
+++ CMakeLists.txt
-@@ -60,7 +60,7 @@ check_cxx_compiler_flag("-march=native" CXX_HAS_NATIVE
+@@ -40,7 +40,7 @@ check_cxx_compiler_flag("-march=native" CXX_HAS_NATIVE
# Specify target architecture.
check_cxx_compiler_flag("-march=native" CXX_HAS_NATIVE)
@@ -9,16 +9,11 @@
set(ARB_DEFAULT_ARCH "native")
else()
set(ARB_DEFAULT_ARCH "none")
-@@ -302,11 +302,7 @@ install(TARGETS ext-hwloc EXPORT arbor-targets)
- endif()
- install(TARGETS ext-hwloc EXPORT arbor-targets)
+@@ -307,7 +307,6 @@ install(TARGETS ext-units EXPORT arbor-targets)
+ install(TARGETS ext-random123 EXPORT arbor-targets)
+ target_link_libraries(arbor-public-deps INTERFACE ext-units)
+ install(TARGETS ext-units EXPORT arbor-targets)
+-install(TARGETS units compile_flags_target EXPORT arbor-targets)
--CPMFindPackage(NAME json
-- GITHUB_REPOSITORY nlohmann/json
-- VERSION 3.12.0
-- OPTIONS "CMAKE_SUPPRESS_DEVELOPER_WARNINGS ON")
--install(TARGETS nlohmann_json EXPORT arbor-targets)
-+find_package(nlohmann_json REQUIRED)
-
- add_library(ext-random123 INTERFACE)
- CPMFindPackage(NAME random123
+ # Keep track of packages we need to add to the generated CMake config
+ # file for arbor.
diff --git a/science/arbor/files/patch-cmake_CPM.cmake b/science/arbor/files/patch-cmake_CPM.cmake
deleted file mode 100644
index 5d3f5f935cac..000000000000
--- a/science/arbor/files/patch-cmake_CPM.cmake
+++ /dev/null
@@ -1,12 +0,0 @@
---- cmake/CPM.cmake.orig 2025-04-24 10:33:03 UTC
-+++ cmake/CPM.cmake
-@@ -9,6 +9,9 @@ elseif(DEFINED ENV{CPM_SOURCE_CACHE})
- set(CPM_DOWNLOAD_LOCATION "${CPM_SOURCE_CACHE}/cpm/CPM_${CPM_DOWNLOAD_VERSION}.cmake")
- elseif(DEFINED ENV{CPM_SOURCE_CACHE})
- set(CPM_DOWNLOAD_LOCATION "$ENV{CPM_SOURCE_CACHE}/cpm/CPM_${CPM_DOWNLOAD_VERSION}.cmake")
-+elseif(DEFINED ENV{CPM_REPO})
-+ include("$ENV{CPM_REPO}/cmake/CPM.cmake")
-+ return()
- else()
- set(CPM_DOWNLOAD_LOCATION "${CMAKE_BINARY_DIR}/cmake/CPM_${CPM_DOWNLOAD_VERSION}.cmake")
- endif()
diff --git a/science/arbor/files/patch-sup_CMakeLists.txt b/science/arbor/files/patch-sup_CMakeLists.txt
index 7fff28ceb029..95eac6c5f7eb 100644
--- a/science/arbor/files/patch-sup_CMakeLists.txt
+++ b/science/arbor/files/patch-sup_CMakeLists.txt
@@ -1,4 +1,4 @@
---- sup/CMakeLists.txt.orig 2025-04-24 10:33:03 UTC
+--- sup/CMakeLists.txt.orig 2024-08-09 10:22:00 UTC
+++ sup/CMakeLists.txt
@@ -3,7 +3,7 @@ set(sup-sources
json_meter.cpp
@@ -7,5 +7,5 @@
-add_library(arbor-sup ${sup-sources})
+add_library(arbor-sup STATIC ${sup-sources})
- target_link_libraries(arbor-sup PRIVATE fmt::fmt-header-only)
-
+ if (ARB_USE_BUNDLED_FMT)
+ target_include_directories(arbor-sup
diff --git a/science/arbor/pkg-plist b/science/arbor/pkg-plist
index e01333db8354..f7844f35709c 100644
--- a/science/arbor/pkg-plist
+++ b/science/arbor/pkg-plist
@@ -21,6 +21,7 @@ include/arbor/domdecexcept.hpp
include/arbor/event_generator.hpp
include/arbor/export.hpp
include/arbor/fvm_types.hpp
+include/arbor/generic_event.hpp
include/arbor/gpu/cuda_api.hpp
include/arbor/gpu/gpu_api.hpp
include/arbor/gpu/gpu_common.hpp
@@ -51,6 +52,7 @@ include/arbor/morph/segment_tree.hpp
include/arbor/morph/stitch.hpp
include/arbor/network.hpp
include/arbor/network_generation.hpp
+include/arbor/profile/clock.hpp
include/arbor/profile/meter.hpp
include/arbor/profile/meter_manager.hpp
include/arbor/profile/profiler.hpp
@@ -88,6 +90,7 @@ include/arbor/util/expected.hpp
include/arbor/util/extra_traits.hpp
include/arbor/util/handle_set.hpp
include/arbor/util/hash_def.hpp
+include/arbor/util/lexcmp_def.hpp
include/arbor/util/pp_util.hpp
include/arbor/util/scope_exit.hpp
include/arbor/util/typed_map.hpp
@@ -103,7 +106,6 @@ include/arborenv/gpu_env.hpp
include/arborenv/with_mpi.hpp
include/arborio/cableio.hpp
include/arborio/cv_policy_parse.hpp
-include/arborio/debug.hpp
include/arborio/export.hpp
include/arborio/json_serdes.hpp
include/arborio/label_parse.hpp