[arch-commits] Commit in fwupd/trunk (3 files)

2018-03-04 Thread Bruno Pagani via arch-commits
Date: Sunday, March 4, 2018 @ 17:07:10
  Author: archange
Revision: 302439

Add patch for allowing different ESP mount point

As well as a previous commit required to patch.

Added:
  fwupd/trunk/capsule-changes.patch
  fwupd/trunk/config-esp-path.patch
Modified:
  fwupd/trunk/PKGBUILD

---+
 PKGBUILD  |   18 ++-
 capsule-changes.patch |  135 ++
 config-esp-path.patch |  242 
 3 files changed, 390 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-03-04 16:22:40 UTC (rev 302438)
+++ PKGBUILD2018-03-04 17:07:10 UTC (rev 302439)
@@ -4,7 +4,7 @@
 
 pkgname=fwupd
 pkgver=1.0.5
-pkgrel=1
+pkgrel=2
 pkgdesc='A simple daemon to allow session software to update firmware'
 arch=('x86_64')
 url='https://github.com/hughsie/fwupd'
@@ -13,14 +13,22 @@
 makedepends=('meson' 'valgrind' 'gtk-doc' 'help2man' 'python-pillow' 
'gobject-introspection'
  'python-cairo' 'ttf-dejavu' 'adobe-source-han-sans-cn-fonts' 
'python-gobject')
 checkdepends=('umockdev')
-source=(${pkgname}-${pkgver}.tar.gz::"${url}/archive/${pkgver}.tar.gz")
-sha256sums=('236289aab278fc6611e0a425f7a186895d6755cfdbfd9f182c7bd4bb7fee0324')
+source=(${pkgname}-${pkgver}.tar.gz::"${url}/archive/${pkgver}.tar.gz"
+'capsule-changes.patch'
+'config-esp-path.patch')
+sha256sums=('236289aab278fc6611e0a425f7a186895d6755cfdbfd9f182c7bd4bb7fee0324'
+'5361c6cfc2b7d0cb9a161b7082b780ba30b468347b6489dd32a83e7a376716ac'
+'541b7d31eee9fc9386ad451bf92bb17f400216183bd76c554e7628c7006e90ba')
 
+prepare() {
+cd ${pkgname}-${pkgver}
+patch -p1 -i ../capsule-changes.patch
+patch -p1 -i ../config-esp-path.patch
+}
+
 build() {
 cd ${pkgname}-${pkgver}
-
 arch-meson -D b_lto=false ../build
-
 ninja -v -C ../build
 }
 

Added: capsule-changes.patch
===
--- capsule-changes.patch   (rev 0)
+++ capsule-changes.patch   2018-03-04 17:07:10 UTC (rev 302439)
@@ -0,0 +1,135 @@
+From 02c469052f56dc088705484cbb9f0b788df23b08 Mon Sep 17 00:00:00 2001
+From: Mario Limonciello 
+Date: Mon, 19 Feb 2018 13:11:27 -0600
+Subject: [PATCH] uefi: Report if UX capsule was supported in the report
+ metadata
+
+---
+ plugins/uefi/fu-plugin-uefi.c | 47 +++
+ 1 file changed, 21 insertions(+), 26 deletions(-)
+
+diff --git a/plugins/uefi/fu-plugin-uefi.c b/plugins/uefi/fu-plugin-uefi.c
+index 1f59a99c..87950d7c 100644
+--- a/plugins/uefi/fu-plugin-uefi.c
 b/plugins/uefi/fu-plugin-uefi.c
