gentoo/sci-physics/yoda/files/yoda-2.1.1-testpaths.patch
Alexander Puck Neuwirth 23e69daa29
sci-physics/yoda: add 2.1.1
Closes: https://bugs.gentoo.org/954254
Part-of: https://github.com/gentoo/gentoo/pull/43491
Signed-off-by: Alexander Puck Neuwirth <apn-pucky@gentoo.org>
2025-08-25 12:27:46 +02:00

27 lines
929 B
Diff

https://gitlab.com/hepcedar/yoda/-/merge_requests/362
From 9a47654ff88dffc94cefa89b52819941364f1259 Mon Sep 17 00:00:00 2001
From: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
Date: Tue, 19 Aug 2025 09:28:35 +0000
Subject: [PATCH] Allow lib64 in testpaths too
---
tests/TestPaths.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/TestPaths.cc b/tests/TestPaths.cc
index 5c9ec5ce3..13cf2407a 100644
--- a/tests/TestPaths.cc
+++ b/tests/TestPaths.cc
@@ -9,7 +9,7 @@ using namespace YODA;
auto testPaths() {
const std::string libPath = getLibPath();
- if ( !Utils::endswith(libPath, "/lib") ) return CHECK_TEST_RES(false);
+ if ( !Utils::endswith(libPath, "/lib") && !Utils::endswith(libPath, "/lib64") ) return CHECK_TEST_RES(false);
const std::string dataPath = getDataPath();
if ( !Utils::endswith(dataPath, "/share/YODA") ) return CHECK_TEST_RES(false);
--
GitLab