Skip to contentSkip to conversation

zeus -next review

PATCH New Anuj Mittal 1 participant 12 messages Dec 14, 2019 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

cover zeus -next review

Next set of changes for zeus. Please let me know if there are any comments.

Thanks,

Anuj

The following changes since commit da81542171f0cab0ea1a9bf45ac3c256e6f343f9:

YP 3.0.1 Documentation: Set up the 3.0.1 release. (2019-12-09 12:03:06 +0000)

are available in the Git repository at:

git://push.yoctoproject.org/poky-contrib anujm/zeus

Adrian Bunk (2):
glib: Whitelist CVE-2019-12450
python: Whitelist CVE-2017-17522 CVE-2017-18207 CVE-2015-5652

Mattias Hansson (1):
base.bbclass: add dependency on pseudo from do_prepare_recipe_sysroot

Niko Mauno (1):
cve-check: Switch to NVD CVE JSON feed version 1.1

Peter Kjellerstedt (6):
alsa-lib: Trim the text part used for the license file checksum
alsa-utils: Trim the text part used for the license file checksum
opkg: Trim the text part used for the license file checksum
libpng: Remove duplicate license information
Revert "libtirpc: create the symbol link for rpc header files" meson.bbclass: Prevent meson from downloading wrapped projects

Stefan Müller-Klieser (1):
recipes: change SRC_URI to use https

 meta/classes/base.bbclass                        |  1 +
 meta/classes/cve-check.bbclass                   |  2 +-
 meta/classes/meson.bbclass                       |  3 ++-
 meta/recipes-core/busybox/busybox.inc            |  2 +-
 meta/recipes-core/busybox/busybox_1.31.0.bb      |  2 +-
 meta/recipes-core/dbus/dbus-glib_0.110.bb        |  4 ++--
 meta/recipes-core/dbus/dbus_1.12.16.bb           |  4 ++--
 meta/recipes-core/glib-2.0/glib-2.0_2.60.7.bb    |  3 +++
 meta/recipes-core/meta/cve-update-db-native.bb   |  2 +-
 meta/recipes-core/udev/eudev_3.2.8.bb            |  2 +-
 meta/recipes-devtools/opkg/opkg_0.4.1.bb         |  2 +-
 meta/recipes-devtools/patchelf/patchelf_0.10.bb  |  2 +-
 meta/recipes-devtools/python/python.inc          | 10 ++++++++++
 meta/recipes-extended/libmnl/libmnl_1.0.4.bb     |  4 ++--
 meta/recipes-extended/libtirpc/libtirpc_1.1.4.bb | 16 +---------------
 .../xdg-utils/xdg-utils_1.1.3.bb                 |  2 +-
 meta/recipes-extended/xz/xz_5.2.4.bb             |  4 ++--
 .../hicolor-icon-theme_0.17.bb                   |  2 +-
 meta/recipes-kernel/powertop/powertop_2.10.bb    |  6 +++---
 meta/recipes-multimedia/alsa/alsa-lib_1.1.9.bb   |  2 +-
 meta/recipes-multimedia/alsa/alsa-utils_1.1.9.bb |  2 +-
 meta/recipes-multimedia/libpng/libpng_1.6.37.bb  |  4 +---
 meta/recipes-sato/webkit/webkitgtk_2.24.4.bb     |  6 +++---
 meta/recipes-support/db/db_5.3.28.bb             |  4 ++--
 meta/recipes-support/libbsd/libbsd_0.10.0.bb     |  4 ++--
 meta/recipes-support/libyaml/libyaml_0.2.2.bb    |  4 ++--
 meta/recipes-support/mpfr/mpfr_4.0.2.bb          |  4 ++--
 27 files changed, 51 insertions(+), 52 deletions(-)
Signature · 1 line
2.21.0
#1 lore raw

PATCH 1/11 alsa-lib: Trim the text part used for the license file checksum

From: Peter Kjellerstedt <[email protected]>

This avoids including irrelevant information when calculating the license checksum.

License-Update: Trim the text part used for the license file checksum

---
 meta/recipes-multimedia/alsa/alsa-lib_1.1.9.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-multimedia/alsa/alsa-lib_1.1.9.bb +1 -1
