File 2511-Add-.elp.toml-file.patch of Package erlang

From 1ec32088680af2117576996d54ad5df8046a61cf Mon Sep 17 00:00:00 2001
From: Roberto Aloi <robertoaloi@meta.com>
Date: Wed, 22 Jan 2025 13:27:42 +0100
Subject: [PATCH] Add .elp.toml file

---
 .elp.toml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 .elp.toml

diff --git a/.elp.toml b/.elp.toml
new file mode 100644
index 0000000000..080bca6eba
--- /dev/null
+++ b/.elp.toml
@@ -0,0 +1,16 @@
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: 2025 Ericsson and the Erlang/OTP contributors
+
+[build_info]
+apps = [
+    "lib/*",
+    {"name" = "erts", "dir" = "erts/preloaded", "src_dirs" = ["src"]},
+    {"name" = "wx", "dir" = "lib/wx", "src_dirs" = ["src", "gen"]},
+    {"name" = "inets", "dir" = "lib/inets", "src_dirs" = ["src/http_client", "src/http_server", "src/http_lib", "src/inets_app"]},
+    {"name" = "common_test", "dir" = "lib/common_test", "src_dirs" = ["src", "test_server"]},
+    # Due to some Erlang/OTP bootstrapping issues, `stdlib` modules such as `gen_server` includes headers from the kernel application
+    # using a simple `-include` directive, causing ELP to fail resolving those inclusions.
+    # Include kernel as an `include_dir` for `stdlib` to solve the issue
+    {"name" = "stdlib", "dir" = "lib/stdlib", "include_dirs" = ["include", "../kernel/include"]},
+    ]
+deps = []
-- 
2.43.0

openSUSE Build Service is sponsored by