Missing perl dependencies (#5204)

* glib: Add missing perl dependency

* shared-mime-info: Add missing perl dependency

* libx11: Add missing perl dependency

* likwid: Add missing perl dependency
This commit is contained in:
Michael Kuhn
2017-09-26 15:27:28 +02:00
committed by Christoph Junghans
parent f3152a5600
commit 60f8621704
4 changed files with 29 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ class Glib(AutotoolsPackage):
depends_on('libffi')
depends_on('zlib')
depends_on('gettext')
depends_on('perl', type=('build', 'run'))
depends_on('pcre+utf', when='@2.48:')
depends_on('util-linux', when='+libmount')
@@ -70,3 +71,11 @@ def configure_args(self):
args.append('--disable-libmount')
return args
@run_before('install')
def filter_sbang(self):
# Filter sbang before install so Spack's sbang hook can fix it up
perl = join_path(self.spec['perl'].prefix.bin, 'perl')
files = ['gobject/glib-mkenums']
filter_file('^#! /usr/bin/perl', '#!{0}'.format(perl), *files)