openblas: add perl as a build dependency (#21908)

This commit is contained in:
Harmen Stoppels 2021-02-25 13:38:15 +01:00 committed by GitHub
parent a42d5357c3
commit cf6aeace42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 60 additions and 0 deletions

View file

@ -0,0 +1,55 @@
From ec6b354c32e939605331e2081590815a86413ca8 Mon Sep 17 00:00:00 2001
From: Harmen Stoppels <harmenstoppels@gmail.com>
Date: Wed, 24 Feb 2021 14:07:20 +0100
Subject: [PATCH] use /usr/bin/env perl
---
c_check | 2 +-
exports/gensymbol | 2 +-
f_check | 2 +-
interface/create | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/c_check b/c_check
index 9c8b1aba..e24943a2 100644
--- a/c_check
+++ b/c_check
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
#use File::Basename;
# use File::Temp qw(tempfile);
diff --git a/exports/gensymbol b/exports/gensymbol
index 857a17a9..e7210a03 100644
--- a/exports/gensymbol
+++ b/exports/gensymbol
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Changelog
# 2017/09/03 staticfloat
diff --git a/f_check b/f_check
index ffe9c6b4..d044f254 100644
--- a/f_check
+++ b/f_check
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
$hostos = `uname -s | sed -e s/\-.*//`; chop($hostos);
diff --git a/interface/create b/interface/create
index b7be8ab6..0b9cefa2 100755
--- a/interface/create
+++ b/interface/create
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
$count = 0;
--
2.25.1

View file

@ -116,6 +116,9 @@ class Openblas(MakefilePackage):
patch('openblas_fujitsu_v0.3.11.patch', when='@0.3.11:0.3.12 %fj')
patch('openblas_fujitsu2.patch', when='@0.3.10:0.3.12 %fj')
# Use /usr/bin/env perl in build scripts
patch('0001-use-usr-bin-env-perl.patch', when='@:0.3.13')
# See https://github.com/spack/spack/issues/19932#issuecomment-733452619
conflicts('%gcc@7.0.0:7.3.99,8.0.0:8.2.99', when='@0.3.11:')
@ -131,6 +134,8 @@ class Openblas(MakefilePackage):
conflicts('threads=openmp', when='%apple-clang', msg="Apple's clang does not support OpenMP")
conflicts('threads=openmp @:0.2.19', when='%clang', msg='OpenBLAS @:0.2.19 does not support OpenMP with clang!')
depends_on('perl', type='build')
@property
def parallel(self):
# unclear whether setting `-j N` externally was supported before 0.3