diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/cryptsetup/package.py | 2 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/util-linux/package.py | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/cryptsetup/package.py b/var/spack/repos/builtin/packages/cryptsetup/package.py index 62c42ad2f1..9bee30ef9f 100644 --- a/var/spack/repos/builtin/packages/cryptsetup/package.py +++ b/var/spack/repos/builtin/packages/cryptsetup/package.py @@ -20,7 +20,7 @@ class Cryptsetup(AutotoolsPackage): depends_on('lvm2', type=('build', 'link')) depends_on('popt', type=('build', 'link')) depends_on('json-c', type=('build', 'link')) - depends_on('util-linux', type=('build', 'link')) + depends_on('util-linux~libuuid', type=('build', 'link')) depends_on('gettext', type=('build', 'link')) depends_on('autoconf', type='build') diff --git a/var/spack/repos/builtin/packages/util-linux/package.py b/var/spack/repos/builtin/packages/util-linux/package.py index 52091251e9..60319d9364 100644 --- a/var/spack/repos/builtin/packages/util-linux/package.py +++ b/var/spack/repos/builtin/packages/util-linux/package.py @@ -21,9 +21,17 @@ class UtilLinux(AutotoolsPackage): depends_on('python@2.7:') depends_on('pkgconfig') + # Make it possible to disable util-linux's libuuid so that you may + # reliably depend_on(`libuuid`). + variant('libuuid', default=True, description='Build libuuid') + def url_for_version(self, version): url = "https://www.kernel.org/pub/linux/utils/util-linux/v{0}/util-linux-{1}.tar.gz" return url.format(version.up_to(2), version) def configure_args(self): - return ['--disable-use-tty-group'] + config_args = [ + '--disable-use-tty-group', + ] + config_args.extend(self.enable_or_disable('libuuid')) + return config_args |