+@@ -29,6 +29,10 @@
+ #include "fu-plugin.h"
+ #include "fu-plugin-vfuncs.h"
+ 
++struct FuPluginData {
++  gbooleanux_capsule;
++};
++
+ /* drop when upgrading minimum required version of efivar to 33 */
+ #if !defined (efi_guid_ux_capsule)
+ #define efi_guid_ux_capsule 
EFI_GUID(0x3b8c8162,0x188c,0x46a4,0xaec9,0xbe,0x43,0xf1,0xd6,0x56,0x97)
+@@ -37,6 +41,8 @@
+ void
+ fu_plugin_init (FuPlugin *plugin)
+ {
++  FuPluginData *data = fu_plugin_alloc_data (plugin, sizeof 
(FuPluginData));
++  data->ux_capsule = FALSE;
+   fu_plugin_add_rule (plugin, FU_PLUGIN_RULE_RUN_AFTER, "upower");
+   fu_plugin_add_report_metadata (plugin, "FwupdateVersion", 
LIBFWUP_LIBRARY_VERSION);
+   fu_plugin_add_report_metadata (plugin, "EfivarVersion", 
EFIVAR_LIBRARY_VERSION);
+@@ -89,22 +95,6 @@ fu_plugin_uefi_find (fwup_resource_iter *iter, const gchar 
*guid_str, GError **e
+   return re_matched;
+ }
+ 
+-static fwup_resource *
+-fu_plugin_uefi_find_raw (fwup_resource_iter *iter, efi_guid_t *guid)
+-{
+-  fwup_resource *re_matched = NULL;
+-  fwup_resource *re = NULL;
+-  while (fwup_resource_iter_next (iter, ) > 0) {
+-  efi_guid_t *guid_tmp;
+-  fwup_get_guid (re, _tmp);
+-  if (efi_guid_cmp (guid_tmp, guid) == 0) {
+-  re_matched = re;
+-  break;
+-  }
+-  }
+-  return re_matched;
+-}
+-
+ static void
+ _fwup_resource_iter_free (fwup_resource_iter *iter)
+ {
+@@ -317,12 +307,6 @@ fu_plugin_uefi_update_splash (GError **error)
+   { 0, 0 }
+   };
+ 
+-  /* is this supported? */
+-  fwup_resource_iter_create ();
+-  re = fu_plugin_uefi_find_raw (iter, _guid_ux_capsule);
+-  if (re == NULL)
+-  return TRUE;
+-
+   /* get the boot graphics resource table data */
+ #ifdef HAVE_FWUP_GET_BGRT_INFO
+   rc = fwup_get_ux_capsule_info (_width, _height);
+@@ -381,6 +365,7 @@ fu_plugin_update (FuPlugin *plugin,
+ FwupdInstallFlags flags,
+ GError **error)
+ {
++  FuPluginData *data = fu_plugin_get_data (plugin);
+   fwup_resource *re = NULL;
+   guint64 hardware_instance = 0;  /* 

[arch-commits] Commit in fwupd/trunk (3 files)

2017-07-05 Thread Bruno Pagani
Date: Wednesday, July 5, 2017 @ 08:32:24
  Author: archange
Revision: 242381

upgpkg: fwupd 0.9.5-2

Upstream update

Modified:
  fwupd/trunk/PKGBUILD
Deleted:
  fwupd/trunk/fix-missing-name.patch
  fwupd/trunk/fix-test-failure.patch

+
 PKGBUILD   |   22 +-
 fix-missing-name.patch |   21 -
 fix-test-failure.patch |   21 -
 3 files changed, 9 insertions(+), 55 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-07-05 08:29:42 UTC (rev 242380)
+++ PKGBUILD2017-07-05 08:32:24 UTC (rev 242381)
@@ -3,7 +3,7 @@
 # Contributor: Mirco Tischler 
 
 pkgname=fwupd
-pkgver=0.9.4
+pkgver=0.9.5
 pkgrel=2
 pkgdesc='A simple daemon to allow session software to update firmware'
 arch=('i686' 'x86_64')
@@ -13,19 +13,9 @@
 makedepends=('meson' 'valgrind' 'docbook-utils' 'docbook-sgml' 'perl-sgmls'
  'gobject-introspection' 'gtk-doc' 'python-pillow' 'python-cairo'
  'ttf-dejavu' 'adobe-source-han-sans-cn-fonts' 'python-gobject')
-source=(${pkgname}-${pkgver}.tar.gz::"${url}/archive/${pkgver}.tar.gz"
-'fix-missing-name.patch'
-'fix-test-failure.patch')
-sha256sums=('ac6c02df4a00d541a205f17c0fa681cc5fe9161dd20cc28045c28cbe43b042e0'
-'2a620759ccceaa1e06e81ad47467804f5bffc2a0e83e1cc25f351f94d2444900'
-'e684937330f4fffd32fea3db0f444fcbd0250009905c3c76693bdc6eccb425da')
+source=(${pkgname}-${pkgver}.tar.gz::"${url}/archive/${pkgver}.tar.gz")
+sha256sums=('876bb4c1cc5b27bb5f30e1c5d81522c82554738bede9a811f9e352966e58453e')
 
-prepare() {
-cd ${pkgname}-${pkgver}
-patch -p1 -i ../fix-missing-name.patch
-patch -p1 -i ../fix-test-failure.patch
-}
-
 build() {
 cd ${pkgname}-${pkgver}
 
@@ -46,7 +36,13 @@
 
 package() {
 DESTDIR="${pkgdir}" ninja -C build install
+<<< .mine
+# Remove the tests
+rm -r ${pkgdir}/usr/share/installed-tests/
+||| .r239021
+===
 
 # Fixup mode to match polkit
 install -d -o root -g 102 -m 750 "${pkgdir}/usr/share/polkit-1/rules.d"
+>>> .r242380
 }

Deleted: fix-missing-name.patch
===
--- fix-missing-name.patch  2017-07-05 08:29:42 UTC (rev 242380)
+++ fix-missing-name.patch  2017-07-05 08:32:24 UTC (rev 242381)
@@ -1,21 +0,0 @@
-From de5dd8f33dbc643d7e55087eef29f5a59b6dda1c Mon Sep 17 00:00:00 2001
-From: Richard Hughes 
-Date: Mon, 19 Jun 2017 13:26:47 +0100
-Subject: [PATCH] trivial: Include the name in fwupd_device_to_string()
-

- libfwupd/fwupd-device.c | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/libfwupd/fwupd-device.c b/libfwupd/fwupd-device.c
-index af2af77..091879d 100644
 a/libfwupd/fwupd-device.c
-+++ b/libfwupd/fwupd-device.c
-@@ -1011,6 +1011,7 @@ fwupd_device_to_string (FwupdDevice *device)
-   fwupd_pad_kv_str (str, FWUPD_RESULT_KEY_GUID, guid);
-   }
-   fwupd_pad_kv_str (str, FWUPD_RESULT_KEY_DEVICE_ID, priv->id);
-+  fwupd_pad_kv_str (str, FWUPD_RESULT_KEY_DEVICE_NAME, priv->name);
-   fwupd_pad_kv_str (str, FWUPD_RESULT_KEY_DEVICE_DESCRIPTION, 
priv->description);
-   fwupd_pad_kv_str (str, FWUPD_RESULT_KEY_DEVICE_PLUGIN, priv->provider);
-   fwupd_pad_kv_dfl (str, FWUPD_RESULT_KEY_DEVICE_FLAGS, priv->flags);

Deleted: fix-test-failure.patch
===
--- fix-test-failure.patch  2017-07-05 08:29:42 UTC (rev 242380)
+++ fix-test-failure.patch  2017-07-05 08:32:24 UTC (rev 242381)
@@ -1,21 +0,0 @@
-From 0eaca2da65d376ddd3ec170286feee5e88d68433 Mon Sep 17 00:00:00 2001
-From: Richard Hughes 
-Date: Mon, 19 Jun 2017 14:01:27 +0100
-Subject: [PATCH] trivial: Fix test failure with de5dd8f3
-

- libfwupd/fwupd-self-test.c | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/libfwupd/fwupd-self-test.c b/libfwupd/fwupd-self-test.c
-index 7597fff..f3b14b8 100644
 a/libfwupd/fwupd-self-test.c
-+++ b/libfwupd/fwupd-self-test.c
-@@ -139,6 +139,7 @@ fwupd_result_func (void)
-   "  Guid: 2082b5e0-7a64-478a-b1b2-e3404fab6dad\n"
-   "  Guid: ----\n"
-   "  DeviceID: USB:foo\n"
-+  "  DisplayName:  ColorHug2\n"
-   "  Flags:allow-offline|require-ac\n"
-   "  FirmwareHash: SHA1(beefdead)\n"
-   "  Created:  1970-01-01\n"