Skip to contentSkip to conversation

Remove bogus COMMON_LICENSE_DIR usage in LIC_FILES_CHKSUM

PATCH New Adrian Bunk 1 participant 1 message Aug 30, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove bogus COMMON_LICENSE_DIR usage in LIC_FILES_CHKSUM

Using COMMON_LICENSE_DIR in LIC_FILES_CHKSUM of downloaded code is never the right thing to do, there must be some license information and that has to be checked instead.

In several cases the claimed LICENSE was also incorrect.

---
 meta-oe/recipes-support/daemontools/daemontools_0.76.bb       | 2 +-
 meta-python/recipes-devtools/python/python-daemon_2.1.2.bb    | 4 ++--
 meta-python/recipes-devtools/python/python-grpcio-tools.inc   | 4 ++--
 meta-python/recipes-devtools/python/python-grpcio.inc         | 4 ++--
 meta-python/recipes-devtools/python/python-intervals.inc      | 4 ++--
 meta-python/recipes-devtools/python/python-lockfile_0.12.2.bb | 2 +-
 meta-python/recipes-devtools/python/python-pint.inc           | 2 +-
 meta-python/recipes-devtools/python/python-protobuf.inc       | 2 +-
 .../python/python-robotframework-seriallibrary.inc            | 2 +-
 meta-python/recipes-devtools/python/python-scrypt.inc         | 2 +-
 10 files changed, 14 insertions(+), 14 deletions(-)
meta-oe/recipes-support/daemontools/daemontools_0.76.bb +1 -1
index 84e9bca0e..35251cb8d 100644
@@ -12,7 +12,7 @@ data."
 
 SECTION = "System/Servers"
 
-LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/PD;md5=b3597d12946881e13cb3b548d1173851"
+LIC_FILES_CHKSUM = "file://src/prot.c;beginline=1;endline=1;md5=96964cadf07e8f8c1e2ffb3b507dd647"
 LICENSE = "PD"
 
 SRC_URI = "http://cr.yp.to/daemontools/${BPN}-${PV}.tar.gz \
meta-python/recipes-devtools/python/python-daemon_2.1.2.bb +2 -2
index ffb5beb57..002da046c 100644
@@ -8,8 +8,8 @@ RDEPENDS_${PN} = "python-docutils \
                   python-resource \
 "
 
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
+LICENSE = "Apache-2.0 & GPLv3"
+LIC_FILES_CHKSUM = "file://README;md5=2695c853a2cafc33e68a1d972889ebd2"
 
 inherit pypi setuptools
 
meta-python/recipes-devtools/python/python-grpcio-tools.inc +2 -2
index 91cc62f40..1a15c48de 100644
@@ -5,8 +5,8 @@ SECTION = "devel/python"
 DEPENDS_append = "${PYTHON_PN}-grpcio"
 RDEPENDS_${PN} = "${PYTHON_PN}-grpcio"
 
-LICENSE = "BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=7145f7cdd263359b62d342a02f005515"
 
 inherit pypi
 
meta-python/recipes-devtools/python/python-grpcio.inc +2 -2
index 7d3675c45..c5762b26b 100644
@@ -17,8 +17,8 @@ RDEPENDS_${PN} = "${PYTHON_PN}-protobuf \
                   ${PYTHON_PN}-six \
 "
 
-LICENSE = "BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
 
 inherit pypi
 
meta-python/recipes-devtools/python/python-intervals.inc +2 -2
index 1ecca3524..a915e09f9 100644
@@ -2,8 +2,8 @@ DESCRIPTION = "Interval arithmetic for Python"
 HOMEPAGE = "https://github.com/AlexandreDecan/python-intervals"
 SECTION = "devel/python"
 
-LICENSE = "BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9"
+LICENSE = "LGPLv3"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=05f1e16a8e59ce3e9a979e881816c2ab"
 
 PYPI_PACKAGE := "python-intervals"
 
meta-python/recipes-devtools/python/python-lockfile_0.12.2.bb +1 -1
index 9ad865d40..20ea01804 100644
@@ -5,7 +5,7 @@ SECTION = "devel/python"
 RDEPENDS_${PN} = "python-threading"
 
 LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=2340dffbbfea534b58f1349984eeef72"
 
 inherit pypi setuptools
 
meta-python/recipes-devtools/python/python-pint.inc +1 -1
index 53f778393..2bc8e4ab6 100644
@@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/AlexandreDecan/python-intervals"
 SECTION = "devel/python"
 
 LICENSE = "BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=bccf824202692270a1e0829a62e3f47b"
 
 PYPI_PACKAGE := "Pint"
 
meta-python/recipes-devtools/python/python-protobuf.inc +1 -1
index ce95e66c9..5058d4bd3 100644
@@ -3,7 +3,7 @@ HOMEPAGE = "https://developers.google.com/protocol-buffers/"
 SECTION = "devel/python"
 
 LICENSE = "BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9"
+LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=19e8f490f9526b1de84f8d949cfcfd4e"
 
 inherit pypi
 
meta-python/recipes-devtools/python/python-robotframework-seriallibrary.inc +1 -1
index 9f07b6577..bfcb023a2 100644
@@ -1,7 +1,7 @@
 SUMMARY = "Robot Framework test library for serial connection"
 HOMEPAGE = "https://github.com/whosaysni/robotframework-seriallibrary"
 LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
+LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=7145f7cdd263359b62d342a02f005515"
 
 SRC_URI[md5sum] = "b7c9565d54c30df7cd3f3c0e29adffa3"
 SRC_URI[sha256sum] = "256ad60fc0b7df4be44d82c302f5ed8fad4935cda99e4b45942e3c88179d1e19"
meta-python/recipes-devtools/python/python-scrypt.inc +1 -1
index fef6ec976..aff86a594 100644
@@ -1,6 +1,6 @@
 DESCRIPTION = "Bindings for the scrypt key derivation function library"
 LICENSE = "BSD-2-Clause"
-LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-2-Clause;md5=cb641bc04cda31daea161b1bc15da69f"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=168ff75417f75a83e63c8875292d44dc"
 HOMEPAGE="https://bitbucket.org/mhallin/py-scrypt/overview"
 
 FILESEXTRAPATHS_prepend := "${THISDIR}/python-scrypt:"
Signature · 1 line
2.17.1