From 8df17d38301740c45a08fed4e6e719fa58fa6aa7 Mon Sep 17 00:00:00 2001 From: darmac Date: Sat, 1 Aug 2020 03:43:40 +0800 Subject: open-iscsi: refine runtime environment (#17789) --- var/spack/repos/builtin/packages/open-iscsi/package.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'var') 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)) -- cgit v1.2.3-70-g09d2