File 1931-otp-adds-licenses-to-files-that-require-it.patch of Package erlang

From cfd13853f3a75eeab28f06fffea2cd7c48678c66 Mon Sep 17 00:00:00 2001
From: Kiko Fernandez-Reyes <kiko@erlang.org>
Date: Wed, 20 Nov 2024 12:56:21 +0100
Subject: [PATCH 1/3] otp: adds licenses to files that require it

---
 .github/workflows/upload-windows-zip.yaml     | 20 +++++++++++++++++++
 erts/etc/win32/INSTALL.txt                    |  2 ++
 .../test/beam_doc_SUITE_data/behaviours.erl   | 20 +++++++++++++++++++
 .../source_annotations.erl                    | 19 ++++++++++++++++++
 .../test/beam_doc_SUITE_data/source_path.erl  | 20 +++++++++++++++++++
 .../erl_lint_SUITE_data/bad_behaviour3.erl    | 20 +++++++++++++++++++
 .../bypass_unicode_conversion                 | 20 +++++++++++++++++++
 7 files changed, 121 insertions(+)

diff --git a/.github/workflows/upload-windows-zip.yaml b/.github/workflows/upload-windows-zip.yaml
index f8a5956964..9f7f65092a 100644
--- a/.github/workflows/upload-windows-zip.yaml
+++ b/.github/workflows/upload-windows-zip.yaml
@@ -1,3 +1,23 @@
+##
+## %CopyrightBegin%
+##
+## Copyright Ericsson AB 1998-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
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## 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%
+##
+
 name: Upload windows .zip
 
 on:
diff --git a/erts/etc/win32/INSTALL.txt b/erts/etc/win32/INSTALL.txt
index 2ad9c53929..c8c0a4e45e 100644
--- a/erts/etc/win32/INSTALL.txt
+++ b/erts/etc/win32/INSTALL.txt
@@ -1,3 +1,5 @@
+%% SPDX-License-Identifier: Apache-2.0
+
 Welcome to Erlang/OTP!
 
 This Erlang installation requires "Microsoft Visual C++ Redistributable". Unless it is already
diff --git a/lib/compiler/test/beam_doc_SUITE_data/behaviours.erl b/lib/compiler/test/beam_doc_SUITE_data/behaviours.erl
index 4c5de47fb3..0b64d14132 100644
--- a/lib/compiler/test/beam_doc_SUITE_data/behaviours.erl
+++ b/lib/compiler/test/beam_doc_SUITE_data/behaviours.erl
@@ -1,3 +1,23 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 1996-2024. 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
+%%
+%%     http://www.apache.org/licenses/LICENSE-2.0
+%%
+%% Unless required by applicable law or agreed to in writing, software
+%% distributed under the License is distributed on an "AS IS" BASIS,
+%% 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%
+%%
+
 -module(behaviours).
 
 -export([]).
diff --git a/lib/compiler/test/beam_doc_SUITE_data/source_annotations.erl b/lib/compiler/test/beam_doc_SUITE_data/source_annotations.erl
index 9d59f10616..933e46cbb7 100644
--- a/lib/compiler/test/beam_doc_SUITE_data/source_annotations.erl
+++ b/lib/compiler/test/beam_doc_SUITE_data/source_annotations.erl
@@ -1,3 +1,22 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 1996-2024. 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
+%%
+%%     http://www.apache.org/licenses/LICENSE-2.0
+%%
+%% Unless required by applicable law or agreed to in writing, software
+%% distributed under the License is distributed on an "AS IS" BASIS,
+%% 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%
+%%
 -module(source_annotations).
 
 -export([main/1,
diff --git a/lib/compiler/test/beam_doc_SUITE_data/source_path.erl b/lib/compiler/test/beam_doc_SUITE_data/source_path.erl
index 0ca4df4665..0f0d30c62f 100644
--- a/lib/compiler/test/beam_doc_SUITE_data/source_path.erl
+++ b/lib/compiler/test/beam_doc_SUITE_data/source_path.erl
@@ -1,3 +1,23 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 1996-2024. 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
+%%
+%%     http://www.apache.org/licenses/LICENSE-2.0
+%%
+%% Unless required by applicable law or agreed to in writing, software
+%% distributed under the License is distributed on an "AS IS" BASIS,
+%% 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%
+%%
+
 -module(source_path).
 
 -export([]).
diff --git a/lib/stdlib/test/erl_lint_SUITE_data/bad_behaviour3.erl b/lib/stdlib/test/erl_lint_SUITE_data/bad_behaviour3.erl
index b156f6184a..d52be155bd 100644
--- a/lib/stdlib/test/erl_lint_SUITE_data/bad_behaviour3.erl
+++ b/lib/stdlib/test/erl_lint_SUITE_data/bad_behaviour3.erl
@@ -1,3 +1,23 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 1996-2024. 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
+%%
+%%     http://www.apache.org/licenses/LICENSE-2.0
+%%
+%% Unless required by applicable law or agreed to in writing, software
+%% distributed under the License is distributed on an "AS IS" BASIS,
+%% 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%
+%%
+
 -module(bad_behaviour3).
 -export([behaviour_info/1]).
 
-- 
2.43.0

openSUSE Build Service is sponsored by