summaryrefslogtreecommitdiff
path: root/devel/lace
diff options
context:
space:
mode:
Diffstat (limited to 'devel/lace')
-rw-r--r--devel/lace/Makefile12
-rw-r--r--devel/lace/distinfo6
-rw-r--r--devel/lace/files/patch-benchmarks_CMakeLists.txt11
-rw-r--r--devel/lace/files/patch-benchmarks_queens_queens-lace.c11
4 files changed, 21 insertions, 19 deletions
diff --git a/devel/lace/Makefile b/devel/lace/Makefile
index cd7b162a3520..d9467c428a23 100644
--- a/devel/lace/Makefile
+++ b/devel/lace/Makefile
@@ -1,6 +1,6 @@
PORTNAME= lace
DISTVERSIONPREFIX= v
-DISTVERSION= 1.4.2
+DISTVERSION= 2.0.2
PORTREVISION= 1
CATEGORIES= devel
PKGNAMESUFFIX= -work-stealing
@@ -9,12 +9,10 @@ MAINTAINER= yuri@FreeBSD.org
COMMENT= Implementation of work-stealing in C
WWW= https://github.com/trolando/lace
-BROKEN_i386= compilation fails: static assertion failed due to requirement '(sizeof(struct _Task) % 64) == 0': Task size should be a multiple of LINE_SIZE
-
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
-BROKEN_i386= compilation fails: static assertion failed due to requirement '(sizeof(struct _Task) % 64) == 0': Task size should be a multiple of LINE_SIZE
+BROKEN_i386= compilation fails: error: static assertion failed due to requirement '(sizeof(struct _lace_task) % 64) == 0': lace_task size should be a multiple of LACE_CACHE_LINE_SIZE
USES= cmake:testing
@@ -27,6 +25,10 @@ CMAKE_TESTING_ON= LACE_BUILD_TESTS
PORTSCOUT= limit:^.*[0-9]+\.[0-9]+\.[0-9]+$$ # prevent tags like mucocos_2014_ri
-# tests as of 1.4.2: 100% tests passed, 0 tests failed out of 2
+pre-configure: # see discussion in https://github.com/trolando/lace/issues/16
+ @${REINPLACE_CMD} -e 's,memory_order_[[:alnum:]_]*,memory_order_seq_cst,g' \
+ ${WRKSRC}/src/*.[ch] ${WRKSRC}/src/lace.sh
+
+# tests as of 2.0.2: 100% tests passed, 0 tests failed out of 2
.include <bsd.port.mk>
diff --git a/devel/lace/distinfo b/devel/lace/distinfo
index 361c0a0ce844..b3fa7aacf4d4 100644
--- a/devel/lace/distinfo
+++ b/devel/lace/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1743134608
-SHA256 (trolando-lace-v1.4.2_GH0.tar.gz) = d9af1eb9d8ed2f46585085f78080e3a1b1f76fe1ef1f67794c1440a5e27bf07a
-SIZE (trolando-lace-v1.4.2_GH0.tar.gz) = 102784
+TIMESTAMP = 1754112927
+SHA256 (trolando-lace-v2.0.2_GH0.tar.gz) = 416d8397f95646778d9ed7e044b699bb3db49c41f843352d2681d9c44db3f44e
+SIZE (trolando-lace-v2.0.2_GH0.tar.gz) = 145602
diff --git a/devel/lace/files/patch-benchmarks_CMakeLists.txt b/devel/lace/files/patch-benchmarks_CMakeLists.txt
new file mode 100644
index 000000000000..00392a29fc02
--- /dev/null
+++ b/devel/lace/files/patch-benchmarks_CMakeLists.txt
@@ -0,0 +1,11 @@
+--- benchmarks/CMakeLists.txt.orig 2025-08-06 15:18:26 UTC
++++ benchmarks/CMakeLists.txt
+@@ -4,7 +4,7 @@ macro(set_compilation_settings NAME)
+ target_compile_features(${NAME} PRIVATE c_std_11 cxx_std_11)
+ target_compile_options(${NAME} PRIVATE
+ $<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:GNU>>:
+- -pipe -march=native -Wall -Wextra -Wpedantic -Wno-deprecated>
++ -pipe -Wall -Wextra -Wpedantic -Wno-deprecated>
+ $<$<CXX_COMPILER_ID:MSVC>: /W4>
+ )
+ if (CMAKE_BUILD_TYPE STREQUAL "Release")
diff --git a/devel/lace/files/patch-benchmarks_queens_queens-lace.c b/devel/lace/files/patch-benchmarks_queens_queens-lace.c
deleted file mode 100644
index f942da62abbf..000000000000
--- a/devel/lace/files/patch-benchmarks_queens_queens-lace.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- benchmarks/queens/queens-lace.c.orig 2025-05-23 10:53:37 UTC
-+++ benchmarks/queens/queens-lace.c
-@@ -73,7 +73,7 @@ int main(int argc, char *argv[])
- int workers = 1;
- int dqsize = 100000;
-
-- char c;
-+ signed char c;
- while ((c=getopt(argc, argv, "w:q:h")) != -1) {
- switch (c) {
- case 'w':