summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2024-05-23 14:37:48 +0200
committerGitHub <noreply@github.com>2024-05-23 14:37:48 +0200
commitf60e548a0dca17d44c259fa6c873fa7b683921e0 (patch)
tree62d474e4300ddac2690169894ce9e5a3ba9eaa0f /var
parent04dc16a6b1060397a30166f520f4e67c5df36bd2 (diff)
downloadspack-f60e548a0dca17d44c259fa6c873fa7b683921e0.tar.gz
spack-f60e548a0dca17d44c259fa6c873fa7b683921e0.tar.bz2
spack-f60e548a0dca17d44c259fa6c873fa7b683921e0.tar.xz
spack-f60e548a0dca17d44c259fa6c873fa7b683921e0.zip
ASP-based solver: fix reusing externals on linux (#44316)
We need to tell clingo the libc compatibility of external nodes in buildcaches or stores, to allow reuse.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin.mock/packages/sombrero/package.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/sombrero/package.py b/var/spack/repos/builtin.mock/packages/sombrero/package.py
new file mode 100644
index 0000000000..452274cb9c
--- /dev/null
+++ b/var/spack/repos/builtin.mock/packages/sombrero/package.py
@@ -0,0 +1,16 @@
+# Copyright 2013-2024 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)
+
+from spack.package import *
+
+
+class Sombrero(Package):
+ """Simple package with a dependency on an external spec."""
+
+ homepage = "http://www.example.com"
+ url = "http://www.example.com/b-1.0.tar.gz"
+
+ version("1.0", md5="0123456789abcdef0123456789abcdef")
+ depends_on("externaltool")