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).
This commit is contained in:
George Hartzell
2019-09-17 11:22:10 -07:00
committed by Peter Scheibel
parent 21e4b1752e
commit ae37896800
2 changed files with 10 additions and 2 deletions

View File

@@ -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')