git: a845d74f33f9 - main - science/siconos: Fix run-time error 'Undefined symbol "ftime"'

Yuri Victorovich yuri at FreeBSD.org
Thu Aug 12 17:37:15 UTC 2021


The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a845d74f33f9d580da7d72d1c89c007d80c21e91

commit a845d74f33f9d580da7d72d1c89c007d80c21e91
Author:     Yuri Victorovich <yuri at FreeBSD.org>
AuthorDate: 2021-08-12 17:10:13 +0000
Commit:     Yuri Victorovich <yuri at FreeBSD.org>
CommitDate: 2021-08-12 17:37:12 +0000

    science/siconos: Fix run-time error 'Undefined symbol "ftime"'
    
    by adding define CLOCKTIME that changes the time function.
---
 science/siconos/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/science/siconos/Makefile b/science/siconos/Makefile
index 69175fd069b9..436e4f53a78b 100644
--- a/science/siconos/Makefile
+++ b/science/siconos/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	siconos
 DISTVERSION=	4.4.0.rc3
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	science
 
 MAINTAINER=	yuri at FreeBSD.org
@@ -23,6 +23,8 @@ USE_LDCONFIG=	yes
 
 CMAKE_ARGS=	-DFREEBSD_PYTHON_VER=${PYTHON_VER}
 
+CFLAGS+=	-DCLOCKTIME -DCLOCKS_PER_SEC=128 # workaround for 'Undefined symbol "ftime"', see https://github.com/siconos/siconos/issues/411
+
 BINARY_ALIAS=	python3=${PYTHON_CMD}
 
 OPTIONS_DEFINE=		PYTHON


More information about the dev-commits-ports-main mailing list