index 2c63ee7522..ba7e978dbe 100644
@@ -4,7 +4,7 @@ BUGTRACKER = "http://alsa-project.org/main/index.php/Bug_Tracking"
 SECTION = "libs/multimedia"
 LICENSE = "LGPLv2.1 & GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=a916467b91076e631dd8edb7424769c7 \
-                    file://src/socket.c;md5=dd1bc7f44872690224d89c1a9806e495;beginline=1;endline=26 \
+                    file://src/socket.c;md5=285675b45e83f571c6a957fe4ab79c93;beginline=9;endline=24 \
                     "
 
 SRC_URI = "https://www.alsa-project.org/files/pub/lib/${BP}.tar.bz2"
Signature · 1 line
2.21.0
#2 lore raw

PATCH 2/11 alsa-utils: Trim the text part used for the license file checksum

In reply to Anuj Mittal

From: Peter Kjellerstedt <[email protected]>

This avoids including irrelevant information when calculating the license checksum.

License-Update: Trim the text part used for the license file checksum

---
 meta/recipes-multimedia/alsa/alsa-utils_1.1.9.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-multimedia/alsa/alsa-utils_1.1.9.bb +1 -1
index 03b5c8de30..c443d3594d 100644
@@ -4,7 +4,7 @@ BUGTRACKER = "http://alsa-project.org/main/index.php/Bug_Tracking"
 SECTION = "console/utils"
 LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
-                    file://alsactl/utils.c;beginline=1;endline=20;md5=2ce7f7b6739487fb72c689d46521f958"
+                    file://alsactl/utils.c;beginline=3;endline=18;md5=96cc06a4cebe5eb7975688ffb0e65642"
 DEPENDS = "alsa-lib ncurses libsamplerate0"
 
 PACKAGECONFIG ??= "udev"
Signature · 1 line
2.21.0
#3 lore raw

PATCH 3/11 opkg: Trim the text part used for the license file checksum

In reply to Anuj Mittal

From: Peter Kjellerstedt <[email protected]>

This avoids including irrelevant information when calculating the license checksum.

License-Update: Trim the text part used for the license file checksum

---
 meta/recipes-devtools/opkg/opkg_0.4.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/opkg/opkg_0.4.1.bb +1 -1
index 1cd7dcadb3..f6f0922b6a 100644
@@ -5,7 +5,7 @@ HOMEPAGE = "http://code.google.com/p/opkg/"
 BUGTRACKER = "http://code.google.com/p/opkg/issues/list"
 LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
-                    file://src/opkg.c;beginline=2;endline=21;md5=90435a519c6ea69ef22e4a88bcc52fa0"
+                    file://src/opkg.c;beginline=4;endline=18;md5=9f5a1ad5395378a807d6d591e2f92d25"
 
 DEPENDS = "libarchive"
 
Signature · 1 line
2.21.0
#4 lore raw

PATCH 4/11 libpng: Remove duplicate license information

In reply to Anuj Mittal

From: Peter Kjellerstedt <[email protected]>

The LICENSE file contains all the license information so there is no need to also include it from the png.h file (and additionally some lines were left out from the latter).

License-Update: Remove duplicate license information

---
 meta/recipes-multimedia/libpng/libpng_1.6.37.bb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
meta/recipes-multimedia/libpng/libpng_1.6.37.bb +1 -3
index 2ed87a8437..78f3248d73 100644
@@ -2,9 +2,7 @@ SUMMARY = "PNG image format decoding library"
 HOMEPAGE = "http://www.libpng.org/"
 SECTION = "libs"
 LICENSE = "Libpng"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=b0085051bf265bac2bfc38bc89f50000\
-                    file://png.h;endline=144;md5=8acd23d544623816b097e07be0139509\
-                    "
+LIC_FILES_CHKSUM = "file://LICENSE;md5=b0085051bf265bac2bfc38bc89f50000"
 DEPENDS = "zlib"
 
 LIBV = "16"
Signature · 1 line
2.21.0
#5 lore raw

PATCH 5/11 base.bbclass: add dependency on pseudo from do_prepare_recipe_sysroot

In reply to Anuj Mittal

From: Mattias Hansson <[email protected]>

do_prepare_recipe_sysroot may perform groupadd, which requires pseudo. However, do_prepare_recipe_sysroot does not depend on pseudo explicitly, which sometimes causes a build error when building a recipe that adds groups.

This issue only occurs when executing do_prepare_recipe_sysroot for a recipe that adds groups before finishing a task that depends on pseudo for a recipe that doesn't add groups.

---
 meta/classes/base.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/base.bbclass +1 -0
index d3184ecf7b..1cea3a2213 100644
@@ -482,6 +482,7 @@ python () {
     # If we're building a target package we need to use fakeroot (pseudo)
     # in order to capture permissions, owners, groups and special files
     if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d):
