summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGeorge Hartzell <hartzell@alerce.com>2019-09-17 11:22:10 -0700
committerPeter Scheibel <scheibel1@llnl.gov>2019-09-17 11:22:10 -0700
commitae37896800127cf0d2dad6ddabfbc1de4e63a7e7 (patch)
tree8b4117d6ec51c4747e49917b3057f7d907e0974b /var
parent21e4b1752e48caaaf4376326e7825908d27b0926 (diff)
downloadspack-ae37896800127cf0d2dad6ddabfbc1de4e63a7e7.tar.gz
spack-ae37896800127cf0d2dad6ddabfbc1de4e63a7e7.tar.bz2
spack-ae37896800127cf0d2dad6ddabfbc1de4e63a7e7.tar.xz
spack-ae37896800127cf0d2dad6ddabfbc1de4e63a7e7.zip
cryptsetup package: dont vendor libuuid in util-linux (#12839)
Fixes #12829 This adds a variant to the util-linux package that controls whether it builds its own libuuid. Variant defaults to True. It enables other packages to choose to get libuuid from the libuuid package instead. This also changes the cryptsetup package to build util-linux with ~libuuid (so it uses an explicitly-Spack-built instance of libuuid instead).
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/cryptsetup/package.py2
-rw-r--r--var/spack/repos/builtin/packages/util-linux/package.py10
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