Accepting request 1070745 from Base:System

OBS-URL: https://build.opensuse.org/request/show/1070745
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/fwupd?expand=0&rev=59
This commit is contained in:
Dominique Leuenberger 2023-03-11 17:23:45 +00:00 committed by Git OBS Bridge
commit 9c51a56ab6
8 changed files with 62 additions and 58 deletions

View File

@ -4,7 +4,7 @@
<param name="url">https://github.com/fwupd/fwupd.git</param>
<param name="scm">git</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="revision">1.8.9</param>
<param name="revision">1.8.12</param>
</service>
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">

3
fwupd-1.8.12.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:649bdae049b2f59b24ff293b80f6efd1dae32281935b187b586284d94c87532e
size 16654861

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:90cc2b2a3a58bc7a763207abfda9946333adb0d278e83317343a40f69e5810fa
size 16382989

View File

@ -1,11 +1,11 @@
Index: fwupd-1.8.5/plugins/uefi-capsule/fu-uefi-bootmgr.c
Index: fwupd-1.8.12/plugins/uefi-capsule/fu-uefi-bootmgr.c
===================================================================
--- fwupd-1.8.5.orig/plugins/uefi-capsule/fu-uefi-bootmgr.c
+++ fwupd-1.8.5/plugins/uefi-capsule/fu-uefi-bootmgr.c
--- fwupd-1.8.12.orig/plugins/uefi-capsule/fu-uefi-bootmgr.c
+++ fwupd-1.8.12/plugins/uefi-capsule/fu-uefi-bootmgr.c
@@ -292,7 +292,8 @@ fu_uefi_bootmgr_bootnext(FuDevice *devic
/* test if we should use shim */
secure_boot = fu_efivar_secure_boot_enabled(NULL);
if (secure_boot) {
/* test to make sure shim is there if we need it */
- shim_app = fu_uefi_get_esp_app_path(device, esp_path, "shim", error);
+ shim_app = g_strdup_printf ("%s/shim.efi",
+ fu_uefi_get_esp_path_for_os (device, esp_path));

View File

@ -1,3 +1,38 @@
-------------------------------------------------------------------
Fri Mar 10 13:14:18 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
- Introduce docs flag, set to 0: do not build documentation using
pandoc: ghc is not part of the rings and we don't want this
there.
-------------------------------------------------------------------
Thu Mar 2 16:55:23 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
- Update to version 1.8.12:
+ Allow setting the package user agent before the client has
connected.
+ Fix a small memory leak when refreshing metadata.
- Changes from version 1.8.11:
+ Add support for replaying USB devices so they can be emulated
in CI.
+ Allow desktop software to inhibit the system to prevent
updates.
+ Allow using requirements with depth=0 and no parent.
+ Auto-set the CCGX remove-delay now we parse DMC subcomponents.
+ Detect and warn users with the broken NVMe firmware 3B2QGXA7.
+ Print errors as JSON objects when using fwupdmgr --json.
- Changes from version 1.8.10:
+ Add a PE/COFF firmware parser to allow reading coSWID SBoM
data.
+ Allow dumping CFI SPI chips using devices like CH341a.
+ Refactor the HWIDs functionality to include FDT data.
- Rebase fwupd-bsc1130056-change-shim-path.patch.
- Drop uefi-capsule-Do-not-call-grub2-probe-without-argumen.patch:
fixed upstream.
- Add -Dcompat_cli=true meson parameter: keep compat binaries for
the time being.
- Add xz-devel BuildRequires: needed to link liblzma.
-------------------------------------------------------------------
Wed Jan 18 17:13:29 UTC 2023 - Michal Suchanek <msuchanek@suse.com>

View File

@ -1,4 +1,4 @@
name: fwupd
version: 1.8.9
mtime: 1672748150
commit: faeefb66d03f30a76ff42281fff3d6e9536e9ccf
version: 1.8.12
mtime: 1677250407
commit: 9b7430107b68b0fb5f683e8ef1e9260296f494a8

View File

@ -37,9 +37,10 @@
%endif
%define shlib_sover 2
%define docs 0
Name: fwupd
Version: 1.8.9
Version: 1.8.12
Release: 0
Summary: Device firmware updater daemon
License: GPL-2.0-or-later AND LGPL-2.1-or-later
@ -55,8 +56,6 @@ Patch2: fwupd-jscSLE-11766-close-efidir-leap-gap.patch
Patch3: harden_fwupd-offline-update.service.patch
# PATCH-FEATURE-OPENSUSE harden_fwupd-refresh.service.patch -- Harden services
Patch4: harden_fwupd-refresh.service.patch
# PATCH_FIX_UPSTREAM uefi-capsule-Do-not-call-grub2-probe-without-argumen.patch -- https://github.com/fwupd/fwupd/issues/5424
Patch5: uefi-capsule-Do-not-call-grub2-probe-without-argumen.patch
BuildRequires: dejavu-fonts
BuildRequires: fdupes
@ -81,6 +80,7 @@ BuildRequires: python3-gobject-Gdk
BuildRequires: python3-setuptools
BuildRequires: python3-xml
BuildRequires: vala
BuildRequires: xz-devel
BuildRequires: pkgconfig(appstream-glib) >= 0.5.10
BuildRequires: pkgconfig(bash-completion)
BuildRequires: pkgconfig(cairo)
@ -88,6 +88,9 @@ BuildRequires: pkgconfig(colorhug) >= 1.2.12
%ifnarch s390x ppc64le
BuildRequires: pkgconfig(flashrom)
%endif
%if 0%{?docs}
BuildRequires: pandoc
%endif
BuildRequires: pkgconfig(gi-docgen)
BuildRequires: pkgconfig(gio-2.0) >= 2.45.8
BuildRequires: pkgconfig(gio-unix-2.0) >= 2.48.8
@ -232,6 +235,7 @@ export CFLAGS="%{optflags} -D_GNU_SOURCE"
-Dplugin_uefi_pk=enabled \
-Defi_binary=false \
-Dsystemd_unit_user=root \
-Dcompat_cli=true \
%else
-Dplugin_uefi_capsule=disabled \
-Dplugin_uefi_pk=disabled \
@ -258,6 +262,11 @@ export CFLAGS="%{optflags} -D_GNU_SOURCE"
-Dtests=false \
%ifarch s390x ppc64le
-Dplugin_flashrom=disabled \
%endif
%if 0%{?docs}
-Dman=enabled \
%else
-Dman=disabled \
%endif
%{nil}
%meson_build
@ -340,6 +349,7 @@ rm -fr %{buildroot}%{_datadir}/fish
%{_datadir}/%{name}/metainfo/org.freedesktop.fwupd.remotes.lvfs-testing.metainfo.xml
%{_datadir}/%{name}/metainfo/org.freedesktop.fwupd.remotes.lvfs.metainfo.xml
%{_datadir}/%{name}/remotes.d/vendor/firmware/README.md
%if 0%{?docs}
%{_mandir}/man1/fwupdagent.1%{?ext_man}
%{_mandir}/man1/fwupdmgr.1%{?ext_man}
%{_mandir}/man1/fwupdtool.1%{?ext_man}
@ -347,6 +357,7 @@ rm -fr %{buildroot}%{_datadir}/fish
%{_mandir}/man1/dbxtool.1%{?ext_man}
%{_mandir}/man1/fwupdate.1%{?ext_man}
%endif
%endif
%{_datadir}/polkit-1/actions/org.freedesktop.fwupd.policy
%if %{with msr_support}
%{_modulesloaddir}/fwupd-msr.conf
@ -383,7 +394,9 @@ rm -fr %{buildroot}%{_datadir}/fish
%files -n dfu-tool
%{_bindir}/dfu-tool
%if 0%{?docs}
%{_mandir}/man1/dfu-tool.1%{?ext_man}
%endif
%files -n libfwupd%{shlib_sover}
%{_libdir}/libfwupd.so.*
@ -407,7 +420,6 @@ rm -fr %{buildroot}%{_datadir}/fish
%files bash-completion
%{_datadir}/bash-completion/completions/fwupdmgr
%{_datadir}/bash-completion/completions/fwupdtool
%{_datadir}/bash-completion/completions/fwupdagent
%if %{with fish_support}
%files fish-completion

View File

@ -1,43 +0,0 @@
From 9065f50057cb0e9a1609e44882740ba70d98c2a6 Mon Sep 17 00:00:00 2001
From: Michal Suchanek <msuchanek@suse.de>
Date: Wed, 18 Jan 2023 16:07:05 +0100
Subject: [PATCH] uefi-capsule: Do not call grub2-probe without arguments
commit 684bc0381 ("trivial: fix various shellcheck warnings") adds call
to ${grub_probe} without any argument which causes grub2-probe to return
an error, and generating grub configuration fails.
Add --version argument to avoid the error, and redierct the output to
/dev/null so that it's not included in the grub configuration file.
The commit also adds superfluous single quotes causing another error:
/usr/sbin/grub2-probe: error: cannot find a GRUB drive for `${grub_probe} --target=device \${ESP}` | sed -e "s/^/\t/". Check your device.map.
Fix the quoting to work at least for single device.
Fixes: #5424
Fixes: 684bc0381 ("trivial: fix various shellcheck warnings")
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
---
plugins/uefi-capsule/fwupd.grub.conf.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/uefi-capsule/fwupd.grub.conf.in b/plugins/uefi-capsule/fwupd.grub.conf.in
index 9c3a22f23..6d17fc3cc 100755
--- a/plugins/uefi-capsule/fwupd.grub.conf.in
+++ b/plugins/uefi-capsule/fwupd.grub.conf.in
@@ -14,8 +14,8 @@ if [ -f @localstatedir@/lib/fwupd/uefi_capsule.conf ] &&
cat << EOF
menuentry 'Linux Firmware Updater' \$menuentry_id_option 'fwupd' {
EOF
- ${grub_probe:?}
- prepare_grub_to_access_device '`${grub_probe} --target=device \${ESP}` | sed -e "s/^/\t/"'
+ ${grub_probe:?} --version > /dev/null
+ prepare_grub_to_access_device "$(${grub_probe} --target=device ${ESP})" | sed -e "s/^/\t/"
cat << EOF
chainloader ${EFI_PATH}
}
--
2.39.0