git: ec9a9e065cbf - 2025Q1 - math/suitesparse-lagraph: fix build on armv7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Jan 2025 23:51:47 UTC
The branch 2025Q1 has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ec9a9e065cbf5c572fc5d99076244d88ebd921e8
commit ec9a9e065cbf5c572fc5d99076244d88ebd921e8
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-01-20 03:11:36 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-01-21 23:50:38 +0000
math/suitesparse-lagraph: fix build on armv7
liblagraphx requires libm on this platform.
Approved by: portmgr (build fix blanket)
MFH: 2025Q1
PR: 283587
(cherry picked from commit 337d71346c03accc50ec76b465dd232b88a9570c)
---
math/suitesparse-lagraph/Makefile | 1 +
.../patch-LAGraph_experimental_CMakeLists.txt | 23 ++++++++++++++++++++++
2 files changed, 24 insertions(+)
diff --git a/math/suitesparse-lagraph/Makefile b/math/suitesparse-lagraph/Makefile
index fd532be85270..7d14b39b1772 100644
--- a/math/suitesparse-lagraph/Makefile
+++ b/math/suitesparse-lagraph/Makefile
@@ -1,5 +1,6 @@
PORTNAME= ${MPORTNAME:tl}
PORTVERSION= 1.1.3
+PORTREVISION= 1
CATEGORIES= math
COMMENT= Graph algorithms based on GraphBLAS
diff --git a/math/suitesparse-lagraph/files/patch-LAGraph_experimental_CMakeLists.txt b/math/suitesparse-lagraph/files/patch-LAGraph_experimental_CMakeLists.txt
new file mode 100644
index 000000000000..183ff20b401b
--- /dev/null
+++ b/math/suitesparse-lagraph/files/patch-LAGraph_experimental_CMakeLists.txt
@@ -0,0 +1,23 @@
+--- LAGraph/experimental/CMakeLists.txt.orig 2025-01-20 03:05:28 UTC
++++ LAGraph/experimental/CMakeLists.txt
+@@ -38,7 +38,7 @@ if ( BUILD_SHARED_LIBS )
+ set_target_properties ( LAGraphX PROPERTIES EXPORT_NO_SYSTEM ON )
+ endif ( )
+
+- target_link_libraries ( LAGraphX PRIVATE LAGraph GraphBLAS::GraphBLAS )
++ target_link_libraries ( LAGraphX PRIVATE LAGraph GraphBLAS::GraphBLAS -lm )
+
+ target_include_directories ( LAGraphX PUBLIC
+ $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
+@@ -71,9 +71,9 @@ if ( BUILD_STATIC_LIBS )
+ endif ( )
+
+ if ( TARGET GraphBLAS::GraphBLAS_static )
+- target_link_libraries ( LAGraphX_static PRIVATE GraphBLAS::GraphBLAS_static )
++ target_link_libraries ( LAGraphX_static PRIVATE GraphBLAS::GraphBLAS_static -lm )
+ else ( )
+- target_link_libraries ( LAGraphX_static PRIVATE GraphBLAS::GraphBLAS )
++ target_link_libraries ( LAGraphX_static PRIVATE GraphBLAS::GraphBLAS -lm )
+ endif ( )
+
+ target_include_directories ( LAGraphX_static PUBLIC