summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorPeter Marko <peter.marko@siemens.com>2024-04-12 18:57:13 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-04-14 06:28:02 +0100
commit4d4a07689ee5822408eeaf762cd8dde39d023d97 (patch)
tree6732289c6d9d9713345b1d24aa231b4cc1374ba7 /meta/recipes-core
parentc31b13d122c52263d242cf92112aea94955d176f (diff)
downloadpoky-4d4a07689ee5822408eeaf762cd8dde39d023d97.tar.gz
kbd: remove non-free Agafari fonts
Its license makes it impossible to distribute kbd in any commercial products. Backport commit which removes it. [RP/Khem Raj: Switched binary diff to just delete the files in do_configure] (From OE-Core rev: 457fc8247f083d89432543337207de0b8c44bf6d) Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/kbd/kbd/0001-Remove-non-free-Agafari-fonts.patch73
-rw-r--r--meta/recipes-core/kbd/kbd_2.6.4.bb7
2 files changed, 80 insertions, 0 deletions
diff --git a/meta/recipes-core/kbd/kbd/0001-Remove-non-free-Agafari-fonts.patch b/meta/recipes-core/kbd/kbd/0001-Remove-non-free-Agafari-fonts.patch
new file mode 100644
index 0000000000..de279b55f9
--- /dev/null
+++ b/meta/recipes-core/kbd/kbd/0001-Remove-non-free-Agafari-fonts.patch
@@ -0,0 +1,73 @@
1From b757e6842f9631757f0d1a6b3833aabffa9ffeee Mon Sep 17 00:00:00 2001
2From: Alexey Gladkov <legion@kernel.org>
3Date: Thu, 29 Feb 2024 17:38:37 +0100
4Subject: [PATCH] Remove non-free Agafari fonts
5
6Based on legal analysis, we are removing non-free fonts for now. If we
7can change the license of these fonts, we will return them back.
8
9From: Stanislav Brabec <sbrabec@suse.com>
10Date: Wed, 28 Feb 2024 16:47:54 +0100
11Subject: kbd: Legal problems of Agafari fonts
12
13 The data/consolefonts/README.Ethiopic contains a notice:
14 Agafari:
15 Donated by the Ethiopian Science and Technology Commission
16 <ncic@padis.gn.apc.org> or <ncic@telecom.net.et> and may be redistributed
17 for non-commercial use under Unix environments only.
18
19 According to our legal review, it makes impossible to distribute these
20 fonts as part of any commercial products, and even makes it impossible to
21 distribute kbd sources as part of any commercial product services.
22
23 Additionally, it makes the whole kbd package incompatible with GPL, so the
24 COPYING file (created during build of the tarball) cannot declare GPL
25 version 2. It also violates section 6 of GPL (no further restrictions).
26
27 That is why several GNU/Linux distributions exclude Agafari from the
28 release. To be on a safe side, SUSE even decided to repack any source
29 tarballs before putting it to their servers.
30
31 This was probably reported to the former kbd maintainer about 20 years ago,
32 but nothing changed over years.
33
34 That is why I recommend removing Agafari fonts and removing the reference
35 to them from README.Ethiopic. Alternatively, you can ask the Ethiopian
36 Science and Technology Commission for re-licensing.
37
38Signed-off-by: Alexey Gladkov <legion@kernel.org>
39
40Upstream-Status: Backport [https://github.com/legionus/kbd/commit/b757e6842f9631757f0d1a6b3833aabffa9ffeee]
41
42[do_configure prepend added to remove binary files]
43
44Signed-off-by: Peter Marko <peter.marko@siemens.com>
45---
46 data/consolefonts/Agafari-12.psfu | Bin 7989 -> 0 bytes
47 data/consolefonts/Agafari-14.psfu | Bin 9013 -> 0 bytes
48 data/consolefonts/Agafari-16.psfu | Bin 10037 -> 0 bytes
49 data/consolefonts/README.Ethiopic | 5 -----
50 4 files changed, 5 deletions(-)
51 delete mode 100644 data/consolefonts/Agafari-12.psfu
52 delete mode 100644 data/consolefonts/Agafari-14.psfu
53 delete mode 100644 data/consolefonts/Agafari-16.psfu
54
55diff --git a/data/consolefonts/README.Ethiopic b/data/consolefonts/README.Ethiopic
56index 7502722..2810797 100644
57--- a/data/consolefonts/README.Ethiopic
58+++ b/data/consolefonts/README.Ethiopic
59@@ -14,11 +14,6 @@ Ethiopic fonts:
60 restrictions below:
61
62
63-Agafari:
64- Donated by the Ethiopian Science and Technology Commission
65- <ncic@padis.gn.apc.org> or <ncic@telecom.net.et> and may be redistributed
66- for non-commercial use under Unix environments only.
67-
68 Goha and GohaClassic:
69 Donated by Yitna Firdyiwek <ybf2u@virgina.edu> of GohaTibeb Associates
70 and may be redistributed without restriction under the GNU GPL 2.0.
71--
722.30.2
73
diff --git a/meta/recipes-core/kbd/kbd_2.6.4.bb b/meta/recipes-core/kbd/kbd_2.6.4.bb
index 1a7b6b552b..33c39c9f10 100644
--- a/meta/recipes-core/kbd/kbd_2.6.4.bb
+++ b/meta/recipes-core/kbd/kbd_2.6.4.bb
@@ -14,6 +14,7 @@ RPROVIDES:${PN} = "console-tools"
14RCONFLICTS:${PN} = "console-tools" 14RCONFLICTS:${PN} = "console-tools"
15 15
16SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/${BP}.tar.xz \ 16SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/${BP}.tar.xz \
17 file://0001-Remove-non-free-Agafari-fonts.patch \
17 " 18 "
18 19
19SRC_URI[sha256sum] = "519f8d087aecca7e0a33cd084bef92c066eb19731666653dcc70c9d71aa40926" 20SRC_URI[sha256sum] = "519f8d087aecca7e0a33cd084bef92c066eb19731666653dcc70c9d71aa40926"
@@ -34,6 +35,12 @@ FILES:${PN}-unimaps = "${datadir}/unimaps"
34 35
35RRECOMMENDS:${PN}-keymaps = "${PN}-keymaps-pine" 36RRECOMMENDS:${PN}-keymaps = "${PN}-keymaps-pine"
36 37
38# remove this when upgrading to newer version which has integrated
39# https://github.com/legionus/kbd/commit/b757e6842f9631757f0d1a6b3833aabffa9ffeee
40do_configure:prepend() {
41 rm -rf ${S}/data/consolefonts/Agafari-1*
42}
43
37do_install:append () { 44do_install:append () {
38 if [ "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'yes', 'no', d)}" = "yes" ] \ 45 if [ "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'yes', 'no', d)}" = "yes" ] \
39 && [ -f ${D}${sysconfdir}/pam.d/vlock ]; then 46 && [ -f ${D}${sysconfdir}/pam.d/vlock ]; then