From 2a2ebc98ed869ab98554f41cd19d0a78522bd72c Mon Sep 17 00:00:00 2001 From: Thierry Thomas Date: Fri, 19 Dec 2025 15:49:47 +0000 Subject: [PATCH] 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(-) create mode 100644 science/gnudatalanguage/files/patch-testsuite_get__path__to__exe.pro 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