Cherry-picks from Master Batch C
cover Cherry-picks from Master Batch C
This is my third batch of cherry picks from master branch, that I find to be appropriate to be in Kirkstone branch.
These include assorted recipe fixes (REQUIRED_DISTRO_FEATURES, LICENSE, DEPENDS...), and recipe version updates. As with previous batches, I did spend time on reviewing the changelogs and commits for the recipe updates looking for backwards incompatible changes.
This batch has so far survived a "bitbake world" build for arm, aarch64, x86 and x86-64.
Your review and comments on this batch would be very helpful.
Thank you.
---
Gyorgy Sarvari (3):
ibus: missing installed file w/ gtk2 PACKAGECONFIG
keybinder: set correct license
libdvbcsa: set correct LICENSE
Khem Raj (7):
ibus: Point python interpreter to target location
dracut: Do not undefine _FILE_OFFSET_BITS
libdc1394: upgrade 2.2.6 -> 2.2.7
libdvdcss: upgrade 1.4.2 -> 1.4.3
libdvbpsi: upgrade 1.3.0 -> 1.3.3 libmediaart-2.0: upgrade 1.9.5 -> 1.9.6
dhcp-relay: Pass cross configure flags to bind build
Mingli Yu (2):
ibus: add opengl related check
gssdp: check opengl is enabled or not
Peter Kjellerstedt (1):
autossh: Correct the license information
Peter Marko (1):
opusfile: patch CVE-2022-47021
Wang Mingyu (1):
colord-gtk: upgrade 0.3.0 -> 0.3.1
Yi Zhao (2):
grubby: fix syntax for ALTERNATIVE
dhcp-relay: upgrade 4.4.3 -> 4.4.3-P1
Zhang Xiao (1):
dhcp-relay: dev subpackage conflicts with bind-dev
alperak (2):
libupnp: upgrade 1.14.6 -> 1.14.18
opencore-amr: upgrade 0.1.3 -> 0.1.6
wangmy (1):
zenity: upgrade 3.42.0 -> 3.42.1
.../{zenity_3.42.0.bb => zenity_3.42.1.bb} | 2 +-
...olord-gtk_0.3.0.bb => colord-gtk_0.3.1.bb} | 2 +-
meta-gnome/recipes-support/ibus/ibus.bb | 7 +-
meta-gnome/recipes-support/ibus/ibus.inc | 3 +
.../keybinder/keybinder_3.0.bb | 2 +-
...stall-Do-not-undef-_FILE_OFFSET_BITS.patch | 32 +++++
.../recipes-devtools/dracut/dracut_056.bb | 1 +
.../recipes-devtools/grubby/grubby_git.bb | 2 +-
.../gupnp/gssdp_1.4.0.1.bb | 6 +-
...ead_mutexattr_gettype-pthread_mutexa.patch | 42 ------
.../{libupnp_1.14.6.bb => libupnp_1.14.18.bb} | 3 +-
...{libdc1394_2.2.6.bb => libdc1394_2.2.7.bb} | 3 +-
.../libdvbcsa/libdvbcsa_1.1.0.bb | 2 +-
...{libdvbpsi_1.3.0.bb => libdvbpsi_1.3.3.bb} | 3 +-
...ore-amr_0.1.3.bb => opencore-amr_0.1.6.bb} | 6 +-
.../opusfile/opusfile/CVE-2022-47021.patch | 44 +++++++
.../opusfile/opusfile_0.12.bb | 2 +
...{libdvdcss_1.4.2.bb => libdvdcss_1.4.3.bb} | 3 +-
...-2.0_1.9.5.bb => libmediaart-2.0_1.9.6.bb} | 2 +-
.../autossh/autossh_1.4g.bb | 5 +-
...p-relay_4.4.3.bb => dhcp-relay_4.4.3p1.bb} | 20 ++-
.../dhcp/files/CVE-2022-2928.patch | 120 ------------------
.../dhcp/files/CVE-2022-2929.patch | 40 ------
23 files changed, 120 insertions(+), 232 deletions(-)
rename meta-gnome/recipes-gnome/zenity/{zenity_3.42.0.bb => zenity_3.42.1.bb} (88%)
rename meta-gnome/recipes-support/colord-gtk/{colord-gtk_0.3.0.bb => colord-gtk_0.3.1.bb} (89%)
create mode 100644 meta-initramfs/recipes-devtools/dracut/dracut/0001-install-Do-not-undef-_FILE_OFFSET_BITS.patch
delete mode 100644 meta-multimedia/recipes-connectivity/libupnp/libupnp/0001-ithread-Use-pthread_mutexattr_gettype-pthread_mutexa.patch
rename meta-multimedia/recipes-connectivity/libupnp/{libupnp_1.14.6.bb => libupnp_1.14.18.bb} (87%)
rename meta-multimedia/recipes-multimedia/libdc1394/{libdc1394_2.2.6.bb => libdc1394_2.2.7.bb} (84%)
rename meta-multimedia/recipes-multimedia/libdvbpsi/{libdvbpsi_1.3.0.bb => libdvbpsi_1.3.3.bb} (75%)
rename meta-multimedia/recipes-multimedia/opencore-amr/{opencore-amr_0.1.3.bb => opencore-amr_0.1.6.bb} (59%)
create mode 100644 meta-multimedia/recipes-multimedia/opusfile/opusfile/CVE-2022-47021.patch
rename meta-multimedia/recipes-multimedia/vlc/{libdvdcss_1.4.2.bb => libdvdcss_1.4.3.bb} (76%)
rename meta-multimedia/recipes-support/libmediaart/{libmediaart-2.0_1.9.5.bb => libmediaart-2.0_1.9.6.bb} (90%)
rename meta-networking/recipes-connectivity/dhcp/{dhcp-relay_4.4.3.bb => dhcp-relay_4.4.3p1.bb} (78%)
delete mode 100644 meta-networking/recipes-connectivity/dhcp/files/CVE-2022-2928.patch
delete mode 100644 meta-networking/recipes-connectivity/dhcp/files/CVE-2022-2929.patchPATCH 1/21 zenity: upgrade 3.42.0 -> 3.42.1
From: wangmy <[email protected]>
Changelog:
==========
- scale: Make OK button default (allows pressing Enter to accept selected value)
- Fix maximum width of message dialogs to 60 characters, and make message dialogs non-resizable (fixes regression from 3b64d05e)
---
.../recipes-gnome/zenity/{zenity_3.42.0.bb => zenity_3.42.1.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-gnome/recipes-gnome/zenity/{zenity_3.42.0.bb => zenity_3.42.1.bb} (88%)meta-gnome/recipes-gnome/zenity/zenity_3.42.1.bb renamed from meta-gnome/recipes-gnome/zenity/zenity_3.42.0.bb +1 -1
@@ -14,7 +14,7 @@ DEPENDS = " \ REQUIRED_DISTRO_FEATURES = "x11" -SRC_URI[archive.sha256sum] = "c24c7fe6bb43163ced8adf232d583b2e013d3ba6c28deb5fcf807985e3deb5ef" +SRC_URI[archive.sha256sum] = "a08e0c8e626615ee2c23ff74628eba6f8b486875dd54371ca7e2d7605b72a87c" SRC_URI += "file://0001-Harcode-shebang-to-avoid-pointing-to-build-system-s-.patch" PACKAGECONFIG[libnotify] = "-Dlibnotify=true,-Dlibnotify=false,libnotify"
PATCH 2/21 ibus: add opengl related check
In reply to Gyorgy SarvariFrom: Mingli Yu <[email protected]>
Add opengl to REQUIRED_DISTRO_FEATURES when gtk4 is configured in PACKAGECONFIG.
Fixes:
ERROR: Nothing PROVIDES 'gtk4' (but /build/layers/meta-openembedded/meta-gnome/recipes-support/ibus/ibus.bb DEPENDS on or otherwise requires it) gtk4 was skipped: missing required distro feature 'opengl' (not in DISTRO_FEATURES)
ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'ibus', 'gtk4']
--- meta-gnome/recipes-support/ibus/ibus.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
meta-gnome/recipes-support/ibus/ibus.bb +3 -1
@@ -8,7 +8,7 @@ DEPENDS += " \ iso-codes \ " -inherit gtk-icon-cache bash-completion +inherit gtk-icon-cache bash-completion features_check # for unicode-ucd EXTRA_OECONF += "--with-ucd-dir=${STAGING_DATADIR}/unicode/ucd"
@@ -19,6 +19,8 @@ PACKAGECONFIG ??= " \ ${@bb.utils.filter('DISTRO_FEATURES', 'systemd wayland x11', d)} \ " +REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('PACKAGECONFIG', 'gtk4', 'opengl', '', d)}" + do_configure:prepend() { # run native unicode-parser sed -i 's:$(builddir)/unicode-parser:unicode-parser:g' ${S}/src/Makefile.am
PATCH 3/21 ibus: Point python interpreter to target location
In reply to Gyorgy SarvariFrom: Khem Raj <[email protected]>
it encoded PYTHON variable during build which otherwise points to python on build host which is not correct for cross compiled packages.
Add missing dependency on python3-core which is needed for ibus-setup script to run
--- meta-gnome/recipes-support/ibus/ibus.bb | 2 +- meta-gnome/recipes-support/ibus/ibus.inc | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-)
meta-gnome/recipes-support/ibus/ibus.bb +1 -1
@@ -38,4 +38,4 @@ FILES:${PN} += " \ FILES:${PN}-dev += " \ ${datadir}/gettext \ " - +RDEPENDS:${PN} += "python3-core"
meta-gnome/recipes-support/ibus/ibus.inc +3 -0
@@ -31,6 +31,9 @@ EXTRA_OECONF = " \ --disable-emoji-dict \ --disable-python2 \ " +EXTRA_OECONF:append:class-target = "\ + --with-python=${bindir}/python3 \ +" do_configure:prepend() { touch ${S}/ChangeLog
PATCH 4/21 ibus: missing installed file w/ gtk2 PACKAGECONFIG
In reply to Gyorgy SarvariIn case gtk2 PACKAGECONFIG is enabled, do_package task fails with the following error:
ERROR: ibus-1.5.26-r0 do_package: QA Issue: ibus: Files/directories were installed but not shipped in any package:
/usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so
This patch adds the missing folder to the FILES variable.
--- meta-gnome/recipes-support/ibus/ibus.bb | 1 + 1 file changed, 1 insertion(+)
meta-gnome/recipes-support/ibus/ibus.bb +1 -0
@@ -30,6 +30,7 @@ FILES:${PN} += " \ ${datadir}/dbus-1 \ ${datadir}/GConf \ ${datadir}/glib-2.0 \ + ${libdir}/gtk-2.0 \ ${libdir}/gtk-3.0 \ ${libdir}/gtk-4.0 \ ${systemd_user_unitdir} \
PATCH 5/21 keybinder: set correct license
In reply to Gyorgy SarvariThis package uses MIT license, which is very similar to X11, except that X11 license has an advertisement clause, which is missing from the MIT.
--- meta-gnome/recipes-support/keybinder/keybinder_3.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-gnome/recipes-support/keybinder/keybinder_3.0.bb +1 -1
@@ -1,6 +1,6 @@ DESCRIPTION = "keybinder is a library for registering global key bindings, for gtk-based applications." HOMEPAGE = "https://github.com/engla/keybinder" -LICENSE = "X11" +LICENSE = "MIT" SECTION = "devel/lib" DEPENDS = "gtk+3 gobject-introspection-native \ gtk+ \
PATCH 6/21 colord-gtk: upgrade 0.3.0 -> 0.3.1
In reply to Gyorgy SarvariFrom: Wang Mingyu <[email protected]>
Bugfixes:
- Fix the callback signature to fix a crash
---
.../colord-gtk/{colord-gtk_0.3.0.bb => colord-gtk_0.3.1.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-gnome/recipes-support/colord-gtk/{colord-gtk_0.3.0.bb => colord-gtk_0.3.1.bb} (89%)meta-gnome/recipes-support/colord-gtk/colord-gtk_0.3.1.bb renamed from meta-gnome/recipes-support/colord-gtk/colord-gtk_0.3.0.bb +1 -1
@@ -10,7 +10,7 @@ DEPENDS = " \ " SRC_URI = "http://www.freedesktop.org/software/colord/releases/${BPN}-${PV}.tar.xz" -SRC_URI[sha256sum] = "b9466656d66d9a6ffbc2dd04fa91c8f6af516bf9efaacb69744eec0f56f3c1d0" +SRC_URI[sha256sum] = "c176b889b75630a17f4e3d7ef24c09a3e12368e633496087459c8b53ac3a122d" PACKAGECONFIG ??= "gtk3 gtk4" PACKAGECONFIG[gtk3] = "-Dgtk3=true, -Dgtk3=false, gtk+3"
PATCH 7/21 grubby: fix syntax for ALTERNATIVE
In reply to Gyorgy SarvariFrom: Yi Zhao <[email protected]>
ALTERNATIVE_${PN} -> ALTERNATIVE:${PN}
--- meta-initramfs/recipes-devtools/grubby/grubby_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-initramfs/recipes-devtools/grubby/grubby_git.bb +1 -1
@@ -39,7 +39,7 @@ RDEPENDS:${PN} += "bash" RDEPENDS:${PN}-ptest = "util-linux-getopt bash" inherit update-alternatives -ALTERNATIVE_${PN} = "installkernel" +ALTERNATIVE:${PN} = "installkernel" ALTERNATIVE_LINK_NAME[installkernel] = "${sbindir}/installkernel" COMPATIBLE_HOST = '(x86_64.*|i.86.*)-(linux|freebsd.*)'
PATCH 8/21 dracut: Do not undefine _FILE_OFFSET_BITS
In reply to Gyorgy SarvariFrom: Khem Raj <[email protected]>
Fixes build with 64bit time_t
--- ...stall-Do-not-undef-_FILE_OFFSET_BITS.patch | 32 +++++++++++++++++++ .../recipes-devtools/dracut/dracut_056.bb | 1 + 2 files changed, 33 insertions(+) create mode 100644 meta-initramfs/recipes-devtools/dracut/dracut/0001-install-Do-not-undef-_FILE_OFFSET_BITS.patch
meta-initramfs/recipes-devtools/dracut/dracut/0001-install-Do-not-undef-_FILE_OFFSET_BITS.patch new file +32 -0
@@ -0,0 +1,32 @@ +From 7f8ef553b7c433af153d48c6a16b2943780abf67 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Sat, 31 Dec 2022 14:41:52 -0800 +Subject: [PATCH] install: Do not undef _FILE_OFFSET_BITS + +_FILE_OFFSET_BITS is a feature test macro to determine largefile +support. Usually its set to 64 on systems supporting LFS. Its also +needed to be set to 64 for supporting 64bit time_t on glibc on 32bit +systems. If its undefined explicitly, then 64bit time_t can not be +enabled. + +Upstream-Status: Submitted [https://github.com/dracutdevs/dracut/pull/2157] +Signed-off-by: Khem Raj <[email protected]> +--- + src/install/dracut-install.c | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/src/install/dracut-install.c b/src/install/dracut-install.c +index dda0caca..05a67a03 100644 +--- a/src/install/dracut-install.c ++++ b/src/install/dracut-install.c +@@ -22,7 +22,6 @@ + #ifndef _GNU_SOURCE + #define _GNU_SOURCE + #endif +-#undef _FILE_OFFSET_BITS + #include <ctype.h> + #include <errno.h> + #include <fcntl.h> +-- +2.39.0 +
meta-initramfs/recipes-devtools/dracut/dracut_056.bb +1 -0
@@ -11,6 +11,7 @@ SRCREV = "631d5f72a223288aa1f48bb8e8d0313e75947400" SRC_URI = "git://git.kernel.org/pub/scm/boot/dracut/dracut.git;protocol=http;branch=master \ file://0001-util.h-include-sys-reg.h-when-libc-glibc.patch \ file://0001-Guard-against-__GLIBC_PREREQ-for-musl-libc.patch \ + file://0001-install-Do-not-undef-_FILE_OFFSET_BITS.patch \ " DEPENDS += "kmod"
PATCH 9/21 gssdp: check opengl is enabled or not
In reply to Gyorgy SarvariFrom: Mingli Yu <[email protected]>
The sniffer PACKAGECONFIG will make gssdp depend on gtk4 as below. PACKAGECONFIG[sniffer] = "-Dsniffer=true,-Dsniffer=false,gtk4,"
But gtk4 needs the opengl DISTRO_FEATURES enabled, so also check opengl in gssdp recipe to keep consistent.
Fixes:
ERROR: Nothing PROVIDES 'gtk4' (but /build/layers/meta-openembedded/meta-multimedia/recipes-connectivity/gupnp/gssdp_1.4.0.1.bb DEPENDS on or otherwise requires it) gtk4 was skipped: missing required distro feature 'opengl' (not in DISTRO_FEATURES)
ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'gssdp', 'gtk4']
--- meta-multimedia/recipes-connectivity/gupnp/gssdp_1.4.0.1.bb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
meta-multimedia/recipes-connectivity/gupnp/gssdp_1.4.0.1.bb +4 -2
@@ -16,14 +16,16 @@ DEPENDS = " \ libsoup-2.4 \ " -inherit meson pkgconfig gobject-introspection vala gtk-doc +inherit meson pkgconfig gobject-introspection vala gtk-doc features_check SNIFFER = "${@bb.utils.contains("BBFILE_COLLECTIONS", "gnome-layer", "sniffer", "", d)}" -PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', "${SNIFFER}", "", d)}" +PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', "${SNIFFER}", "", d)}" PACKAGECONFIG[sniffer] = "-Dsniffer=true,-Dsniffer=false,gtk4," +REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('PACKAGECONFIG', 'sniffer', 'opengl', '', d)}" + PACKAGES =+ "gssdp-tools" FILES:gssdp-tools = "${bindir}/gssdp* ${datadir}/gssdp/*.glade"
PATCH 10/21 libupnp: upgrade 1.14.6 -> 1.14.18
In reply to Gyorgy SarvariFrom: alperak <[email protected]>
Changelog:
github.com/pupnp/pupnp/blob/branch-1.14.x/ChangeLog
---
...ead_mutexattr_gettype-pthread_mutexa.patch | 42 -------------------
.../{libupnp_1.14.6.bb => libupnp_1.14.18.bb} | 3 +-
2 files changed, 1 insertion(+), 44 deletions(-)
delete mode 100644 meta-multimedia/recipes-connectivity/libupnp/libupnp/0001-ithread-Use-pthread_mutexattr_gettype-pthread_mutexa.patch
rename meta-multimedia/recipes-connectivity/libupnp/{libupnp_1.14.6.bb => libupnp_1.14.18.bb} (87%)meta-multimedia/recipes-connectivity/libupnp/libupnp/0001-ithread-Use-pthread_mutexattr_gettype-pthread_mutexa.patch deleted +0 -42
@@ -1,42 +0,0 @@ -From 343a3b724225d3c87af0b268da14d3acb7a5b9a1 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Sun, 9 May 2021 15:38:43 -0700 -Subject: [PATCH] ithread: Use - pthread_mutexattr_gettype/pthread_mutexattr_settype on linux - -_np variants are not recommended anymore, and glibc 2.34+ will have -these removed - -Upstream-Status: Pending -Signed-off-by: Khem Raj <[email protected]> ---- - upnp/inc/ithread.h | 6 ++++-- - 1 file changed, 4 insertions(+), 2 deletions(-) - -diff --git a/upnp/inc/ithread.h b/upnp/inc/ithread.h -index f6800ea9..1d0f9dba 100644 ---- a/upnp/inc/ithread.h -+++ b/upnp/inc/ithread.h -@@ -304,7 +304,8 @@ static UPNP_INLINE int ithread_cleanup_thread(void) - * Returns EINVAL if the kind is not supported. - * See man page for pthread_mutexattr_setkind_np - *****************************************************************************/ --#if defined(PTHREAD_MUTEX_RECURSIVE) || defined(__DragonFly__) -+#if defined(PTHREAD_MUTEX_RECURSIVE) || defined(__DragonFly__) \ -+ || defined (__linux__) - #define ithread_mutexattr_setkind_np pthread_mutexattr_settype - #else - #define ithread_mutexattr_setkind_np pthread_mutexattr_setkind_np -@@ -329,7 +330,8 @@ static UPNP_INLINE int ithread_cleanup_thread(void) - * Always returns 0. - * See man page for pthread_mutexattr_getkind_np - *****************************************************************************/ --#if defined(PTHREAD_MUTEX_RECURSIVE) || defined(__DragonFly__) -+#if defined(PTHREAD_MUTEX_RECURSIVE) || defined(__DragonFly__) \ -+ || defined (__linux__) - #define ithread_mutexattr_getkind_np pthread_mutexattr_gettype - #else - #define ithread_mutexattr_getkind_np pthread_mutexattr_getkind_np --- -2.31.1 -
meta-multimedia/recipes-connectivity/libupnp/libupnp_1.14.18.bb renamed from meta-multimedia/recipes-connectivity/libupnp/libupnp_1.14.6.bb +1 -2
@@ -8,9 +8,8 @@ HOMEPAGE = "http://pupnp.sourceforge.net/" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://COPYING;md5=394a0f17b97f33426275571e15920434" -SRCREV = "cef2b23fb36baac091b0c7d41136b4c1d9549c6d" +SRCREV = "c540ce2431bdeac73359029d4592b45790e1d154" SRC_URI = "git://github.com/pupnp/pupnp.git;protocol=https;branch=branch-1.14.x \ - file://0001-ithread-Use-pthread_mutexattr_gettype-pthread_mutexa.patch \ " S="${WORKDIR}/git"
PATCH 11/21 libdc1394: upgrade 2.2.6 -> 2.2.7
In reply to Gyorgy SarvariFrom: Khem Raj <[email protected]>
---
.../libdc1394/{libdc1394_2.2.6.bb => libdc1394_2.2.7.bb} | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
rename meta-multimedia/recipes-multimedia/libdc1394/{libdc1394_2.2.6.bb => libdc1394_2.2.7.bb} (84%)meta-multimedia/recipes-multimedia/libdc1394/libdc1394_2.2.7.bb renamed from meta-multimedia/recipes-multimedia/libdc1394/libdc1394_2.2.6.bb +1 -2
@@ -14,8 +14,7 @@ DEPENDS += "libusb1 libraw1394 libsdl \ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.gz \ file://install_examples.patch \ " -SRC_URI[md5sum] = "9fad67bbff08fe2818d5ec81802ec89f" -SRC_URI[sha256sum] = "2b905fc9aa4eec6bdcf6a2ae5f5ba021232739f5be047dec8fe8dd6049c10fed" +SRC_URI[sha256sum] = "537ceb78dd3cef271a183f4a176191d1cecf85f025520e6bd3758b0e19e6609f" inherit autotools pkgconfig EXTRA_OECONF += "--disable-doxygen-doc --disable-examples"
PATCH 12/21 libdvbcsa: set correct LICENSE
In reply to Gyorgy Sarvari--- meta-multimedia/recipes-multimedia/libdvbcsa/libdvbcsa_1.1.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-multimedia/recipes-multimedia/libdvbcsa/libdvbcsa_1.1.0.bb +1 -1
@@ -1,6 +1,6 @@ SUMMARY = "Open implementation of the DVB Common Scrambling Algorithm, encrypt and decrypt " SECTION = "libs/multimedia" -LICENSE = "LGPL-2.1-or-later" +LICENSE = "GPL-2.0-or-later" LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" SRCREV = "bc6c0b164a87ce05e9925785cc6fb3f54c02b026"
PATCH 13/21 opencore-amr: upgrade 0.1.3 -> 0.1.6
In reply to Gyorgy SarvariFrom: alperak <[email protected]>
Changelog:
0.1.6
- Fixed an infinite loop when decoding some AMR-NB samples
- Fixed noise spikes when decoding non-voice frames for both AMR-NB and AMR-WB
0.1.5
- Fix an autotools issue with cross compiling from the 0.1.4 release
0.1.4
- Autotools cleanups
- Fixes for SID/DTX in the AMR-WB decoder, fixes for handling of bad frames in both AMR-WB and AMR-NB
---
.../{opencore-amr_0.1.3.bb => opencore-amr_0.1.6.bb} | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
rename meta-multimedia/recipes-multimedia/opencore-amr/{opencore-amr_0.1.3.bb => opencore-amr_0.1.6.bb} (59%)meta-multimedia/recipes-multimedia/opencore-amr/opencore-amr_0.1.6.bb renamed from meta-multimedia/recipes-multimedia/opencore-amr/opencore-amr_0.1.3.bb +3 -3
@@ -4,10 +4,10 @@ SECTION = "libs" LICENSE = "Apache-2.0" LICENSE_FLAGS = "commercial" -LIC_FILES_CHKSUM = "file://COPYING;md5=dd2c2486aca02190153cf399e508c7e7" +LIC_FILES_CHKSUM = "file://LICENSE;md5=dd2c2486aca02190153cf399e508c7e7" SRC_URI = "${SOURCEFORGE_MIRROR}/opencore-amr/${BP}.tar.gz" -SRC_URI[md5sum] = "09d2c5dfb43a9f6e9fec8b1ae678e725" -SRC_URI[sha256sum] = "106bf811c1f36444d7671d8fd2589f8b2e0cca58a2c764da62ffc4a070595385" +SRC_URI[md5sum] = "03de025060a4f16c4c44218f65e13e95" +SRC_URI[sha256sum] = "483eb4061088e2b34b358e47540b5d495a96cd468e361050fae615b1809dc4a1" inherit autotools
PATCH 14/21 opusfile: patch CVE-2022-47021
In reply to Gyorgy SarvariFrom: Peter Marko <[email protected]>
This patch is mentioned in [1] and [2].
[1] https://nvd.nist.gov/vuln/detail/CVE-2022-47021
[2] https://github.com/xiph/opusfile/issues/36
--- .../opusfile/opusfile/CVE-2022-47021.patch | 44 +++++++++++++++++++ .../opusfile/opusfile_0.12.bb | 2 + 2 files changed, 46 insertions(+) create mode 100644 meta-multimedia/recipes-multimedia/opusfile/opusfile/CVE-2022-47021.patch
meta-multimedia/recipes-multimedia/opusfile/opusfile/CVE-2022-47021.patch new file +44 -0
@@ -0,0 +1,44 @@ +From 0a4cd796df5b030cb866f3f4a5e41a4b92caddf5 Mon Sep 17 00:00:00 2001 +From: Ralph Giles <[email protected]> +Date: Tue, 6 Sep 2022 19:04:31 -0700 +Subject: [PATCH] Propagate allocation failure from ogg_sync_buffer. + +Instead of segfault, report OP_EFAULT if ogg_sync_buffer returns +a null pointer. This allows more graceful recovery by the caller +in the unlikely event of a fallible ogg_malloc call. + +We do check the return value elsewhere in the code, so the new +checks make the code more consistent. + +Thanks to https://github.com/xiph/opusfile/issues/36 for reporting. + +Signed-off-by: Timothy B. Terriberry <[email protected]> +Signed-off-by: Mark Harris <[email protected]> + +CVE: CVE-2022-47021 +Upstream-Status: Backport [https://github.com/xiph/opusfile/commit/0a4cd796df5b030cb866f3f4a5e41a4b92caddf5] +Signed-off-by: Peter Marko <[email protected]> +--- + src/opusfile.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/opusfile.c b/src/opusfile.c +index ca219b2..3c3c81e 100644 +--- a/src/opusfile.c ++++ b/src/opusfile.c +@@ -148,6 +148,7 @@ static int op_get_data(OggOpusFile *_of,int _nbytes){ + int nbytes; + OP_ASSERT(_nbytes>0); + buffer=(unsigned char *)ogg_sync_buffer(&_of->oy,_nbytes); ++ if(OP_UNLIKELY(buffer==NULL))return OP_EFAULT; + nbytes=(int)(*_of->callbacks.read)(_of->stream,buffer,_nbytes); + OP_ASSERT(nbytes<=_nbytes); + if(OP_LIKELY(nbytes>0))ogg_sync_wrote(&_of->oy,nbytes); +@@ -1527,6 +1528,7 @@ static int op_open1(OggOpusFile *_of, + if(_initial_bytes>0){ + char *buffer; + buffer=ogg_sync_buffer(&_of->oy,(long)_initial_bytes); ++ if(OP_UNLIKELY(buffer==NULL))return OP_EFAULT; + memcpy(buffer,_initial_data,_initial_bytes*sizeof(*buffer)); + ogg_sync_wrote(&_of->oy,(long)_initial_bytes); + }
meta-multimedia/recipes-multimedia/opusfile/opusfile_0.12.bb +2 -0
@@ -11,4 +11,6 @@ SRC_URI = "https://downloads.xiph.org/releases/opus/${BP}.tar.gz" SRC_URI[md5sum] = "45e8c62f6cd413395223c82f06bfa8ec" SRC_URI[sha256sum] = "118d8601c12dd6a44f52423e68ca9083cc9f2bfe72da7a8c1acb22a80ae3550b" +SRC_URI += "file://CVE-2022-47021.patch" + inherit autotools pkgconfig
PATCH 15/21 libdvdcss: upgrade 1.4.2 -> 1.4.3
In reply to Gyorgy SarvariFrom: Khem Raj <[email protected]>
---
.../vlc/{libdvdcss_1.4.2.bb => libdvdcss_1.4.3.bb} | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
rename meta-multimedia/recipes-multimedia/vlc/{libdvdcss_1.4.2.bb => libdvdcss_1.4.3.bb} (76%)meta-multimedia/recipes-multimedia/vlc/libdvdcss_1.4.3.bb renamed from meta-multimedia/recipes-multimedia/vlc/libdvdcss_1.4.2.bb +1 -2
@@ -9,5 +9,4 @@ inherit autotools EXTRA_OECONF = " --disable-doc " -SRC_URI[md5sum] = "7b74f2e142b13c9de6dc8d807ab912d4" -SRC_URI[sha256sum] = "78c2ed77ec9c0d8fbed7bf7d3abc82068b8864be494cfad165821377ff3f2575" +SRC_URI[sha256sum] = "233cc92f5dc01c5d3a96f5b3582be7d5cee5a35a52d3a08158745d3d86070079"
PATCH 16/21 libdvbpsi: upgrade 1.3.0 -> 1.3.3
In reply to Gyorgy SarvariFrom: Khem Raj <[email protected]>
---
.../libdvbpsi/{libdvbpsi_1.3.0.bb => libdvbpsi_1.3.3.bb} | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
rename meta-multimedia/recipes-multimedia/libdvbpsi/{libdvbpsi_1.3.0.bb => libdvbpsi_1.3.3.bb} (75%)meta-multimedia/recipes-multimedia/libdvbpsi/libdvbpsi_1.3.3.bb renamed from meta-multimedia/recipes-multimedia/libdvbpsi/libdvbpsi_1.3.0.bb +1 -2
@@ -6,7 +6,6 @@ LICENSE = "LGPL-2.1-only" LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" SRC_URI = "http://download.videolan.org/pub/libdvbpsi/${PV}/libdvbpsi-${PV}.tar.bz2" -SRC_URI[md5sum] = "2b217039a1299000c39423441f77e76a" -SRC_URI[sha256sum] = "a2fed1d11980662f919bbd1f29e2462719e0f6227e1a531310bd5a706db0a1fe" +SRC_URI[sha256sum] = "02b5998bcf289cdfbd8757bedd5987e681309b0a25b3ffe6cebae599f7a00112" inherit autotools
PATCH 17/21 libmediaart-2.0: upgrade 1.9.5 -> 1.9.6
In reply to Gyorgy SarvariFrom: Khem Raj <[email protected]>
---
.../{libmediaart-2.0_1.9.5.bb => libmediaart-2.0_1.9.6.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-multimedia/recipes-support/libmediaart/{libmediaart-2.0_1.9.5.bb => libmediaart-2.0_1.9.6.bb} (90%)meta-multimedia/recipes-support/libmediaart/libmediaart-2.0_1.9.6.bb renamed from meta-multimedia/recipes-support/libmediaart/libmediaart-2.0_1.9.5.bb +1 -1
@@ -12,7 +12,7 @@ GNOMEBASEBUILDCLASS = "meson" inherit gnomebase gobject-introspection vala features_check SRC_URI = "${GNOME_MIRROR}/libmediaart/1.9/libmediaart-${PV}.tar.xz" -SRC_URI[sha256sum] = "07def5a42c482ae71d3e1f77a4d0fdc337f74226059a65284d6d5a241f0e9cd6" +SRC_URI[sha256sum] = "c3bc5025d7db380587f9c8eb800c611f6b5a16d6b4b78fcff93f62876a677f17" S = "${WORKDIR}/libmediaart-${PV}"
PATCH 18/21 autossh: Correct the license information
In reply to Gyorgy SarvariFrom: Peter Kjellerstedt <[email protected]>
Correct "startline=" to "beginline=" in LIC_FILES_CHKSUM so that the correct lines from autossh.c and daemon.h are used. Also remove autossh.spec from LIC_FILES_CHKSUM as it doesn't really contain any license information.
--- meta-networking/recipes-connectivity/autossh/autossh_1.4g.bb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
meta-networking/recipes-connectivity/autossh/autossh_1.4g.bb +2 -3
@@ -2,9 +2,8 @@ DESCRIPTION = "autossh is a program to start a copy of ssh and monitor it, resta HOMEPAGE = "https://www.harding.motd.ca/autossh/" LICENSE = "BSD-1-Clause & BSD-4-Clause" -LIC_FILES_CHKSUM = "file://autossh.spec;md5=80a6701134723fd3420e733b46a0eb97 \ - file://autossh.c;md5=76c37acd40ac45050a4ced145b1e2707;startline=7;endline=23 \ - file://daemon.h;md5=6bbeaac616b9bc8de7b40049004f4289;startline=7;endline=39" +LIC_FILES_CHKSUM = "file://autossh.c;beginline=7;endline=22;md5=9ae0c9b04856148d77984ef58536732b \ + file://daemon.h;beginline=7;endline=36;md5=839bb7bf781ff48da4a3fec2a62a1a47" SRC_URI = "https://www.harding.motd.ca/autossh/${BP}.tgz" SRC_URI[md5sum] = "2b804bc1bf6d2f2afaa526d02df7c0a2"
PATCH 19/21 dhcp-relay: upgrade 4.4.3 -> 4.4.3-P1
In reply to Gyorgy SarvariFrom: Yi Zhao <[email protected]>
Changes since 4.4.3 (Bug Fixes)
Corrected a reference count leak that occurs when the server builds responses to leasequery packets. Thanks to VictorV of Cyber Kunlun Lab for reporting the issue.
[Gitlab #253]
CVE: CVE-2022-2928
Corrected a memory leak that occurs when unpacking a packet that has an FQDN option (81) that contains a label with length greater than 63 bytes.
Thanks to VictorV of Cyber Kunlun Lab for reporting the issue. [Gitlab #254]
CVE: CVE-2022-2929
Adapted to Kirkstone. Dropped two CVE patches, because they are included in this patch release.
---
...p-relay_4.4.3.bb => dhcp-relay_4.4.3p1.bb} | 8 +-
.../dhcp/files/CVE-2022-2928.patch | 120 ------------------
.../dhcp/files/CVE-2022-2929.patch | 40 ------
3 files changed, 3 insertions(+), 165 deletions(-)
rename meta-networking/recipes-connectivity/dhcp/{dhcp-relay_4.4.3.bb => dhcp-relay_4.4.3p1.bb} (87%)
delete mode 100644 meta-networking/recipes-connectivity/dhcp/files/CVE-2022-2928.patch
delete mode 100644 meta-networking/recipes-connectivity/dhcp/files/CVE-2022-2929.patchmeta-networking/recipes-connectivity/dhcp/dhcp-relay_4.4.3p1.bb renamed from meta-networking/recipes-connectivity/dhcp/dhcp-relay_4.4.3.bb +3 -5
@@ -10,23 +10,21 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=c463f4afde26d9eb60f14f50aeb85f8f" DEPENDS = "openssl libcap zlib" -SRC_URI = "https://downloads.isc.org/isc/dhcp/${PV}/dhcp-${PV}.tar.gz \ +SRC_URI = "https://downloads.isc.org/isc/dhcp/4.4.3-P1/dhcp-4.4.3-P1.tar.gz \ file://default-relay \ file://init-relay \ file://dhcrelay.service \ file://0001-Makefile.am-only-build-dhcrelay.patch \ file://0002-bind-Makefile.in-disable-backtrace.patch \ file://0003-bind-Makefile.in-regenerate-configure.patch \ - file://CVE-2022-2928.patch \ - file://CVE-2022-2929.patch \ " -SRC_URI[sha256sum] = "0e3ec6b4c2a05ec0148874bcd999a66d05518378d77421f607fb0bc9d0135818" +SRC_URI[sha256sum] = "0ac416bb55997ca8632174fd10737fd61cdb8dba2752160a335775bc21dc73c7" UPSTREAM_CHECK_URI = "http://ftp.isc.org/isc/dhcp/" UPSTREAM_CHECK_REGEX = "(?P<pver>\d+\.\d+\.(\d+?))/" -S = "${WORKDIR}/dhcp-${PV}" +S = "${WORKDIR}/dhcp-4.4.3-P1" inherit autotools-brokensep systemd pkgconfig
meta-networking/recipes-connectivity/dhcp/files/CVE-2022-2928.patch deleted +0 -120
120 lines not on this page · raw message
meta-networking/recipes-connectivity/dhcp/files/CVE-2022-2929.patch deleted +0 -40
@@ -1,40 +0,0 @@ -From 5436cafe1d7df409a44ff5f610248db57f0677ee Mon Sep 17 00:00:00 2001 -From: Hitendra Prajapati <[email protected]> -Date: Mon, 10 Oct 2022 09:58:04 +0530 -Subject: [PATCH 2/2] CVE-2022-2929 - -Upstream-Status: Backport [https://downloads.isc.org/isc/dhcp/4.4.3-P1/patches/] -CVE: CVE-2022-2929 -Signed-off-by: Hitendra Prajapati <[email protected]> ---- - common/options.c | 8 ++++---- - 1 file changed, 4 insertions(+), 4 deletions(-) - -diff --git a/common/options.c b/common/options.c -index f0959cb..25450e1 100644 ---- a/common/options.c -+++ b/common/options.c -@@ -454,16 +454,16 @@ int fqdn_universe_decode (struct option_state *options, - while (s < &bp -> data[0] + length + 2) { - len = *s; - if (len > 63) { -- log_info ("fancy bits in fqdn option"); -- return 0; -+ log_info ("label length exceeds 63 in fqdn option"); -+ goto bad; - } - if (len == 0) { - terminated = 1; - break; - } - if (s + len > &bp -> data [0] + length + 3) { -- log_info ("fqdn tag longer than buffer"); -- return 0; -+ log_info ("fqdn label longer than buffer"); -+ goto bad; - } - - if (first_len == 0) { --- -2.25.1 -
PATCH 20/21 dhcp-relay: dev subpackage conflicts with bind-dev
In reply to Gyorgy SarvariFrom: Zhang Xiao <[email protected]>
dhcp-relay contains a bundled bind thus their development packages conflict each other.
--- .../recipes-connectivity/dhcp/dhcp-relay_4.4.3p1.bb | 3 +++ 1 file changed, 3 insertions(+)
meta-networking/recipes-connectivity/dhcp/dhcp-relay_4.4.3p1.bb +3 -0
@@ -60,3 +60,6 @@ do_install:append () { } PARALLEL_MAKE = "" + +# dhcp-relay contains a bundled "bind", thus their dev packages conflict each other +RCONFLICTS:${PN}-dev = "bind-dev"
PATCH 21/21 dhcp-relay: Pass cross configure flags to bind build
In reply to Gyorgy SarvariFrom: Khem Raj <[email protected]>
This ensures that host tools like 'gen' are built for build host and not target. internal bind build supplies its own options to configuring it, where it does not pass --host option and as a result it does not deduce it to be a cross compile and hence these variables are not set property inside bind build
Fixes
| ./gen: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by ./gen)
--- .../recipes-connectivity/dhcp/dhcp-relay_4.4.3p1.bb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
meta-networking/recipes-connectivity/dhcp/dhcp-relay_4.4.3p1.bb +8 -1
@@ -34,7 +34,14 @@ SYSTEMD_AUTO_ENABLE:${PN} = "disable" CFLAGS += "-D_GNU_SOURCE -fcommon" LDFLAGS:append = " -pthread" -EXTRA_OECONF = "--enable-paranoia \ +BIND_EXTRA_CONFIG = "\ + --build=${BUILD_SYS} \ + --host=${HOST_SYS} \ + --target=${TARGET_SYS} \ +" + +EXTRA_OECONF = "--with-bind-extra-config="${BIND_EXTRA_CONFIG}" \ + --enable-paranoia \ --disable-static \ --enable-libtool \ --with-randomdev=/dev/random \