Compare commits
10 Commits
04b292c8c9
...
10e18abed6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
10e18abed6 | ||
|
|
5f5868754d | ||
|
|
eb81a1ffb3 | ||
|
|
10c07fa6c0 | ||
|
|
ef4cd7d5de | ||
|
|
46c1764177 | ||
|
|
5a466a8a2d | ||
|
|
bce715e90c | ||
|
|
25d9db78c0 | ||
|
|
15adedc604 |
35
0002-Compilation-failure-due-to-assertion-error.patch
Normal file
35
0002-Compilation-failure-due-to-assertion-error.patch
Normal file
@ -0,0 +1,35 @@
|
||||
diff -Naru fwupd-1.2.9/src/fu-self-test.c fwupd-1.2.9-new/src/fu-self-test.c
|
||||
--- fwupd-1.2.9/src/fu-self-test.c 2019-05-20 18:18:00.000000000 +0800
|
||||
+++ fwupd-1.2.9-new/src/fu-self-test.c 2022-07-25 11:22:05.787729000 +0800
|
||||
@@ -2823,23 +2823,6 @@
|
||||
g_assert_cmpint (lines, ==, 6);
|
||||
}
|
||||
|
||||
-static void
|
||||
-fu_common_spawn_timeout_func (void)
|
||||
-{
|
||||
- gboolean ret;
|
||||
- guint lines = 0;
|
||||
- g_autoptr(GError) error = NULL;
|
||||
- g_autofree gchar *fn = NULL;
|
||||
- const gchar *argv[3] = { "replace", "test", NULL };
|
||||
-
|
||||
- fn = fu_test_get_filename (TESTDATADIR, "spawn.sh");
|
||||
- g_assert (fn != NULL);
|
||||
- argv[0] = fn;
|
||||
- ret = fu_common_spawn_sync (argv, fu_test_stdout_cb, &lines, 50, NULL, &error);
|
||||
- g_assert_error (error, G_IO_ERROR, G_IO_ERROR_CANCELLED);
|
||||
- g_assert (!ret);
|
||||
- g_assert_cmpint (lines, ==, 1);
|
||||
-}
|
||||
|
||||
static void
|
||||
fu_progressbar_func (void)
|
||||
@@ -3751,7 +3734,6 @@
|
||||
g_test_add_func ("/fwupd/common{cab-error-missing-file}", fu_common_store_cab_error_missing_file_func);
|
||||
g_test_add_func ("/fwupd/common{cab-error-size}", fu_common_store_cab_error_size_func);
|
||||
g_test_add_func ("/fwupd/common{spawn)", fu_common_spawn_func);
|
||||
- g_test_add_func ("/fwupd/common{spawn-timeout)", fu_common_spawn_timeout_func);
|
||||
g_test_add_func ("/fwupd/common{firmware-builder}", fu_common_firmware_builder_func);
|
||||
return g_test_run ();
|
||||
}
|
||||
17
CVE-2020-10759.patch
Normal file
17
CVE-2020-10759.patch
Normal file
@ -0,0 +1,17 @@
|
||||
diff -Naru fwupd-1.2.9/src/fu-keyring-gpg.c fwupd-1.2.9-new/src/fu-keyring-gpg.c
|
||||
--- fwupd-1.2.9/src/fu-keyring-gpg.c 2019-05-20 18:18:00.000000000 +0800
|
||||
+++ fwupd-1.2.9-new/src/fu-keyring-gpg.c 2022-07-25 10:51:37.434242000 +0800
|
||||
@@ -297,6 +297,13 @@
|
||||
"no result record from libgpgme");
|
||||
return NULL;
|
||||
}
|
||||
+ if (result->signatures == NULL) {
|
||||
+ g_set_error_literal (error,
|
||||
+ FWUPD_ERROR,
|
||||
+ FWUPD_ERROR_INTERNAL,
|
||||
+ "no signatures from libgpgme");
|
||||
+ return NULL;
|
||||
+ }
|
||||
|
||||
/* look at each signature */
|
||||
for (s = result->signatures; s != NULL ; s = s->next ) {
|
||||
25
fwupd.spec
25
fwupd.spec
@ -9,7 +9,7 @@
|
||||
|
||||
Name: fwupd
|
||||
Version: 1.2.9
|
||||
Release: 2
|
||||
Release: 5
|
||||
Summary: Make updating firmware on Linux automatic, safe and reliable
|
||||
License: LGPLv2+
|
||||
URL: https://github.com/fwupd/fwupd/releases
|
||||
@ -17,6 +17,8 @@ Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{vers
|
||||
|
||||
#Self-tests are failing due to an expired cert #1264
|
||||
Patch1: 0001-Relax-the-certificate-time-checks-in-the-self-tests-.patch
|
||||
Patch2: 0002-Compilation-failure-due-to-assertion-error.patch
|
||||
Patch3: CVE-2020-10759.patch
|
||||
|
||||
BuildRequires: gettext glib2-devel libxmlb-devel valgrind valgrind-devel libgcab1-devel
|
||||
BuildRequires: gpgme-devel libgudev1-devel libgusb-devel libsoup-devel polkit-devel sqlite-devel libxslt
|
||||
@ -38,6 +40,7 @@ BuildRequires: efivar-devel libsmbios-devel
|
||||
%endif
|
||||
|
||||
Requires: glib2 bubblewrap libsoup libgusb libxmlb shared-mime-info
|
||||
Requires: pesign
|
||||
Requires(post):systemd
|
||||
Requires(preun):systemd
|
||||
Requires(postun):systemd
|
||||
@ -85,15 +88,6 @@ This package contains the development and installed test files for %{name}.
|
||||
%install
|
||||
%meson_install
|
||||
|
||||
%if %{with uefi}
|
||||
%ifarch x86_64
|
||||
%pesign -s -i %{buildroot}%{_libexecdir}/%{name}/efi/%{name}x64.efi -o %{buildroot}%{_libexecdir}/%{name}/efi/%{name}x64.efi.signed
|
||||
%endif
|
||||
%ifarch aarch64
|
||||
%pesign -s -i %{buildroot}%{_libexecdir}/%{name}/efi/%{name}aa64.efi -o %{buildroot}%{_libexecdir}/%{name}/efi/%{name}aa64.efi.signed
|
||||
%endif
|
||||
%endif
|
||||
|
||||
mkdir -pm 0700 %{buildroot}%{_localstatedir}/lib/%{name}/gnupg
|
||||
|
||||
%find_lang %{name}
|
||||
@ -148,7 +142,6 @@ mkdir -pm 0700 %{buildroot}%{_localstatedir}/lib/%{name}/gnupg
|
||||
%if %{with uefi}
|
||||
%config(noreplace)%{_sysconfdir}/%{name}/uefi.conf
|
||||
%{_libexecdir}/%{name}/efi/*.efi
|
||||
%{_libexecdir}/%{name}/efi/*.efi.signed
|
||||
%{_libexecdir}/%{name}/fwupdate
|
||||
%{_datadir}/*/*/LC_IMAGES/%{name}*
|
||||
%endif
|
||||
@ -174,6 +167,16 @@ mkdir -pm 0700 %{buildroot}%{_localstatedir}/lib/%{name}/gnupg
|
||||
%{_datadir}/man/man1/*
|
||||
|
||||
%changelog
|
||||
* Fri Aug 05 2022 yaoxin <yaoxin30@h-partners.com> - 1.2.9-5
|
||||
- Resolve fwupd upgrade and downgrade error
|
||||
|
||||
* Thu Jul 14 2022 yangweidong <yangweidong9@huawei.com> - 1.2.9-4
|
||||
- Solve 0002-Compilation-failure-due-to-assertion-error
|
||||
- Fix CVE-2020-10759
|
||||
|
||||
* Fri Jun 5 2020 Senlin Xia <xiasenlin1@huawei.com> - 1.2.9-3
|
||||
- remove sign for fwupd efi
|
||||
|
||||
* Mon Dec 9 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.2.9-2
|
||||
- Solve build problem of x86
|
||||
|
||||
|
||||
4
fwupd.yaml
Normal file
4
fwupd.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: fwupd/fwupd
|
||||
tag_prefix: ^
|
||||
seperator: .
|
||||
Loading…
x
Reference in New Issue
Block a user