Skip to content

Commit b049375

Browse files
committed
Fix issue with duplicate glibc node
1 parent 85d8bb1 commit b049375

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

lib/spack/spack/solver/libc_compatibility.lp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
% A package cannot be reused if the libc is not compatible with it
1313
:- provider(node(X, LibcPackage), node(0, "libc")),
1414
attr("version", node(X, LibcPackage), LibcVersion),
15-
attr("hash", ReusedNode, Hash),
16-
not attr("compatible_libc", ReusedNode, LibcPackage, LibcVersion).
15+
attr("hash", node(R, ReusedPackage), Hash),
16+
% Libc packages can be reused without the "compatible_libc" attribute
17+
ReusedPackage != LibcPackage,
18+
not attr("compatible_libc", node(R, ReusedPackage), LibcPackage, LibcVersion).
1719

1820
% A libc is needed in the DAG
1921
:- not provider(_, node(0, "libc")).

0 commit comments

Comments
 (0)