From e9773cb876a66b0e2ca7a271689383815cb4479a73559d612ae65663dda403bf Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Fri, 19 Feb 2021 21:31:07 +0000 Subject: [PATCH] Accepting request 873415 from home:polslinux:branches:Base:System - Update to 1.5.6: New features: * Add SBAT metadata to the fwupd EFI binary * Add support for GD32VF103 as found in the Longan Nano * Add support for RMI PS2 devices * Add support for the System76 Keyboard * Allow downloading firmware from IPFS * Install the UX data into a single .tar.xz file * Add a plugin to update PixArt RF devices * Add new hardware to use the elantp and rts54hid plugins * Allow specifying more than one VendorID for a device * Detect the AMD TSME encryption state for HSI-4 * Detect the AMI PK test key is not installed for HSI-1 * Add Maple Ridge Thunderbolt firmware parsing support * Add --no-remote-check to ignore checking for download remotes * Allow creating FMAP and Synaptics firmware using builder.xml Fixes: * Add support for the Starlabs LabTop L4 * Allow using an external ESP again * Ask the user to reboot when required if downgrading * Be more paranoid when parsing ASCII buffers and devices * Check if the fwupd BootXXXX entry exists on failure * Clear the pending flag if restarting the system * Do not allow flashing using flashrom if BLE is enabled * Do not allow Lenovo hardware to install multiple capsules * Do not parse the OptionROM image * Do not show Unknown [***] for every client connection * Fix dnload wBlockNum wraparound for ST devices * Fix OOM when using large ArchiveSizeMax values * Fix several crashes spotted by AddressSanitizer * Fix several places where the Goodix MOC plugin could crash * Include the PCR0 to the report metadata * Report the lockdown status from UEFI and SuperIO plugins * Show a console warning if the system clock is not set * Fix flashing a fingerprint reader that is in use * Fix several critical warnings when parsing invalid firmware * Fix updating DFU devices that use DNLOAD_BUSY * Ignore the legacy UEFI OVMF dummy GUID * Make libfwupd more thread safe to fix a crash in gnome-software * Never show unprintable chars from invalid firmware in the logs * Allow using fwupdtool as non-root for firmware commands * Do not trust the Block.HintSystem boolean for ESP filtering * Fix a memory leak when parsing Synaptics firmware * Fix a possible crash when reading the Goodix MOC USB request * Fix crashes when parsing invalid FMAP, DMC, Solokey and Synaptics images - Deprecate fwupd-bsc1179790-disable-hintsystem.patch OBS-URL: https://build.opensuse.org/request/show/873415 OBS-URL: https://build.opensuse.org/package/show/Base:System/fwupd?expand=0&rev=97 --- _service | 2 +- _servicedata | 2 +- fwupd-1.5.3.tar.xz | 3 -- fwupd-1.5.6.tar.xz | 3 ++ fwupd-bsc1130056-change-shim-path.patch | 4 +- fwupd-bsc1179790-disable-hintsystem.patch | 21 -------- ...d-jscSLE-11766-close-efidir-leap-gap.patch | 6 +-- fwupd.changes | 50 +++++++++++++++++++ fwupd.spec | 12 ++--- 9 files changed, 65 insertions(+), 38 deletions(-) delete mode 100644 fwupd-1.5.3.tar.xz create mode 100644 fwupd-1.5.6.tar.xz delete mode 100644 fwupd-bsc1179790-disable-hintsystem.patch diff --git a/_service b/_service index 4e0b744..5444d52 100644 --- a/_service +++ b/_service @@ -4,7 +4,7 @@ git @PARENT_TAG@ enable - 1.5.3 + 1.5.6 *.tar diff --git a/_servicedata b/_servicedata index 9ad9e82..1172cde 100644 --- a/_servicedata +++ b/_servicedata @@ -1,4 +1,4 @@ https://github.com/hughsie/fwupd.git - e300ca513f812a053e7e262cc5d48150c152bd82 \ No newline at end of file + 260a24449d40c3a94891eac146c5b3ed54bb7345 diff --git a/fwupd-1.5.3.tar.xz b/fwupd-1.5.3.tar.xz deleted file mode 100644 index c691a04..0000000 --- a/fwupd-1.5.3.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9ff47861b8505dd27c4db8f77bdf2f4e99d93880b68d646a7f5c6e4bbf71a911 -size 1729384 diff --git a/fwupd-1.5.6.tar.xz b/fwupd-1.5.6.tar.xz new file mode 100644 index 0000000..d52121c --- /dev/null +++ b/fwupd-1.5.6.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:62a861368bfba81d13ce34f3f23466d433767430fcaed23a42d9f6ad6ea668db +size 1760788 diff --git a/fwupd-bsc1130056-change-shim-path.patch b/fwupd-bsc1130056-change-shim-path.patch index a2a6e9c..c98f8ca 100644 --- a/fwupd-bsc1130056-change-shim-path.patch +++ b/fwupd-bsc1130056-change-shim-path.patch @@ -12,8 +12,8 @@ Signed-off-by: Gary Lin Index: fwupd-1.5.2/plugins/uefi/fu-uefi-bootmgr.c =================================================================== ---- fwupd-1.5.2.orig/plugins/uefi/fu-uefi-bootmgr.c -+++ fwupd-1.5.2/plugins/uefi/fu-uefi-bootmgr.c +--- fwupd-1.5.2.orig/plugins/uefi-capsule/fu-uefi-bootmgr.c ++++ fwupd-1.5.2/plugins/uefi-capsule/fu-uefi-bootmgr.c @@ -274,7 +274,8 @@ fu_uefi_bootmgr_bootnext (FuDevice *devi secure_boot = fu_efivar_secure_boot_enabled (); if (secure_boot) { diff --git a/fwupd-bsc1179790-disable-hintsystem.patch b/fwupd-bsc1179790-disable-hintsystem.patch deleted file mode 100644 index 1b8f498..0000000 --- a/fwupd-bsc1179790-disable-hintsystem.patch +++ /dev/null @@ -1,21 +0,0 @@ -commit c60e58b2cfa277950cce80c3a4d33a0faaa90f20 -Author: Richard Hughes -Date: Mon Dec 14 09:36:46 2020 +0000 - - Do not use the Block.HintSystem boolean for ESP filtering - - Fixes https://github.com/fwupd/fwupd/issues/2676 - -diff --git a/libfwupdplugin/fu-common.c b/libfwupdplugin/fu-common.c -index a3cc2d82..2e25095f 100644 ---- a/libfwupdplugin/fu-common.c -+++ b/libfwupdplugin/fu-common.c -@@ -2463,8 +2463,6 @@ fu_common_get_esp_default (GError **error) - g_autofree gchar *type = fu_volume_get_id_type (vol); - if (type == NULL) - continue; -- if (!fu_volume_is_internal (vol)) -- continue; - if (g_strcmp0 (type, "vfat") == 0) - g_ptr_array_add (volumes_vfat, vol); - } diff --git a/fwupd-jscSLE-11766-close-efidir-leap-gap.patch b/fwupd-jscSLE-11766-close-efidir-leap-gap.patch index 8315076..5a64b22 100644 --- a/fwupd-jscSLE-11766-close-efidir-leap-gap.patch +++ b/fwupd-jscSLE-11766-close-efidir-leap-gap.patch @@ -1,7 +1,7 @@ -diff --git a/plugins/uefi/fu-uefi-common.c b/plugins/uefi/fu-uefi-common.c +diff --git a/plugins/uefi-capsule/fu-uefi-common.c b/plugins/uefi-capsule/fu-uefi-common.c index 6cd55672..6a710cdb 100644 ---- a/plugins/uefi/fu-uefi-common.c -+++ b/plugins/uefi/fu-uefi-common.c +--- a/plugins/uefi-capsule/fu-uefi-common.c ++++ b/plugins/uefi-capsule/fu-uefi-common.c @@ -227,9 +227,13 @@ fu_uefi_get_esp_path_for_os (const gchar *base) g_autofree gchar *esp_path = NULL; g_autoptr(GError) error_local = NULL; diff --git a/fwupd.changes b/fwupd.changes index 583906f..2c58a5d 100644 --- a/fwupd.changes +++ b/fwupd.changes @@ -1,3 +1,53 @@ +------------------------------------------------------------------- +Thu Feb 18 14:04:13 UTC 2021 - Paolo Stivanin + +- Update to 1.5.6: + New features: + * Add SBAT metadata to the fwupd EFI binary + * Add support for GD32VF103 as found in the Longan Nano + * Add support for RMI PS2 devices + * Add support for the System76 Keyboard + * Allow downloading firmware from IPFS + * Install the UX data into a single .tar.xz file + * Add a plugin to update PixArt RF devices + * Add new hardware to use the elantp and rts54hid plugins + * Allow specifying more than one VendorID for a device + * Detect the AMD TSME encryption state for HSI-4 + * Detect the AMI PK test key is not installed for HSI-1 + * Add Maple Ridge Thunderbolt firmware parsing support + * Add --no-remote-check to ignore checking for download remotes + * Allow creating FMAP and Synaptics firmware using builder.xml + Fixes: + * Add support for the Starlabs LabTop L4 + * Allow using an external ESP again + * Ask the user to reboot when required if downgrading + * Be more paranoid when parsing ASCII buffers and devices + * Check if the fwupd BootXXXX entry exists on failure + * Clear the pending flag if restarting the system + * Do not allow flashing using flashrom if BLE is enabled + * Do not allow Lenovo hardware to install multiple capsules + * Do not parse the OptionROM image + * Do not show Unknown [***] for every client connection + * Fix dnload wBlockNum wraparound for ST devices + * Fix OOM when using large ArchiveSizeMax values + * Fix several crashes spotted by AddressSanitizer + * Fix several places where the Goodix MOC plugin could crash + * Include the PCR0 to the report metadata + * Report the lockdown status from UEFI and SuperIO plugins + * Show a console warning if the system clock is not set + * Fix flashing a fingerprint reader that is in use + * Fix several critical warnings when parsing invalid firmware + * Fix updating DFU devices that use DNLOAD_BUSY + * Ignore the legacy UEFI OVMF dummy GUID + * Make libfwupd more thread safe to fix a crash in gnome-software + * Never show unprintable chars from invalid firmware in the logs + * Allow using fwupdtool as non-root for firmware commands + * Do not trust the Block.HintSystem boolean for ESP filtering + * Fix a memory leak when parsing Synaptics firmware + * Fix a possible crash when reading the Goodix MOC USB request + * Fix crashes when parsing invalid FMAP, DMC, Solokey and Synaptics images +- Deprecate fwupd-bsc1179790-disable-hintsystem.patch + ------------------------------------------------------------------- Mon Dec 14 09:58:47 UTC 2020 - Gary Ching-Pang Lin diff --git a/fwupd.spec b/fwupd.spec index f7be35c..2d5810a 100644 --- a/fwupd.spec +++ b/fwupd.spec @@ -1,7 +1,7 @@ # # spec file for package fwupd # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -30,7 +30,7 @@ %endif Name: fwupd -Version: 1.5.3 +Version: 1.5.6 Release: 0 Summary: Device firmware updater daemon License: GPL-2.0-or-later AND LGPL-2.1-or-later @@ -44,8 +44,6 @@ Source: %{name}-%{version}.tar.xz Patch1: fwupd-bsc1130056-change-shim-path.patch # PATCH-FIX-OPENSUSE fwupd-jscSLE-11766-close-efidir-leap-gap.patch jsc#SLE-11766 qkzhu@suse.com -- Set SLE and openSUSE esp os dir at runtime Patch2: fwupd-jscSLE-11766-close-efidir-leap-gap.patch -# PATCH-FIX-UPSTREAM fwupd-bsc1179790-disable-hintsystem.patch bsc#1179790 glin@suse.com Do not use the Block.HintSystem boolean for ESP filtering -Patch3: fwupd-bsc1179790-disable-hintsystem.patch BuildRequires: dejavu-fonts %if %{with fish_support} @@ -348,6 +346,9 @@ fi %{_datadir}/icons/hicolor/* %{_prefix}/lib/systemd/system-shutdown/fwupd.shutdown %{_prefix}/lib/systemd/system-preset/fwupd-refresh.preset +%if %{with efi_fw_update} +%{_datadir}/fwupd/uefi-capsule-ux.tar.xz +%endif %files -n dfu-tool %{_bindir}/dfu-tool @@ -370,9 +371,6 @@ fi %{_libdir}/girepository-1.0/FwupdPlugin-1.0.typelib %files lang -f %{name}.lang -%if %{with efi_fw_update} -%{_datadir}/locale/*/LC_IMAGES/ -%endif %files devel %doc %{_datadir}/gtk-doc/html/fwupd/