Add missing module env variable setting causing OSS to fail. (#10182)

This commit is contained in:
Jim Galarowicz 2018-12-22 17:24:44 -06:00 committed by Adam J. Stewart
parent 90dce26db9
commit 93d9139ff6

View file

@ -6,6 +6,7 @@
from spack import *
import spack.store
import os
class Openspeedshop(CMakePackage):
@ -290,6 +291,16 @@ def setup_environment(self, spack_env, run_env):
run_env.set('DYNINSTAPI_RT_LIB', dyninst_libdir)
run_env.set('OPENSS_RAWDATA_DIR', '.')
# Set the openspeedshop plugin path
if os.path.isdir(self.prefix.lib64):
lib_dir = self.prefix.lib64
else:
lib_dir = self.prefix.lib
plugin_path = '/openspeedshop'
oss_plugin_path = lib_dir + plugin_path
run_env.set('OPENSS_PLUGIN_PATH', oss_plugin_path)
cbtf_mc = '/sbin/cbtf_mrnet_commnode'
cbtf_lmb = '/sbin/cbtf_libcbtf_mrnet_backend'
run_env.set('XPLAT_RSH', 'ssh')