summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-08-01 03:43:40 +0800
committerGitHub <noreply@github.com>2020-07-31 14:43:40 -0500
commit8df17d38301740c45a08fed4e6e719fa58fa6aa7 (patch)
tree91d3e0539e57d3005e00226fcbcf986845f8cdd1
parentc7e83a837565c2ea9f18217d3ec650e693d22658 (diff)
downloadspack-8df17d38301740c45a08fed4e6e719fa58fa6aa7.tar.gz
spack-8df17d38301740c45a08fed4e6e719fa58fa6aa7.tar.bz2
spack-8df17d38301740c45a08fed4e6e719fa58fa6aa7.tar.xz
spack-8df17d38301740c45a08fed4e6e719fa58fa6aa7.zip
open-iscsi: refine runtime environment (#17789)
-rw-r--r--var/spack/repos/builtin/packages/open-iscsi/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/open-iscsi/package.py b/var/spack/repos/builtin/packages/open-iscsi/package.py
index 73b792340f..0261105867 100644
--- a/var/spack/repos/builtin/packages/open-iscsi/package.py
+++ b/var/spack/repos/builtin/packages/open-iscsi/package.py
@@ -28,5 +28,9 @@ class OpenIscsi(MakefilePackage):
def setup_build_environment(self, env):
env.set('CFLAGS', '-DNO_SYSTEMD')
+ def setup_run_environment(self, env):
+ env.prepend_path('PATH', self.prefix.sbin)
+ env.prepend_path('LD_LIBRARY_PATH', self.prefix.usr.lib64)
+
def install(self, spec, prefix):
make('install', 'DESTDIR={0}'.format(prefix))