From 86fad971659793967c88b9ea2d28b86fbad519ca Mon Sep 17 00:00:00 2001 From: Olivier Cessenat Date: Sat, 20 Mar 2021 15:51:03 +0100 Subject: [PATCH] minizip: reduce scope of applied patch (#21909) --- var/spack/repos/builtin/packages/minizip/package.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/minizip/package.py b/var/spack/repos/builtin/packages/minizip/package.py index 85c9fab4b7..2871582295 100644 --- a/var/spack/repos/builtin/packages/minizip/package.py +++ b/var/spack/repos/builtin/packages/minizip/package.py @@ -24,10 +24,11 @@ class Minizip(AutotoolsPackage): # error: implicit declaration of function 'mkdir' is invalid in C99 patch('implicit.patch', when='%apple-clang@12:') + patch('implicit.patch', when='%gcc@7.3.0:') # statically link to libz.a # https://github.com/Homebrew/homebrew-core/blob/master/Formula/minizip.rb - patch('static.patch') + patch('static.patch', when='%apple-clang@12:') # build minizip and miniunz @run_before('autoreconf')