diff options
author | bernhardkaindl <43588962+bernhardkaindl@users.noreply.github.com> | 2021-09-25 00:32:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-24 16:32:09 -0600 |
commit | 8d70f94aaedd4162ae3878e53de65aaea548f1ac (patch) | |
tree | 123c3e2893ae9b9daa7d50805ab1ea1ebf891acd /var | |
parent | ab90cd8fc46415b45e1cf86d8b0ba7f24e0ca676 (diff) | |
download | spack-8d70f94aaedd4162ae3878e53de65aaea548f1ac.tar.gz spack-8d70f94aaedd4162ae3878e53de65aaea548f1ac.tar.bz2 spack-8d70f94aaedd4162ae3878e53de65aaea548f1ac.tar.xz spack-8d70f94aaedd4162ae3878e53de65aaea548f1ac.zip |
cgdcbxd: Fix build: Use DESTDIR=self.prefix to not write to /etc (#26145)
Fix the build for normal non-root/non-system-user builds, as we cannot
know that we'd have to uninstall these files even if installed as root.
Also add `pkgconfig` and remove not explicitly needed `depends_on('m4')`
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/cgdcbxd/package.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/cgdcbxd/package.py b/var/spack/repos/builtin/packages/cgdcbxd/package.py index 3faad1b494..0d1b613849 100644 --- a/var/spack/repos/builtin/packages/cgdcbxd/package.py +++ b/var/spack/repos/builtin/packages/cgdcbxd/package.py @@ -20,10 +20,17 @@ class Cgdcbxd(AutotoolsPackage): depends_on('autoconf', type='build') depends_on('automake', type='build') depends_on('libtool', type='build') - depends_on('m4', type='build') + depends_on('pkgconfig', type='build') depends_on('libcgroup@0.32:') depends_on('libmnl') def autoreconf(self, spec, prefix): bash = which('bash') bash('./bootstrap.sh') + + @property + def install_targets(self): + # Without DESTDIR=self.prefix, an attempt would be made to install + # configuration files to /etc, which would faild the build and even + # when privileges for this exist, spack could not remove it on uninstall: + return ['install', 'DESTDIR={0}'.format(self.prefix)] |