public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Lars Wendler" <polynomial-c@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/fwupd/, sys-apps/fwupd/files/
Date: Mon, 17 Jan 2022 16:08:15 +0000 (UTC)	[thread overview]
Message-ID: <1642435687.79dabb3646d62da12da567c70b2ca83f328b2574.polynomial-c@gentoo> (raw)

commit:     79dabb3646d62da12da567c70b2ca83f328b2574
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 17 16:07:24 2022 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Mon Jan 17 16:08:07 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79dabb36

sys-apps/fwupd: Fixed build against sys-libs/efivar-38

Closes: https://bugs.gentoo.org/831327
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 sys-apps/fwupd/files/fwupd-1.7.4-efivar38.patch | 55 +++++++++++++++++++++++++
 sys-apps/fwupd/fwupd-1.7.4.ebuild               |  4 ++
 2 files changed, 59 insertions(+)

diff --git a/sys-apps/fwupd/files/fwupd-1.7.4-efivar38.patch b/sys-apps/fwupd/files/fwupd-1.7.4-efivar38.patch
new file mode 100644
index 000000000000..968a0e7222d3
--- /dev/null
+++ b/sys-apps/fwupd/files/fwupd-1.7.4-efivar38.patch
@@ -0,0 +1,55 @@
+From e74d38bfd3097471fe60dbe843a68c16516a78da Mon Sep 17 00:00:00 2001
+From: Richard Hughes <richard@hughsie.com>
+Date: Mon, 17 Jan 2022 14:50:47 +0000
+Subject: [PATCH] Fix compiling with new versions of efivar
+
+Fixes https://github.com/fwupd/fwupd/issues/4181
+---
+ meson.build                           | 5 +++++
+ plugins/uefi-capsule/fu-uefi-common.h | 3 +++
+ 2 files changed, 8 insertions(+)
+
+diff --git a/meson.build b/meson.build
+index 833bdbf56..691cc8a58 100644
+--- a/meson.build
++++ b/meson.build
+@@ -412,6 +412,11 @@ endif
+ if build_standalone and get_option('plugin_uefi_capsule')
+   efiboot = dependency('efiboot')
+ 
++  efivar = dependency('efivar')
++  if cc.has_header_symbol('efivar/efivar-types.h', 'efi_time_t', dependencies : efivar)
++    conf.set('HAVE_EFI_TIME_T', '1')
++  endif
++
+   efi_app_location = join_paths(libexecdir, 'fwupd', 'efi')
+   conf.set_quoted('EFI_APP_LOCATION', efi_app_location)
+ 
+diff --git a/plugins/uefi-capsule/fu-uefi-common.h b/plugins/uefi-capsule/fu-uefi-common.h
+index a21806d6b..1d616c9e0 100644
+--- a/plugins/uefi-capsule/fu-uefi-common.h
++++ b/plugins/uefi-capsule/fu-uefi-common.h
+@@ -9,6 +9,7 @@
+ 
+ #include <fwupdplugin.h>
+ 
++#include <efivar/efivar.h>
+ #include <glib.h>
+ 
+ #define EFI_CAPSULE_HEADER_FLAGS_PERSIST_ACROSS_RESET  0x00010000
+@@ -17,6 +18,7 @@
+ 
+ #define EFI_OS_INDICATIONS_FILE_CAPSULE_DELIVERY_SUPPORTED 0x0000000000000004ULL
+ 
++#ifndef HAVE_EFI_TIME_T
+ typedef struct __attribute__((__packed__)) {
+ 	guint16 year;
+ 	guint8 month;
+@@ -30,6 +32,7 @@ typedef struct __attribute__((__packed__)) {
+ 	guint8 daylight;
+ 	guint8 pad2;
+ } efi_time_t;
++#endif
+ 
+ typedef struct __attribute__((__packed__)) {
+ 	fwupd_guid_t guid;

diff --git a/sys-apps/fwupd/fwupd-1.7.4.ebuild b/sys-apps/fwupd/fwupd-1.7.4.ebuild
index 282861f294ad..aaed0839779c 100644
--- a/sys-apps/fwupd/fwupd-1.7.4.ebuild
+++ b/sys-apps/fwupd/fwupd-1.7.4.ebuild
@@ -86,6 +86,10 @@ DEPEND="
 	x11-libs/pango[introspection]
 "
 
+PATCHES=(
+	"${FILESDIR}/${PN}-1.7.4-efivar38.patch" #831327
+)
+
 pkg_setup() {
 	python-single-r1_pkg_setup
 	if use nvme ; then


             reply	other threads:[~2022-01-17 16:08 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-17 16:08 Lars Wendler [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-10-03  2:00 [gentoo-commits] repo/gentoo:master commit in: sys-apps/fwupd/, sys-apps/fwupd/files/ Sam James
2025-10-03  1:44 Sam James
2025-05-23  6:15 Sam James
2023-05-21 11:25 Marek Szuba
2023-02-24 16:50 Marek Szuba
2023-02-24 16:50 Marek Szuba
2023-01-24 11:01 Marek Szuba
2022-11-10  0:42 Marek Szuba
2022-10-13  9:31 Marek Szuba
2022-08-21  1:16 Marek Szuba
2022-07-27 22:43 Marek Szuba
2022-07-27 13:10 Marek Szuba
2022-01-10 14:13 Lars Wendler
2021-11-12 18:59 Mike Gilbert
2021-10-31  2:46 Sam James
2021-06-15 12:21 Thomas Deutschmann
2021-04-13 21:53 Lars Wendler
2021-03-24 16:07 Matt Turner
2020-06-19  6:35 Lars Wendler
2019-05-20 14:13 Lars Wendler
2019-02-25 12:01 Andreas Sturmlechner
2019-02-14  1:30 Lars Wendler
2017-12-03 13:55 Lars Wendler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1642435687.79dabb3646d62da12da567c70b2ca83f328b2574.polynomial-c@gentoo \
    --to=polynomial-c@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox