diff --git a/doc/changes/10564.md b/doc/changes/10564.md new file mode 100644 index 00000000000..541b6bb5dfe --- /dev/null +++ b/doc/changes/10564.md @@ -0,0 +1,3 @@ +- fix interpretation of `exists_if` predicate in `META` files of installed + libraries containing more than one element. (#10564, fixes #10563, @dbuenzli, + @nojb) diff --git a/src/dune_findlib/package0.ml b/src/dune_findlib/package0.ml index 7a443e531a9..99694f61cd0 100644 --- a/src/dune_findlib/package0.ml +++ b/src/dune_findlib/package0.ml @@ -56,7 +56,7 @@ let exists t ~is_builtin = let exists_if = Vars.get_words t.vars "exists_if" Ps.empty in match exists_if with | _ :: _ -> - Memo.List.for_all exists_if ~f:(fun fn -> Fs.file_exists (Path.relative t.dir fn)) + Memo.List.exists exists_if ~f:(fun fn -> Fs.file_exists (Path.relative t.dir fn)) | [] -> if not is_builtin then Memo.return true