From 130354b867f6800da733e2eb0890384e3bf5057b Mon Sep 17 00:00:00 2001 From: Greg Becker Date: Thu, 10 Feb 2022 00:10:23 -0800 Subject: spack audit: fix spurious failures for target/platform conflicts (#28860) --- .../packages/unconstrainable-conflict/package.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 var/spack/repos/builtin.mock/packages/unconstrainable-conflict/package.py (limited to 'var') diff --git a/var/spack/repos/builtin.mock/packages/unconstrainable-conflict/package.py b/var/spack/repos/builtin.mock/packages/unconstrainable-conflict/package.py new file mode 100644 index 0000000000..e869b13b3f --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/unconstrainable-conflict/package.py @@ -0,0 +1,16 @@ +# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +class UnconstrainableConflict(Package): + """Package with a conflict whose trigger cannot constrain its constraint.""" + + homepage = "http://www.example.com" + url = "http://www.example.com/unconstrainable-conflict-1.0.tar.gz" + + version('1.0', '0123456789abcdef0123456789abcdef') + + # Two conflicts so there's always one that is not the current platform + conflicts('target=x86_64', when='platform=darwin') + conflicts('target=aarch64', when='platform=linux') -- cgit v1.2.3-70-g09d2