diff options
author | Qian Jianhua <qianjh@fujitsu.com> | 2022-04-25 20:42:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-25 14:42:15 +0200 |
commit | 57968e7ad4eab9139a4248669c363da01d385d71 (patch) | |
tree | 6ba0e19d1d9b0f16ce88ada59d6630d01222f850 | |
parent | 02a7fc69ede188073c583b1a014c4e4240e5442f (diff) | |
download | spack-57968e7ad4eab9139a4248669c363da01d385d71.tar.gz spack-57968e7ad4eab9139a4248669c363da01d385d71.tar.bz2 spack-57968e7ad4eab9139a4248669c363da01d385d71.tar.xz spack-57968e7ad4eab9139a4248669c363da01d385d71.zip |
fakexrandr: mkdir for install (#29845)
-rw-r--r-- | var/spack/repos/builtin/packages/fakexrandr/package.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/fakexrandr/package.py b/var/spack/repos/builtin/packages/fakexrandr/package.py index 314a56dfa8..669e6d6578 100644 --- a/var/spack/repos/builtin/packages/fakexrandr/package.py +++ b/var/spack/repos/builtin/packages/fakexrandr/package.py @@ -44,3 +44,10 @@ class Fakexrandr(MakefilePackage): if 'platform=darwin' in spec: makefile.filter('ldconfig', '') + + # In Makefile, install commands check the target dir. + # If it does not exist, process will stop. + @run_before('install') + def make_target_dir(self): + mkdirp(self.prefix.lib) + mkdirp(self.prefix.bin) |