From 7cd401082496e996cbb43b40eacdc44e2b2541c4 Mon Sep 17 00:00:00 2001 From: Paolo Andreetto Date: Mon, 6 Feb 2023 12:00:39 +0100 Subject: [PATCH] Workaround for ACTS config --- ilcsoft/acts.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ilcsoft/acts.py b/ilcsoft/acts.py index 66d2ad81..d26a48e7 100644 --- a/ilcsoft/acts.py +++ b/ilcsoft/acts.py @@ -11,6 +11,8 @@ from baseilc import BaseILC from util import * +import os.path + class ACTS(BaseILC): """ Responsible for the ACTS installation process. """ @@ -51,6 +53,11 @@ def compile(self): if( os_system( "make install" ) != 0 ): self.abort( "failed to install!!" ) + patch_cmd = "sed -i -e 's|Boost 1.75.0 CONFIG EXACT|Boost 1.75.0 EXACT|g' %s" + file_to_patch = os.path.join(self.installPath, 'lib64', 'cmake', 'Acts', 'ActsConfig.cmake') + if( os_system(patch_cmd % file_to_patch) != 0 ): + print("Cannot patch file %s" % file_to_patch) + def writeEnv(self, f, checked): if( self.name in checked ): return