File 3591-List-optional-applications-for-wx-apps.patch of Package erlang

From 41ddeac7cd8a5e51a0a5103495fd70304021b7e3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jos=C3=A9=20Valim?= <jose.valim@dashbit.co>
Date: Tue, 27 Jun 2023 11:12:07 +0200
Subject: [PATCH] List optional applications for wx apps

Erlang/OTP 24 added support for optional applications,
this pull request lists them to some apps in order to
exercise the tooling.
---
 lib/debugger/src/debugger.app.src | 9 +++++----
 lib/et/src/et.app.src             | 3 ++-
 lib/observer/src/observer.app.src | 9 +++++----
 lib/reltool/src/reltool.app.src   | 5 +++--
 4 files changed, 15 insertions(+), 11 deletions(-)

diff --git a/lib/debugger/src/debugger.app.src b/lib/debugger/src/debugger.app.src
index c680582f2e..a408d97611 100644
--- a/lib/debugger/src/debugger.app.src
+++ b/lib/debugger/src/debugger.app.src
@@ -1,8 +1,8 @@
 %%
 %% %CopyrightBegin%
-%% 
+%%
 %% Copyright Ericsson AB 1997-2021. All Rights Reserved.
-%% 
+%%
 %% Licensed under the Apache License, Version 2.0 (the "License");
 %% you may not use this file except in compliance with the License.
 %% You may obtain a copy of the License at
@@ -14,7 +14,7 @@
 %% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 %% See the License for the specific language governing permissions and
 %% limitations under the License.
-%% 
+%%
 %% %CopyrightEnd%
 %%
 {application, debugger,
@@ -47,6 +47,7 @@
 	     int
 	    ]},
   {registered, [dbg_iserver, dbg_wx_mon, dbg_wx_winman]},
-  {applications, [kernel, stdlib]},
+  {applications, [kernel, stdlib, compiler]},
+  {optional_applications, [compiler, wx]},
   {runtime_dependencies, ["wx-2.0","stdlib-3.15","kernel-8.0","erts-12.0",
 			  "compiler-8.0"]}]}.
diff --git a/lib/et/src/et.app.src b/lib/et/src/et.app.src
index 8cea1ba842..991b773690 100644
--- a/lib/et/src/et.app.src
+++ b/lib/et/src/et.app.src
@@ -31,7 +31,8 @@
     et_wx_viewer
    ]},
   {registered, [et_collector]},
-  {applications, [stdlib, kernel]},
+  {applications, [stdlib, kernel, runtime_tools]},
+  {optional_applications, [wx, runtime_tools]},
   {env, []},
   {runtime_dependencies, ["wx-1.2","stdlib-3.4","runtime_tools-1.10",
 			  "kernel-5.3","erts-9.0"]}
diff --git a/lib/observer/src/observer.app.src b/lib/observer/src/observer.app.src
index 0839870143..3cac6d6ff0 100644
--- a/lib/observer/src/observer.app.src
+++ b/lib/observer/src/observer.app.src
@@ -14,7 +14,7 @@
 %% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 %% See the License for the specific language governing permissions and
 %% limitations under the License.
-%% 
+%%
 %% %CopyrightEnd%
 %%
 {application, observer,
@@ -65,7 +65,8 @@
 	       ttb,
 	       ttb_et]},
     {registered, []},
-    {applications, [kernel, stdlib]},
+    {applications, [kernel, stdlib, runtime_tools, et]},
+    {optional_applications, [wx, runtime_tools, et]},
     {env, []},
     {runtime_dependencies, ["wx-2.2","stdlib-3.13","runtime_tools-1.19",
 			    "kernel-8.1","et-1.5","erts-11.0"]}]}.
diff --git a/lib/reltool/src/reltool.app.src b/lib/reltool/src/reltool.app.src
index 03d67ee585..285146e0b0 100644
--- a/lib/reltool/src/reltool.app.src
+++ b/lib/reltool/src/reltool.app.src
@@ -34,7 +34,8 @@
     reltool_utils
    ]},
   {registered, []},
-  {applications, [stdlib, kernel]},
+  {applications, [stdlib, kernel, wx, tools, sasl]},
+  {optional_applications, [wx, tools, sasl]},
   {env, []},
   {runtime_dependencies, ["wx-1.2","tools-2.6.14","stdlib-3.4","sasl-2.4",
 			  "kernel-8.4","erts-7.0"]}
-- 
2.35.3

openSUSE Build Service is sponsored by