diff mbox series

[meta-python,v3,7/9] python3-protobuf: add MIT to license

Message ID 20250203202737.583492-1-peter.marko@siemens.com
State Accepted
Headers show
Series None | expand

Commit Message

Peter Marko Feb. 3, 2025, 8:27 p.m. UTC
From: Peter Marko <peter.marko@siemens.com>

utf_range is MIT licensed.
Although the LICENSE file is not distributed in python protobuf,
this can be read in c++ protobuf recipe where all files are present.

License-Update: added missing license

Signed-off-by: Peter Marko <peter.marko@siemens.com>
---
v3: added link li license as comment and fake LIC_FILES_CHKSUM

 .../recipes-devtools/python/python3-protobuf_4.25.3.bb | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-protobuf_4.25.3.bb b/meta-python/recipes-devtools/python/python3-protobuf_4.25.3.bb
index b92f91b714..032a28963d 100644
--- a/meta-python/recipes-devtools/python/python3-protobuf_4.25.3.bb
+++ b/meta-python/recipes-devtools/python/python3-protobuf_4.25.3.bb
@@ -1,9 +1,13 @@ 
 DESCRIPTION = "Protocol Buffers"
 HOMEPAGE = "https://developers.google.com/protocol-buffers/"
 SECTION = "devel/python"
-
-LICENSE = "BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=53dbfa56f61b90215a9f8f0d527c043d"
+# MIT license is from utf8_range although it's packaged without this information
+# https://github.com/protocolbuffers/protobuf/blob/main/third_party/utf8_range/LICENSE
+LICENSE = "BSD-3-Clause & MIT"
+LIC_FILES_CHKSUM = " \
+    file://PKG-INFO;beginline=8;endline=8;md5=53dbfa56f61b90215a9f8f0d527c043d \
+    file://utf8_range/utf8_range.h;beginline=1;endline=2;md5=f05b3ef36cc354d7134597075a1af64f \
+"
 
 inherit pypi setuptools3
 SRC_URI[sha256sum] = "25b5d0b42fd000320bd7830b349e3b696435f3b329810427a6bcce6a5492cc5c"