+        d.appendVarFlag('do_prepare_recipe_sysroot', 'depends', ' virtual/fakeroot-native:do_populate_sysroot')
         d.setVarFlag('do_unpack', 'umask', '022')
         d.setVarFlag('do_configure', 'umask', '022')
         d.setVarFlag('do_compile', 'umask', '022')
Signature · 1 line
2.21.0
#6 lore raw

PATCH 6/11 Revert "libtirpc: create the symbol link for rpc header files"

In reply to Anuj Mittal

From: Peter Kjellerstedt <[email protected]>

This reverts commit 0b9748c655b6f733b504e70288f4b91dca2e4d58.

The headers provided by libtirpc are not drop in replacements for the RPC header files previously provided by glibc, so do not install them as if they were. Additionally, they clash with the header files installed by glibc if an older version of glibc is used.

Any problems related to the lack of the old header files from glibc should be addressed in the application/library that expects them.

---
 meta/recipes-extended/libtirpc/libtirpc_1.1.4.bb | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)
meta/recipes-extended/libtirpc/libtirpc_1.1.4.bb +1 -15
index 8977a37cf0..692f0d9f9c 100644
@@ -22,21 +22,7 @@ inherit autotools pkgconfig
 EXTRA_OECONF = "--disable-gssapi"
 
 do_install_append() {
-        chown root:root ${D}${sysconfdir}/netconfig
-        install -d ${D}${includedir}/rpc
-        install -d ${D}${includedir}/rpcsvc
-        for link_header in ${D}${includedir}/tirpc/rpc/*; do
-            if [ -f $link_header -a ! -e ${D}/${includedir}/rpc/$(basename $link_header) ]; then
-                ln -sf ../tirpc/rpc/$(basename $link_header) ${D}${includedir}/rpc/$(basename $link_header)
-            fi
-        done
-        for link_header in ${D}${includedir}/tirpc/rpcsvc/*; do
-            if [ -f $link_header -a ! -e ${D}/${includedir}/rpcsvc/$(basename $link_header) ]; then
-                ln -sf ../tirpc/rpc/$(basename $link_header) ${D}${includedir}/rpcsvc/$(basename $link_header)
-            fi
-        done
-        ln -sf  tirpc/netconfig.h ${D}/${includedir}/netconfig.h
-
+	chown root:root ${D}${sysconfdir}/netconfig
 }
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.21.0
#7 lore raw

PATCH 7/11 glib: Whitelist CVE-2019-12450

In reply to Anuj Mittal

From: Adrian Bunk <[email protected]>

Fixed in 2.60.4, but CPE data is outdated.

---
 meta/recipes-core/glib-2.0/glib-2.0_2.60.7.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-core/glib-2.0/glib-2.0_2.60.7.bb +3 -0
index 740473719d..5aefa6ad8b 100644
@@ -23,3 +23,6 @@ SRC_URI_append_class-target = " file://glib-meson.cross"
 
 SRC_URI[md5sum] = "f036f78a7fca330d9f7d939fcf794bde"
 SRC_URI[sha256sum] = "8b12c0af569afd3b71200556ad751bad4cf4bf7bc4b5f880638459a42ca86310"
+
+# Fixed in 2.60.4, but CPE data is outdated
+CVE_CHECK_WHITELIST += "CVE-2019-12450"
Signature · 1 line
2.21.0
#8 lore raw

PATCH 8/11 meson.bbclass: Prevent meson from downloading wrapped projects

In reply to Anuj Mittal

From: Peter Kjellerstedt <[email protected]>

Meson has support for downloading subprojects using something called wraps. This interferes with bitbake's expectations of all downloads being done by the fetch task. To avoid this, tell meson to not download any wraps.

(From OE-Core rev: b547637ad84bad8f7fe27193bf636541f8588ae8)

---
 meta/classes/meson.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/classes/meson.bbclass +2 -1
index efa6234078..dc8c28963c 100644
@@ -24,7 +24,8 @@ MESONOPTS = " --prefix ${prefix} \
               --infodir ${@noprefix('infodir', d)} \
               --sysconfdir ${sysconfdir} \
               --localstatedir ${localstatedir} \
-              --sharedstatedir ${sharedstatedir} "
+              --sharedstatedir ${sharedstatedir} \
+              --wrap-mode nodownload"
 
 EXTRA_OEMESON_append = " ${PACKAGECONFIG_CONFARGS}"
 
Signature · 1 line
2.21.0
#9 lore raw

PATCH 9/11 python: Whitelist CVE-2017-17522 CVE-2017-18207 CVE-2015-5652

In reply to Anuj Mittal

From: Adrian Bunk <[email protected]>

One Windows-only CVE that cannot be fixed, and two CVEs where upstream agreement is that they are not vulnerabilities.

(From OE-Core rev: 56d5b181f3b119f2bbd310dedd6d3b26e76f5944)

---
 meta/recipes-devtools/python/python.inc | 10 ++++++++++
 1 file changed, 10 insertions(+)
meta/recipes-devtools/python/python.inc +10 -0
index a630c26e89..110ec315d9 100644
@@ -19,6 +19,16 @@ UPSTREAM_CHECK_REGEX = "[Pp]ython-(?P<pver>2(\.\d+)+).tar"
 
 CVE_PRODUCT = "python"
 
+# Upstream agreement is that these are not security issues:
+# https://bugs.python.org/issue32367
+CVE_CHECK_WHITELIST += "CVE-2017-17522"
+# https://bugs.python.org/issue32056
+CVE_CHECK_WHITELIST += "CVE-2017-18207"
+
+# Windows-only, "It was determined that this is a longtime behavior
+# of Python that cannot really be altered at this point."
+CVE_CHECK_WHITELIST += "CVE-2015-5652"
+
 PYTHON_MAJMIN = "2.7"
 
 inherit autotools pkgconfig
Signature · 1 line
2.21.0
#10 lore raw

PATCH 10/11 recipes: change SRC_URI to use https

In reply to Anuj Mittal

From: Stefan Müller-Klieser <[email protected]>

Change all recipes to https where we get an http 301 permanent redirect.

(From OE-Core rev: e514acda9e12bccde6d3974e0fd1a37b3837191a)

---
 meta/recipes-core/busybox/busybox.inc                       | 2 +-
 meta/recipes-core/busybox/busybox_1.31.0.bb                 | 2 +-
 meta/recipes-core/dbus/dbus-glib_0.110.bb                   | 4 ++--
 meta/recipes-core/dbus/dbus_1.12.16.bb                      | 4 ++--
 meta/recipes-core/udev/eudev_3.2.8.bb                       | 2 +-
 meta/recipes-devtools/patchelf/patchelf_0.10.bb             | 2 +-
 meta/recipes-extended/libmnl/libmnl_1.0.4.bb                | 4 ++--
 meta/recipes-extended/xdg-utils/xdg-utils_1.1.3.bb          | 2 +-
 meta/recipes-extended/xz/xz_5.2.4.bb                        | 4 ++--
 .../hicolor-icon-theme/hicolor-icon-theme_0.17.bb           | 2 +-
 meta/recipes-kernel/powertop/powertop_2.10.bb               | 6 +++---
 meta/recipes-sato/webkit/webkitgtk_2.24.4.bb                | 6 +++---
 meta/recipes-support/db/db_5.3.28.bb                        | 4 ++--
 meta/recipes-support/libbsd/libbsd_0.10.0.bb                | 4 ++--
 meta/recipes-support/libyaml/libyaml_0.2.2.bb               | 4 ++--
 meta/recipes-support/mpfr/mpfr_4.0.2.bb                     | 4 ++--
 16 files changed, 28 insertions(+), 28 deletions(-)
meta/recipes-core/busybox/busybox.inc +1 -1
index d08fa8d3d9..bf6ddae7d1 100644
@@ -1,6 +1,6 @@
 SUMMARY = "Tiny versions of many common UNIX utilities in a single small executable"
 DESCRIPTION = "BusyBox combines tiny versions of many common UNIX utilities into a single small executable. It provides minimalist replacements for most of the utilities you usually find in GNU fileutils, shellutils, etc. The utilities in BusyBox generally have fewer options than their full-featured GNU cousins; however, the options that are included provide the expected functionality and behave very much like their GNU counterparts. BusyBox provides a fairly complete POSIX environment for any small or embedded system."
-HOMEPAGE = "http://www.busybox.net"
+HOMEPAGE = "https://www.busybox.net"
 BUGTRACKER = "https://bugs.busybox.net/"
 
 DEPENDS += "kern-tools-native virtual/crypt"
meta/recipes-core/busybox/busybox_1.31.0.bb +1 -1
index 34b1f2cc91..5dd8d448da 100644
@@ -1,6 +1,6 @@
 require busybox.inc
 
-SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
+SRC_URI = "https://busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
            file://busybox-udhcpc-no_deconfig.patch \
            file://find-touchscreen.sh \
            file://busybox-cron \
meta/recipes-core/dbus/dbus-glib_0.110.bb +2 -2
index 9afbc2b6a1..0b45805cf4 100644
@@ -1,7 +1,7 @@
 SUMMARY = "High level language (GLib) binding for D-Bus"
 DESCRIPTION = "GLib bindings for the D-Bus message bus that integrate \
 the D-Bus library with the GLib thread abstraction and main loop."
-HOMEPAGE = "http://www.freedesktop.org/Software/dbus"
+HOMEPAGE = "https://www.freedesktop.org/Software/dbus"
 LICENSE = "AFL-2.1 | GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=cf5b3a2f7083750d504333114e738656 \
                     file://dbus/dbus-glib.h;beginline=7;endline=21;md5=7755c9d7abccd5dbd25a6a974538bb3c"
@@ -10,7 +10,7 @@ SECTION = "base"
 DEPENDS = "expat glib-2.0 virtual/libintl dbus-glib-native dbus"
 DEPENDS_class-native = "glib-2.0-native dbus-native"
 
-SRC_URI = "http://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-${PV}.tar.gz \
+SRC_URI = "https://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-${PV}.tar.gz \
            file://no-examples.patch \
            file://test-install-makefile.patch \
 "
meta/recipes-core/dbus/dbus_1.12.16.bb +2 -2
index 05716608b0..cfdbec09d0 100644
@@ -1,6 +1,6 @@
 SUMMARY = "D-Bus message bus"
 DESCRIPTION = "D-Bus is a message bus system, a simple way for applications to talk to one another. In addition to interprocess communication, D-Bus helps coordinate process lifecycle; it makes it simple and reliable to code a \"single instance\" application or daemon, and to launch applications and daemons on demand when their services are needed."
-HOMEPAGE = "http://dbus.freedesktop.org"
+HOMEPAGE = "https://dbus.freedesktop.org"
 SECTION = "base"
 LICENSE = "AFL-2.1 | GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=10dded3b58148f3f1fd804b26354af3e \
@@ -12,7 +12,7 @@ PACKAGES += "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '${PN}-ptest', '',
 ALLOW_EMPTY_dbus-ptest = "1"
 RDEPENDS_dbus-ptest_class-target = "dbus-test-ptest"
 
-SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \
+SRC_URI = "https://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \
            file://tmpdir.patch \
            file://dbus-1.init \
            file://clear-guid_from_server-if-send_negotiate_unix_f.patch \
meta/recipes-core/udev/eudev_3.2.8.bb +1 -1
index eecf64e550..aed411827c 100644
@@ -8,7 +8,7 @@ DEPENDS = "glib-2.0 glib-2.0-native gperf-native kmod libxslt-native util-linux"
 
 PROVIDES = "udev"
 
-SRC_URI = "http://dev.gentoo.org/~blueness/${BPN}/${BP}.tar.gz \
+SRC_URI = "https://dev.gentoo.org/~blueness/${BPN}/${BP}.tar.gz \
            file://0014-Revert-rules-remove-firmware-loading-rules.patch \
            file://Revert-udev-remove-userspace-firmware-loading-suppor.patch \
            file://devfs-udev.rules \
meta/recipes-devtools/patchelf/patchelf_0.10.bb +1 -1
index 580108e8b8..cc983e033a 100644
@@ -1,4 +1,4 @@
-SRC_URI = "http://nixos.org/releases/${BPN}/${BPN}-${PV}/${BPN}-${PV}.tar.bz2 \
+SRC_URI = "https://nixos.org/releases/${BPN}/${BPN}-${PV}/${BPN}-${PV}.tar.bz2 \
            file://handle-read-only-files.patch \
            file://fix-adjusting-startPage.patch \
            "
meta/recipes-extended/libmnl/libmnl_1.0.4.bb +2 -2
index 23262e8c6f..b55bb311f6 100644
@@ -1,12 +1,12 @@
 SUMMARY = "Minimalistic user-space Netlink utility library"
 DESCRIPTION = "Minimalistic user-space library oriented to Netlink developers, providing \
     functions for common tasks in parsing, validating, and constructing both the Netlink header and TLVs."
-HOMEPAGE = "http://www.netfilter.org/projects/libmnl/index.html"
+HOMEPAGE = "https://www.netfilter.org/projects/libmnl/index.html"
 SECTION = "libs"
 LICENSE = "LGPLv2.1+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
 
-SRC_URI = "http://www.netfilter.org/projects/libmnl/files/libmnl-${PV}.tar.bz2;name=tar"
+SRC_URI = "https://netfilter.org/projects/libmnl/files/libmnl-${PV}.tar.bz2;name=tar"
 SRC_URI[tar.md5sum] = "be9b4b5328c6da1bda565ac5dffadb2d"
 SRC_URI[tar.sha256sum] = "171f89699f286a5854b72b91d06e8f8e3683064c5901fb09d954a9ab6f551f81"
 
meta/recipes-extended/xdg-utils/xdg-utils_1.1.3.bb +1 -1
index 8e46638197..37834baeda 100644
@@ -17,7 +17,7 @@ xdg-terminal \
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=a5367a90934098d6b05af3b746405014"
 
-SRC_URI = "http://portland.freedesktop.org/download/${BPN}-${PV}.tar.gz \
+SRC_URI = "https://portland.freedesktop.org/download/${BPN}-${PV}.tar.gz \
            file://0001-Reinstate-xdg-terminal.patch \
            file://0001-Don-t-build-the-in-script-manual.patch \
           "
meta/recipes-extended/xz/xz_5.2.4.bb +2 -2
index 791746e1cf..83e8fe0cd1 100644
@@ -1,5 +1,5 @@
 SUMMARY = "Utilities for managing LZMA compressed files"
-HOMEPAGE = "http://tukaani.org/xz/"
+HOMEPAGE = "https://tukaani.org/xz/"
 SECTION = "base"
 
 # The source includes bits of PD, GPLv2, GPLv3, LGPLv2.1+, but the only file
@@ -22,7 +22,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=97d554a32881fee0aa283d96e47cb24a \
                     file://lib/getopt.c;endline=23;md5=2069b0ee710572c03bb3114e4532cd84 \
                     "
 
-SRC_URI = "http://tukaani.org/xz/xz-${PV}.tar.gz"
+SRC_URI = "https://tukaani.org/xz/xz-${PV}.tar.gz"
 SRC_URI[md5sum] = "5ace3264bdd00c65eeec2891346f65e6"
 SRC_URI[sha256sum] = "b512f3b726d3b37b6dc4c8570e137b9311e7552e8ccbab4d39d47ce5f4177145"
 UPSTREAM_CHECK_REGEX = "xz-(?P<pver>\d+(\.\d+)+)\.tar"
meta/recipes-gnome/hicolor-icon-theme/hicolor-icon-theme_0.17.bb +1 -1
index fb8033448d..6872069241 100644
@@ -5,7 +5,7 @@ BUGTRACKER = "https://bugs.freedesktop.org/"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=f08a446809913fc9b3c718f0eaea0426"
 
-SRC_URI = "http://icon-theme.freedesktop.org/releases/${BPN}-${PV}.tar.xz"
+SRC_URI = "https://icon-theme.freedesktop.org/releases/${BPN}-${PV}.tar.xz"
 SRC_URI[md5sum] = "84eec8d6f810240a069c731f1870b474"
 SRC_URI[sha256sum] = "317484352271d18cbbcfac3868eab798d67fff1b8402e740baa6ff41d588a9d8"
 
meta/recipes-kernel/powertop/powertop_2.10.bb +3 -3
index 5be8d23111..7b7b3929b3 100644
@@ -1,12 +1,12 @@
 SUMMARY = "Power usage tool"
 DESCRIPTION = "Linux tool to diagnose issues with power consumption and power management."
-HOMEPAGE = "http://01.org/powertop/"
-BUGTRACKER = "http://bugzilla.lesswatts.org/"
+HOMEPAGE = "https://01.org/powertop/"
+BUGTRACKER = "https://app.devzing.com/powertopbugs/bugzilla"
 DEPENDS = "ncurses libnl pciutils"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"
 
-SRC_URI = "http://01.org/sites/default/files/downloads/powertop-v${PV}.tar.gz \
+SRC_URI = "https://01.org/sites/default/files/downloads/powertop-v${PV}.tar.gz \
     file://0001-wakeup_xxx.h-include-limits.h.patch \
 "
 
meta/recipes-sato/webkit/webkitgtk_2.24.4.bb +3 -3
index 8c695ce9e7..c090782411 100644
@@ -1,6 +1,6 @@
 SUMMARY = "WebKit web rendering engine for the GTK+ platform"
-HOMEPAGE = "http://www.webkitgtk.org/"
-BUGTRACKER = "http://bugs.webkit.org/"
+HOMEPAGE = "https://www.webkitgtk.org/"
+BUGTRACKER = "https://bugs.webkit.org/"
 
 LICENSE = "BSD & LGPLv2+"
 LIC_FILES_CHKSUM = "file://Source/JavaScriptCore/COPYING.LIB;md5=d0c6d6397a5d84286dda758da57bd691 \
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://Source/JavaScriptCore/COPYING.LIB;md5=d0c6d6397a5d842
 		    file://Source/WebCore/LICENSE-LGPL-2.1;md5=a778a33ef338abbaf8b8a7c36b6eec80 \
 		   "
 
-SRC_URI = "http://www.webkitgtk.org/releases/${BPN}-${PV}.tar.xz \
+SRC_URI = "https://www.webkitgtk.org/releases/${BPN}-${PV}.tar.xz \
            file://0001-FindGObjectIntrospection.cmake-prefix-variables-obta.patch \
            file://0001-When-building-introspection-files-add-CMAKE_C_FLAGS-.patch \
            file://0001-OptionsGTK.cmake-drop-the-hardcoded-introspection-gt.patch \
meta/recipes-support/db/db_5.3.28.bb +2 -2
index 761d80c2fd..a2969055a6 100644
@@ -10,7 +10,7 @@
 # same system at the same time if really necessary.
 SECTION = "libs"
 SUMMARY = "Berkeley Database v5"
-HOMEPAGE = "http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/overview/index.html"
+HOMEPAGE = "https://www.oracle.com/database/technologies/related/berkeleydb.html"
 LICENSE = "Sleepycat"
 RCONFLICTS_${PN} = "db3"
 
@@ -20,7 +20,7 @@ CVE_VERSION = "11.2.${PV}"
 PR = "r1"
 PE = "1"
 
-SRC_URI = "http://download.oracle.com/berkeley-db/db-${PV}.tar.gz"
+SRC_URI = "https://download.oracle.com/berkeley-db/db-${PV}.tar.gz"
 SRC_URI += "file://fix-parallel-build.patch \
             file://0001-atomic-Rename-local-__atomic_compare_exchange-to-avo.patch \
             file://0001-configure-Add-explicit-tag-options-to-libtool-invoca.patch \
meta/recipes-support/libbsd/libbsd_0.10.0.bb +2 -2
index eaf244a3b7..3b9ac5a01f 100644
@@ -7,7 +7,7 @@ DESCRIPTION = "This library provides useful functions commonly found on BSD syst
                projects with strong BSD origins, without needing to embed the same \
                code over and over again on each project."
 
-HOMEPAGE = "http://libbsd.freedesktop.org/wiki/"
+HOMEPAGE = "https://libbsd.freedesktop.org/wiki/"
 # There seems to be more licenses used in the code, I don't think we want to list them all here, complete list:
 # OE @ ~/projects/libbsd $ grep ^License: COPYING  | sort -u
 # License: BSD-2-clause
@@ -31,7 +31,7 @@ LICENSE = "BSD-4-Clause & ISC & PD"
 LIC_FILES_CHKSUM = "file://COPYING;md5=2120be0173469a06ed185b688e0e1ae0"
 SECTION = "libs"
 
-SRC_URI = "http://libbsd.freedesktop.org/releases/${BPN}-${PV}.tar.xz"
+SRC_URI = "https://libbsd.freedesktop.org/releases/${BPN}-${PV}.tar.xz"
 
 SRC_URI[md5sum] = "ead96d240d02faa5b921c0aa50c812b5"
 SRC_URI[sha256sum] = "34b8adc726883d0e85b3118fa13605e179a62b31ba51f676136ecb2d0bc1a887"
meta/recipes-support/libyaml/libyaml_0.2.2.bb +2 -2
index fbd199205f..5105ce69db 100644
@@ -1,13 +1,13 @@
 SUMMARY = "LibYAML is a YAML 1.1 parser and emitter written in C."
 DESCRIPTION = "LibYAML is a C library for parsing and emitting data in YAML 1.1, \
 a human-readable data serialization format. "
-HOMEPAGE = "http://pyyaml.org/wiki/LibYAML"
+HOMEPAGE = "https://pyyaml.org/wiki/LibYAML"
 SECTION = "libs/devel"
 
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=a76b4c69bfcf82313bbdc0393b04438a"
 
-SRC_URI = "http://pyyaml.org/download/libyaml/yaml-${PV}.tar.gz"
+SRC_URI = "https://pyyaml.org/download/libyaml/yaml-${PV}.tar.gz"
 SRC_URI[md5sum] = "54bf11ccb8bc488b5b3bec931f5b70dc"
 SRC_URI[sha256sum] = "4a9100ab61047fd9bd395bcef3ce5403365cafd55c1e0d0299cde14958e47be9"
 
meta/recipes-support/mpfr/mpfr_4.0.2.bb +2 -2
index 03059174ee..00c2dc2fe9 100644
@@ -1,5 +1,5 @@
 SUMMARY = "C library for multiple-precision floating-point computations with exact rounding"
-HOMEPAGE = "http://www.mpfr.org/"
+HOMEPAGE = "https://www.mpfr.org/"
 LICENSE = "LGPLv3+"
 SECTION = "devel"
 
@@ -10,7 +10,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464 \
                     "
 DEPENDS = "gmp autoconf-archive"
 
-SRC_URI = "http://www.mpfr.org/mpfr-${PV}/mpfr-${PV}.tar.xz"
+SRC_URI = "https://www.mpfr.org/mpfr-${PV}/mpfr-${PV}.tar.xz"
 SRC_URI[md5sum] = "320fbc4463d4c8cb1e566929d8adc4f8"
 SRC_URI[sha256sum] = "1d3be708604eae0e42d578ba93b390c2a145f17743a744d8f3f8c2ad5855a38a"
 
Signature · 1 line
2.21.0
#11 lore raw

PATCH 11/11 cve-check: Switch to NVD CVE JSON feed version 1.1

In reply to Anuj Mittal

From: Niko Mauno <[email protected]>

Switch to recently released version 1.1 of NVD CVE JSON feed, as in
https://nvd.nist.gov/General/News/JSON-1-1-Vulnerability-Feed-Release
it is mentioned that

Due to changes required to support CVSS v3.1 scoring, the JSON vulnerability feeds must be modified. This will require the consumers of this data to update their internal processes. We will be providing the JSON 1.1 schema on the data feeds page and the information below to prepare for this transition.
...
The JSON 1.1 data feeds will be available on September 9th, 2019. At that time the current JSON 1.0 data feeds will no longer available.

This change was tested briefly by issuing 'bitbake core-image-minimal' with 'cve-check.bbclass' inherited via local.conf, and then comparing the content between the resulting two 'DEPLOY_DIR_IMAGE/core-image-minimal-qemux86.cve' files, which did not seem to contain any other change, except total of 167 entries like

CVSS v3 BASE SCORE: 0.0

were replaced with similar 'CVSS v3 BASE SCORE:' entries which had scores that were greater than '0.0' (up to '9.8').

(From OE-Core rev: cc20e4d8ff2f3aa52a2658404af9a0ff358cc323)

---
 meta/classes/cve-check.bbclass                 | 2 +-
 meta/recipes-core/meta/cve-update-db-native.bb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta/classes/cve-check.bbclass +1 -1
index 19ed5548b3..01b3637469 100644
@@ -26,7 +26,7 @@ CVE_PRODUCT ??= "${BPN}"
 CVE_VERSION ??= "${PV}"
 
 CVE_CHECK_DB_DIR ?= "${DL_DIR}/CVE_CHECK"
-CVE_CHECK_DB_FILE ?= "${CVE_CHECK_DB_DIR}/nvdcve_1.0.db"
+CVE_CHECK_DB_FILE ?= "${CVE_CHECK_DB_DIR}/nvdcve_1.1.db"
 
 CVE_CHECK_LOG ?= "${T}/cve.log"
 CVE_CHECK_TMP_FILE ?= "${TMPDIR}/cve_check"
meta/recipes-core/meta/cve-update-db-native.bb +1 -1
index db1d69a28e..575254af40 100644
@@ -27,7 +27,7 @@ python do_populate_cve_db() {
 
     bb.utils.export_proxies(d)
 
-    BASE_URL = "https://nvd.nist.gov/feeds/json/cve/1.0/nvdcve-1.0-"
+    BASE_URL = "https://nvd.nist.gov/feeds/json/cve/1.1/nvdcve-1.1-"
     YEAR_START = 2002
 
     db_file = d.getVar("CVE_CHECK_DB_FILE")
Signature · 1 line
2.21.0