From 8ab845939780d1dfcc9a405d9dafff0ed0f2b26d Mon Sep 17 00:00:00 2001 From: Milton Woods Date: Mon, 22 May 2017 21:45:24 +1000 Subject: [PATCH] magics: use spack perl instead of system perl (#4310) --- var/spack/repos/builtin/packages/magics/package.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/var/spack/repos/builtin/packages/magics/package.py b/var/spack/repos/builtin/packages/magics/package.py index 22fb6a73c3..fca92d69d4 100644 --- a/var/spack/repos/builtin/packages/magics/package.py +++ b/var/spack/repos/builtin/packages/magics/package.py @@ -23,6 +23,7 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ############################################################################## from spack import * +import glob class Magics(Package): @@ -73,10 +74,9 @@ class Magics(Package): depends_on('libemos', when='+bufr') depends_on('qt', when='+metview+qt') - @when('@:2.29.6') def patch(self): - filter_file('#!/usr/bin/perl', '#!/usr/bin/env perl', - 'tools/xml2cc_new.pl') + for plfile in glob.glob('*/*.pl'): + filter_file('#!/usr/bin/perl', '#!/usr/bin/env perl', plfile) def install(self, spec, prefix): options = []