Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Dec 2025 16:01:36 +0000
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 2a2ebc98ed86 - main - science/gnudatalanguage: fix testsuite
Message-ID:  <694576e0.46935.2ab8be51@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by thierry:

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

commit 2a2ebc98ed869ab98554f41cd19d0a78522bd72c
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2025-12-19 15:49:47 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2025-12-19 16:01:28 +0000

    science/gnudatalanguage: fix testsuite
    
    No need to bump PORTREVISION.
---
 science/gnudatalanguage/Makefile                              |  1 -
 .../files/patch-testsuite_get__path__to__exe.pro              | 11 +++++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/science/gnudatalanguage/Makefile b/science/gnudatalanguage/Makefile
index b410beb2f4f5..1ff10398c473 100644
--- a/science/gnudatalanguage/Makefile
+++ b/science/gnudatalanguage/Makefile
@@ -47,7 +47,6 @@ CMAKE_ARGS=	-DREADLINEDIR:STRING="/usr"	\
 CPPFLAGS+=	${CFLAGS} -fno-inline -DNPY_NO_DEPRECATED_API -DNPY_1_7_API_VERSION
 CXXFLAGS+=	-std=gnu++11
 LDFLAGS+=	-lpthread -L${LOCALBASE}/lib
-# Two tests fail - https://github.com/gnudatalanguage/gdl/issues/2158
 TEST_TARGET=	test
 
 SLAVEDIRS=	science/py-gnudatalanguage
diff --git a/science/gnudatalanguage/files/patch-testsuite_get__path__to__exe.pro b/science/gnudatalanguage/files/patch-testsuite_get__path__to__exe.pro
new file mode 100644
index 000000000000..748a4629e36f
--- /dev/null
+++ b/science/gnudatalanguage/files/patch-testsuite_get__path__to__exe.pro
@@ -0,0 +1,11 @@
+--- testsuite/get_path_to_exe.pro.orig	2025-12-18 17:13:01 UTC
++++ testsuite/get_path_to_exe.pro
+@@ -11,7 +11,7 @@ known_case=0
+ ;
+ ; On Linux, this is fine with GDL, IDL & FL
+ ;
+-if (STRLOWCASE(!version.os) EQ 'linux') then begin
++if (STRLOWCASE(!version.os_family) eq 'unix') then begin
+    get_pid=FILE_READLINK('/proc/self')
+    get_abspath_to_exe=FILE_READLINK('/proc/'+get_pid+'/exe')
+    known_case=1


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?694576e0.46935.2ab8be51>