[arch-commits] Commit in fwupd/repos (14 files)
Bruno Pagani
archange at archlinux.org
Wed Jun 14 11:54:25 UTC 2017
Date: Wednesday, June 14, 2017 @ 11:54:24
Author: archange
Revision: 236755
archrelease: copy trunk to community-i686, community-x86_64
Added:
fwupd/repos/community-i686/PKGBUILD
(from rev 236754, fwupd/trunk/PKGBUILD)
fwupd/repos/community-i686/fix-failure-without-remote-d.patch
(from rev 236754, fwupd/trunk/fix-failure-without-remote-d.patch)
fwupd/repos/community-i686/fix-missing-test-files.patch
(from rev 236754, fwupd/trunk/fix-missing-test-files.patch)
fwupd/repos/community-i686/fix-refresh-crash.patch
(from rev 236754, fwupd/trunk/fix-refresh-crash.patch)
fwupd/repos/community-x86_64/PKGBUILD
(from rev 236754, fwupd/trunk/PKGBUILD)
fwupd/repos/community-x86_64/fix-failure-without-remote-d.patch
(from rev 236754, fwupd/trunk/fix-failure-without-remote-d.patch)
fwupd/repos/community-x86_64/fix-missing-test-files.patch
(from rev 236754, fwupd/trunk/fix-missing-test-files.patch)
fwupd/repos/community-x86_64/fix-refresh-crash.patch
(from rev 236754, fwupd/trunk/fix-refresh-crash.patch)
Deleted:
fwupd/repos/community-i686/PKGBUILD
fwupd/repos/community-i686/fix-failure-without-remote-d.patch
fwupd/repos/community-i686/fix-missing-test-files.patch
fwupd/repos/community-x86_64/PKGBUILD
fwupd/repos/community-x86_64/fix-failure-without-remote-d.patch
fwupd/repos/community-x86_64/fix-missing-test-files.patch
-----------------------------------------------------+
/PKGBUILD | 100 ++++++++
/fix-failure-without-remote-d.patch | 46 +++
/fix-missing-test-files.patch | 222 ++++++++++++++++++
community-i686/PKGBUILD | 47 ---
community-i686/fix-failure-without-remote-d.patch | 23 -
community-i686/fix-missing-test-files.patch | 111 ---------
community-i686/fix-refresh-crash.patch | 29 ++
community-x86_64/PKGBUILD | 47 ---
community-x86_64/fix-failure-without-remote-d.patch | 23 -
community-x86_64/fix-missing-test-files.patch | 111 ---------
community-x86_64/fix-refresh-crash.patch | 29 ++
11 files changed, 426 insertions(+), 362 deletions(-)
Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD 2017-06-14 11:53:57 UTC (rev 236754)
+++ community-i686/PKGBUILD 2017-06-14 11:54:24 UTC (rev 236755)
@@ -1,47 +0,0 @@
-# Maintainer: Bruno Pagani (a.k.a. ArchangeGabriel) <archange at archlinux.org>
-# Contributor: Mirco Tischler <mt-ml at gmx dot de>
-
-pkgname=fwupd
-pkgver=0.9.3
-pkgrel=2
-pkgdesc='A simple daemon to allow session software to update firmware'
-arch=('i686' 'x86_64')
-url='https://github.com/hughsie/fwupd'
-license=('GPL2')
-depends=('appstream-glib' 'fwupdate' 'colord')
-#makedepends=('meson' 'valgrind' 'docbook2x' 'gobject-introspection' 'gtk-doc')
-makedepends=('meson' 'valgrind' 'docbook-utils' 'docbook-sgml' 'perl-sgmls'
- 'gobject-introspection' 'gtk-doc')
-source=(${pkgname}-${pkgver}.tar.gz::"${url}/archive/${pkgver}.tar.gz"
- 'fix-missing-test-files.patch'
- 'fix-failure-without-remote-d.patch')
-sha256sums=('56840998a4a7757ac93732c4a51e203e1fef1497dc98ebc175310b132da2a2cc'
- 'ee2bb86e1efaff2d4ca3f2ed55fd8b685cba2cb40debf1418d4e91e27dba00a7'
- '79a5ffc151067d52ff49af55b851b8bcd0976e47d1751268fb1bdd61b46f5dbe')
-
-prepare() {
- cd ${pkgname}-${pkgver}
- patch -p1 -i ../fix-missing-test-files.patch
- patch -p1 -i ../fix-failure-without-remote-d.patch
-}
-
-build() {
- cd ${pkgname}-${pkgver}
-
- meson --prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --libexecdir=/usr/lib \
- --buildtype=plain \
- ../build
-
- ninja -v -C ../build
-}
-
-check() {
- ninja -C build test
-}
-
-package() {
- DESTDIR="${pkgdir}" ninja -C build install
-}
Copied: fwupd/repos/community-i686/PKGBUILD (from rev 236754, fwupd/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2017-06-14 11:54:24 UTC (rev 236755)
@@ -0,0 +1,50 @@
+# Maintainer: Bruno Pagani (a.k.a. ArchangeGabriel) <archange at archlinux.org>
+# Contributor: Mirco Tischler <mt-ml at gmx dot de>
+
+pkgname=fwupd
+pkgver=0.9.3
+pkgrel=3
+pkgdesc='A simple daemon to allow session software to update firmware'
+arch=('i686' 'x86_64')
+url='https://github.com/hughsie/fwupd'
+license=('GPL2')
+depends=('appstream-glib' 'fwupdate' 'colord')
+#makedepends=('meson' 'valgrind' 'docbook2x' 'gobject-introspection' 'gtk-doc')
+makedepends=('meson' 'valgrind' 'docbook-utils' 'docbook-sgml' 'perl-sgmls'
+ 'gobject-introspection' 'gtk-doc')
+source=(${pkgname}-${pkgver}.tar.gz::"${url}/archive/${pkgver}.tar.gz"
+ 'fix-missing-test-files.patch'
+ 'fix-failure-without-remote-d.patch'
+ 'fix-refresh-crash.patch')
+sha256sums=('56840998a4a7757ac93732c4a51e203e1fef1497dc98ebc175310b132da2a2cc'
+ 'ee2bb86e1efaff2d4ca3f2ed55fd8b685cba2cb40debf1418d4e91e27dba00a7'
+ '79a5ffc151067d52ff49af55b851b8bcd0976e47d1751268fb1bdd61b46f5dbe'
+ '0718def1d7572e47822e76d4745971f64c8ec070de6d8778ea9816a218011bb8')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ patch -p1 -i ../fix-missing-test-files.patch
+ patch -p1 -i ../fix-failure-without-remote-d.patch
+ patch -p1 -i ../fix-refresh-crash.patch
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
+
+ meson --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --libexecdir=/usr/lib \
+ --buildtype=plain \
+ ../build
+
+ ninja -v -C ../build
+}
+
+check() {
+ ninja -C build test
+}
+
+package() {
+ DESTDIR="${pkgdir}" ninja -C build install
+}
Deleted: community-i686/fix-failure-without-remote-d.patch
===================================================================
--- community-i686/fix-failure-without-remote-d.patch 2017-06-14 11:53:57 UTC (rev 236754)
+++ community-i686/fix-failure-without-remote-d.patch 2017-06-14 11:54:24 UTC (rev 236755)
@@ -1,23 +0,0 @@
-From f04923ae2ff186a10802c3b236855c612d676fea Mon Sep 17 00:00:00 2001
-From: Richard Hughes <richard at hughsie.com>
-Date: Tue, 13 Jun 2017 10:15:40 +0100
-Subject: [PATCH] trivial: Don't fail to refresh if a remotes.d does not exist
-
-Resolves: https://github.com/hughsie/fwupd/issues/137
----
- libfwupd/fwupd-client.c | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/libfwupd/fwupd-client.c b/libfwupd/fwupd-client.c
-index 1601b2a..814802c 100644
---- a/libfwupd/fwupd-client.c
-+++ b/libfwupd/fwupd-client.c
-@@ -1294,6 +1294,8 @@ fwupd_client_add_remotes_for_path (FwupdClient *client,
- g_autoptr(GDir) dir = NULL;
-
- path_remotes = g_build_filename (path, "remotes.d", NULL);
-+ if (!g_file_test (path_remotes, G_FILE_TEST_EXISTS))
-+ return TRUE;
- dir = g_dir_open (path_remotes, 0, error);
- if (dir == NULL)
- return FALSE;
Copied: fwupd/repos/community-i686/fix-failure-without-remote-d.patch (from rev 236754, fwupd/trunk/fix-failure-without-remote-d.patch)
===================================================================
--- community-i686/fix-failure-without-remote-d.patch (rev 0)
+++ community-i686/fix-failure-without-remote-d.patch 2017-06-14 11:54:24 UTC (rev 236755)
@@ -0,0 +1,23 @@
+From f04923ae2ff186a10802c3b236855c612d676fea Mon Sep 17 00:00:00 2001
+From: Richard Hughes <richard at hughsie.com>
+Date: Tue, 13 Jun 2017 10:15:40 +0100
+Subject: [PATCH] trivial: Don't fail to refresh if a remotes.d does not exist
+
+Resolves: https://github.com/hughsie/fwupd/issues/137
+---
+ libfwupd/fwupd-client.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/libfwupd/fwupd-client.c b/libfwupd/fwupd-client.c
+index 1601b2a..814802c 100644
+--- a/libfwupd/fwupd-client.c
++++ b/libfwupd/fwupd-client.c
+@@ -1294,6 +1294,8 @@ fwupd_client_add_remotes_for_path (FwupdClient *client,
+ g_autoptr(GDir) dir = NULL;
+
+ path_remotes = g_build_filename (path, "remotes.d", NULL);
++ if (!g_file_test (path_remotes, G_FILE_TEST_EXISTS))
++ return TRUE;
+ dir = g_dir_open (path_remotes, 0, error);
+ if (dir == NULL)
+ return FALSE;
Deleted: community-i686/fix-missing-test-files.patch
===================================================================
--- community-i686/fix-missing-test-files.patch 2017-06-14 11:53:57 UTC (rev 236754)
+++ community-i686/fix-missing-test-files.patch 2017-06-14 11:54:24 UTC (rev 236755)
@@ -1,111 +0,0 @@
-From ad9b22480a63225a32f092fc36407586183bd04f Mon Sep 17 00:00:00 2001
-From: Richard Hughes <richard at hughsie.com>
-Date: Wed, 7 Jun 2017 17:08:49 +0100
-Subject: [PATCH] trivial: Fix missing test files
-
-Resolves: https://github.com/hughsie/fwupd/issues/129
----
- data/tests/hwids/bios_major_release | 1 +
- data/tests/hwids/bios_minor_release | 1 +
- data/tests/hwids/bios_vendor | 1 +
- data/tests/hwids/bios_version | 1 +
- data/tests/hwids/board_name | 1 +
- data/tests/hwids/board_vendor | 1 +
- data/tests/hwids/chassis_type | 1 +
- data/tests/hwids/product_family | 1 +
- data/tests/hwids/product_name | 1 +
- data/tests/hwids/product_sku | 1 +
- data/tests/hwids/sys_vendor | 1 +
- 11 files changed, 11 insertions(+)
- create mode 100644 data/tests/hwids/bios_major_release
- create mode 100644 data/tests/hwids/bios_minor_release
- create mode 100644 data/tests/hwids/bios_vendor
- create mode 100644 data/tests/hwids/bios_version
- create mode 100644 data/tests/hwids/board_name
- create mode 100644 data/tests/hwids/board_vendor
- create mode 100644 data/tests/hwids/chassis_type
- create mode 100644 data/tests/hwids/product_family
- create mode 100644 data/tests/hwids/product_name
- create mode 100644 data/tests/hwids/product_sku
- create mode 100644 data/tests/hwids/sys_vendor
-
-diff --git a/data/tests/hwids/bios_major_release b/data/tests/hwids/bios_major_release
-new file mode 100644
-index 0000000..6496923
---- /dev/null
-+++ b/data/tests/hwids/bios_major_release
-@@ -0,0 +1 @@
-+04
-diff --git a/data/tests/hwids/bios_minor_release b/data/tests/hwids/bios_minor_release
-new file mode 100644
-index 0000000..cd672a5
---- /dev/null
-+++ b/data/tests/hwids/bios_minor_release
-@@ -0,0 +1 @@
-+06
-diff --git a/data/tests/hwids/bios_vendor b/data/tests/hwids/bios_vendor
-new file mode 100644
-index 0000000..a591bed
---- /dev/null
-+++ b/data/tests/hwids/bios_vendor
-@@ -0,0 +1 @@
-+American Megatrends Inc.
-diff --git a/data/tests/hwids/bios_version b/data/tests/hwids/bios_version
-new file mode 100644
-index 0000000..44acfeb
---- /dev/null
-+++ b/data/tests/hwids/bios_version
-@@ -0,0 +1 @@
-+1201
-diff --git a/data/tests/hwids/board_name b/data/tests/hwids/board_name
-new file mode 100644
-index 0000000..127a591
---- /dev/null
-+++ b/data/tests/hwids/board_name
-@@ -0,0 +1 @@
-+To be filled by O.E.M.
-diff --git a/data/tests/hwids/board_vendor b/data/tests/hwids/board_vendor
-new file mode 100644
-index 0000000..127a591
---- /dev/null
-+++ b/data/tests/hwids/board_vendor
-@@ -0,0 +1 @@
-+To be filled by O.E.M.
-diff --git a/data/tests/hwids/chassis_type b/data/tests/hwids/chassis_type
-new file mode 100644
-index 0000000..00750ed
---- /dev/null
-+++ b/data/tests/hwids/chassis_type
-@@ -0,0 +1 @@
-+3
-diff --git a/data/tests/hwids/product_family b/data/tests/hwids/product_family
-new file mode 100644
-index 0000000..127a591
---- /dev/null
-+++ b/data/tests/hwids/product_family
-@@ -0,0 +1 @@
-+To be filled by O.E.M.
-diff --git a/data/tests/hwids/product_name b/data/tests/hwids/product_name
-new file mode 100644
-index 0000000..127a591
---- /dev/null
-+++ b/data/tests/hwids/product_name
-@@ -0,0 +1 @@
-+To be filled by O.E.M.
-diff --git a/data/tests/hwids/product_sku b/data/tests/hwids/product_sku
-new file mode 100644
-index 0000000..e45d663
---- /dev/null
-+++ b/data/tests/hwids/product_sku
-@@ -0,0 +1 @@
-+SKU
-diff --git a/data/tests/hwids/sys_vendor b/data/tests/hwids/sys_vendor
-new file mode 100644
-index 0000000..127a591
---- /dev/null
-+++ b/data/tests/hwids/sys_vendor
-@@ -0,0 +1 @@
-+To be filled by O.E.M.
---
-2.13.1
-
Copied: fwupd/repos/community-i686/fix-missing-test-files.patch (from rev 236754, fwupd/trunk/fix-missing-test-files.patch)
===================================================================
--- community-i686/fix-missing-test-files.patch (rev 0)
+++ community-i686/fix-missing-test-files.patch 2017-06-14 11:54:24 UTC (rev 236755)
@@ -0,0 +1,111 @@
+From ad9b22480a63225a32f092fc36407586183bd04f Mon Sep 17 00:00:00 2001
+From: Richard Hughes <richard at hughsie.com>
+Date: Wed, 7 Jun 2017 17:08:49 +0100
+Subject: [PATCH] trivial: Fix missing test files
+
+Resolves: https://github.com/hughsie/fwupd/issues/129
+---
+ data/tests/hwids/bios_major_release | 1 +
+ data/tests/hwids/bios_minor_release | 1 +
+ data/tests/hwids/bios_vendor | 1 +
+ data/tests/hwids/bios_version | 1 +
+ data/tests/hwids/board_name | 1 +
+ data/tests/hwids/board_vendor | 1 +
+ data/tests/hwids/chassis_type | 1 +
+ data/tests/hwids/product_family | 1 +
+ data/tests/hwids/product_name | 1 +
+ data/tests/hwids/product_sku | 1 +
+ data/tests/hwids/sys_vendor | 1 +
+ 11 files changed, 11 insertions(+)
+ create mode 100644 data/tests/hwids/bios_major_release
+ create mode 100644 data/tests/hwids/bios_minor_release
+ create mode 100644 data/tests/hwids/bios_vendor
+ create mode 100644 data/tests/hwids/bios_version
+ create mode 100644 data/tests/hwids/board_name
+ create mode 100644 data/tests/hwids/board_vendor
+ create mode 100644 data/tests/hwids/chassis_type
+ create mode 100644 data/tests/hwids/product_family
+ create mode 100644 data/tests/hwids/product_name
+ create mode 100644 data/tests/hwids/product_sku
+ create mode 100644 data/tests/hwids/sys_vendor
+
+diff --git a/data/tests/hwids/bios_major_release b/data/tests/hwids/bios_major_release
+new file mode 100644
+index 0000000..6496923
+--- /dev/null
++++ b/data/tests/hwids/bios_major_release
+@@ -0,0 +1 @@
++04
+diff --git a/data/tests/hwids/bios_minor_release b/data/tests/hwids/bios_minor_release
+new file mode 100644
+index 0000000..cd672a5
+--- /dev/null
++++ b/data/tests/hwids/bios_minor_release
+@@ -0,0 +1 @@
++06
+diff --git a/data/tests/hwids/bios_vendor b/data/tests/hwids/bios_vendor
+new file mode 100644
+index 0000000..a591bed
+--- /dev/null
++++ b/data/tests/hwids/bios_vendor
+@@ -0,0 +1 @@
++American Megatrends Inc.
+diff --git a/data/tests/hwids/bios_version b/data/tests/hwids/bios_version
+new file mode 100644
+index 0000000..44acfeb
+--- /dev/null
++++ b/data/tests/hwids/bios_version
+@@ -0,0 +1 @@
++1201
+diff --git a/data/tests/hwids/board_name b/data/tests/hwids/board_name
+new file mode 100644
+index 0000000..127a591
+--- /dev/null
++++ b/data/tests/hwids/board_name
+@@ -0,0 +1 @@
++To be filled by O.E.M.
+diff --git a/data/tests/hwids/board_vendor b/data/tests/hwids/board_vendor
+new file mode 100644
+index 0000000..127a591
+--- /dev/null
++++ b/data/tests/hwids/board_vendor
+@@ -0,0 +1 @@
++To be filled by O.E.M.
+diff --git a/data/tests/hwids/chassis_type b/data/tests/hwids/chassis_type
+new file mode 100644
+index 0000000..00750ed
+--- /dev/null
++++ b/data/tests/hwids/chassis_type
+@@ -0,0 +1 @@
++3
+diff --git a/data/tests/hwids/product_family b/data/tests/hwids/product_family
+new file mode 100644
+index 0000000..127a591
+--- /dev/null
++++ b/data/tests/hwids/product_family
+@@ -0,0 +1 @@
++To be filled by O.E.M.
+diff --git a/data/tests/hwids/product_name b/data/tests/hwids/product_name
+new file mode 100644
+index 0000000..127a591
+--- /dev/null
++++ b/data/tests/hwids/product_name
+@@ -0,0 +1 @@
++To be filled by O.E.M.
+diff --git a/data/tests/hwids/product_sku b/data/tests/hwids/product_sku
+new file mode 100644
+index 0000000..e45d663
+--- /dev/null
++++ b/data/tests/hwids/product_sku
+@@ -0,0 +1 @@
++SKU
+diff --git a/data/tests/hwids/sys_vendor b/data/tests/hwids/sys_vendor
+new file mode 100644
+index 0000000..127a591
+--- /dev/null
++++ b/data/tests/hwids/sys_vendor
+@@ -0,0 +1 @@
++To be filled by O.E.M.
+--
+2.13.1
+
Copied: fwupd/repos/community-i686/fix-refresh-crash.patch (from rev 236754, fwupd/trunk/fix-refresh-crash.patch)
===================================================================
--- community-i686/fix-refresh-crash.patch (rev 0)
+++ community-i686/fix-refresh-crash.patch 2017-06-14 11:54:24 UTC (rev 236755)
@@ -0,0 +1,29 @@
+From b38a4fdfd631a800d4171a4eb3e519075755f430 Mon Sep 17 00:00:00 2001
+From: Richard Hughes <richard at hughsie.com>
+Date: Tue, 13 Jun 2017 15:23:58 +0100
+Subject: [PATCH] Fix a crash when refreshing metadata
+
+When processing the file handles it seems g_variant_get() actually wants to
+write the fd integer. This bug does not happen every time, and seems to vanish
+every time under valgrind.
+
+Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1460429
+---
+ src/fu-main.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/fu-main.c b/src/fu-main.c
+index f1fdd68..f9b1973 100644
+--- a/src/fu-main.c
++++ b/src/fu-main.c
+@@ -2087,8 +2087,8 @@ fu_main_daemon_method_call (GDBusConnection *connection, const gchar *sender,
+ gint fd_data;
+ gint fd_sig;
+
+- g_variant_get (parameters, "(&shh)", &id);
+- g_debug ("Called %s(%s)", method_name, id);
++ g_variant_get (parameters, "(&shh)", &id, &fd_data, &fd_sig);
++ g_debug ("Called %s(%s,%i,%i)", method_name, id, fd_data, fd_sig);
+
+ message = g_dbus_method_invocation_get_message (invocation);
+ fd_list = g_dbus_message_get_unix_fd_list (message);
Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD 2017-06-14 11:53:57 UTC (rev 236754)
+++ community-x86_64/PKGBUILD 2017-06-14 11:54:24 UTC (rev 236755)
@@ -1,47 +0,0 @@
-# Maintainer: Bruno Pagani (a.k.a. ArchangeGabriel) <archange at archlinux.org>
-# Contributor: Mirco Tischler <mt-ml at gmx dot de>
-
-pkgname=fwupd
-pkgver=0.9.3
-pkgrel=2
-pkgdesc='A simple daemon to allow session software to update firmware'
-arch=('i686' 'x86_64')
-url='https://github.com/hughsie/fwupd'
-license=('GPL2')
-depends=('appstream-glib' 'fwupdate' 'colord')
-#makedepends=('meson' 'valgrind' 'docbook2x' 'gobject-introspection' 'gtk-doc')
-makedepends=('meson' 'valgrind' 'docbook-utils' 'docbook-sgml' 'perl-sgmls'
- 'gobject-introspection' 'gtk-doc')
-source=(${pkgname}-${pkgver}.tar.gz::"${url}/archive/${pkgver}.tar.gz"
- 'fix-missing-test-files.patch'
- 'fix-failure-without-remote-d.patch')
-sha256sums=('56840998a4a7757ac93732c4a51e203e1fef1497dc98ebc175310b132da2a2cc'
- 'ee2bb86e1efaff2d4ca3f2ed55fd8b685cba2cb40debf1418d4e91e27dba00a7'
- '79a5ffc151067d52ff49af55b851b8bcd0976e47d1751268fb1bdd61b46f5dbe')
-
-prepare() {
- cd ${pkgname}-${pkgver}
- patch -p1 -i ../fix-missing-test-files.patch
- patch -p1 -i ../fix-failure-without-remote-d.patch
-}
-
-build() {
- cd ${pkgname}-${pkgver}
-
- meson --prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --libexecdir=/usr/lib \
- --buildtype=plain \
- ../build
-
- ninja -v -C ../build
-}
-
-check() {
- ninja -C build test
-}
-
-package() {
- DESTDIR="${pkgdir}" ninja -C build install
-}
Copied: fwupd/repos/community-x86_64/PKGBUILD (from rev 236754, fwupd/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2017-06-14 11:54:24 UTC (rev 236755)
@@ -0,0 +1,50 @@
+# Maintainer: Bruno Pagani (a.k.a. ArchangeGabriel) <archange at archlinux.org>
+# Contributor: Mirco Tischler <mt-ml at gmx dot de>
+
+pkgname=fwupd
+pkgver=0.9.3
+pkgrel=3
+pkgdesc='A simple daemon to allow session software to update firmware'
+arch=('i686' 'x86_64')
+url='https://github.com/hughsie/fwupd'
+license=('GPL2')
+depends=('appstream-glib' 'fwupdate' 'colord')
+#makedepends=('meson' 'valgrind' 'docbook2x' 'gobject-introspection' 'gtk-doc')
+makedepends=('meson' 'valgrind' 'docbook-utils' 'docbook-sgml' 'perl-sgmls'
+ 'gobject-introspection' 'gtk-doc')
+source=(${pkgname}-${pkgver}.tar.gz::"${url}/archive/${pkgver}.tar.gz"
+ 'fix-missing-test-files.patch'
+ 'fix-failure-without-remote-d.patch'
+ 'fix-refresh-crash.patch')
+sha256sums=('56840998a4a7757ac93732c4a51e203e1fef1497dc98ebc175310b132da2a2cc'
+ 'ee2bb86e1efaff2d4ca3f2ed55fd8b685cba2cb40debf1418d4e91e27dba00a7'
+ '79a5ffc151067d52ff49af55b851b8bcd0976e47d1751268fb1bdd61b46f5dbe'
+ '0718def1d7572e47822e76d4745971f64c8ec070de6d8778ea9816a218011bb8')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ patch -p1 -i ../fix-missing-test-files.patch
+ patch -p1 -i ../fix-failure-without-remote-d.patch
+ patch -p1 -i ../fix-refresh-crash.patch
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
+
+ meson --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --libexecdir=/usr/lib \
+ --buildtype=plain \
+ ../build
+
+ ninja -v -C ../build
+}
+
+check() {
+ ninja -C build test
+}
+
+package() {
+ DESTDIR="${pkgdir}" ninja -C build install
+}
Deleted: community-x86_64/fix-failure-without-remote-d.patch
===================================================================
--- community-x86_64/fix-failure-without-remote-d.patch 2017-06-14 11:53:57 UTC (rev 236754)
+++ community-x86_64/fix-failure-without-remote-d.patch 2017-06-14 11:54:24 UTC (rev 236755)
@@ -1,23 +0,0 @@
-From f04923ae2ff186a10802c3b236855c612d676fea Mon Sep 17 00:00:00 2001
-From: Richard Hughes <richard at hughsie.com>
-Date: Tue, 13 Jun 2017 10:15:40 +0100
-Subject: [PATCH] trivial: Don't fail to refresh if a remotes.d does not exist
-
-Resolves: https://github.com/hughsie/fwupd/issues/137
----
- libfwupd/fwupd-client.c | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/libfwupd/fwupd-client.c b/libfwupd/fwupd-client.c
-index 1601b2a..814802c 100644
---- a/libfwupd/fwupd-client.c
-+++ b/libfwupd/fwupd-client.c
-@@ -1294,6 +1294,8 @@ fwupd_client_add_remotes_for_path (FwupdClient *client,
- g_autoptr(GDir) dir = NULL;
-
- path_remotes = g_build_filename (path, "remotes.d", NULL);
-+ if (!g_file_test (path_remotes, G_FILE_TEST_EXISTS))
-+ return TRUE;
- dir = g_dir_open (path_remotes, 0, error);
- if (dir == NULL)
- return FALSE;
Copied: fwupd/repos/community-x86_64/fix-failure-without-remote-d.patch (from rev 236754, fwupd/trunk/fix-failure-without-remote-d.patch)
===================================================================
--- community-x86_64/fix-failure-without-remote-d.patch (rev 0)
+++ community-x86_64/fix-failure-without-remote-d.patch 2017-06-14 11:54:24 UTC (rev 236755)
@@ -0,0 +1,23 @@
+From f04923ae2ff186a10802c3b236855c612d676fea Mon Sep 17 00:00:00 2001
+From: Richard Hughes <richard at hughsie.com>
+Date: Tue, 13 Jun 2017 10:15:40 +0100
+Subject: [PATCH] trivial: Don't fail to refresh if a remotes.d does not exist
+
+Resolves: https://github.com/hughsie/fwupd/issues/137
+---
+ libfwupd/fwupd-client.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/libfwupd/fwupd-client.c b/libfwupd/fwupd-client.c
+index 1601b2a..814802c 100644
+--- a/libfwupd/fwupd-client.c
++++ b/libfwupd/fwupd-client.c
+@@ -1294,6 +1294,8 @@ fwupd_client_add_remotes_for_path (FwupdClient *client,
+ g_autoptr(GDir) dir = NULL;
+
+ path_remotes = g_build_filename (path, "remotes.d", NULL);
++ if (!g_file_test (path_remotes, G_FILE_TEST_EXISTS))
++ return TRUE;
+ dir = g_dir_open (path_remotes, 0, error);
+ if (dir == NULL)
+ return FALSE;
Deleted: community-x86_64/fix-missing-test-files.patch
===================================================================
--- community-x86_64/fix-missing-test-files.patch 2017-06-14 11:53:57 UTC (rev 236754)
+++ community-x86_64/fix-missing-test-files.patch 2017-06-14 11:54:24 UTC (rev 236755)
@@ -1,111 +0,0 @@
-From ad9b22480a63225a32f092fc36407586183bd04f Mon Sep 17 00:00:00 2001
-From: Richard Hughes <richard at hughsie.com>
-Date: Wed, 7 Jun 2017 17:08:49 +0100
-Subject: [PATCH] trivial: Fix missing test files
-
-Resolves: https://github.com/hughsie/fwupd/issues/129
----
- data/tests/hwids/bios_major_release | 1 +
- data/tests/hwids/bios_minor_release | 1 +
- data/tests/hwids/bios_vendor | 1 +
- data/tests/hwids/bios_version | 1 +
- data/tests/hwids/board_name | 1 +
- data/tests/hwids/board_vendor | 1 +
- data/tests/hwids/chassis_type | 1 +
- data/tests/hwids/product_family | 1 +
- data/tests/hwids/product_name | 1 +
- data/tests/hwids/product_sku | 1 +
- data/tests/hwids/sys_vendor | 1 +
- 11 files changed, 11 insertions(+)
- create mode 100644 data/tests/hwids/bios_major_release
- create mode 100644 data/tests/hwids/bios_minor_release
- create mode 100644 data/tests/hwids/bios_vendor
- create mode 100644 data/tests/hwids/bios_version
- create mode 100644 data/tests/hwids/board_name
- create mode 100644 data/tests/hwids/board_vendor
- create mode 100644 data/tests/hwids/chassis_type
- create mode 100644 data/tests/hwids/product_family
- create mode 100644 data/tests/hwids/product_name
- create mode 100644 data/tests/hwids/product_sku
- create mode 100644 data/tests/hwids/sys_vendor
-
-diff --git a/data/tests/hwids/bios_major_release b/data/tests/hwids/bios_major_release
-new file mode 100644
-index 0000000..6496923
---- /dev/null
-+++ b/data/tests/hwids/bios_major_release
-@@ -0,0 +1 @@
-+04
-diff --git a/data/tests/hwids/bios_minor_release b/data/tests/hwids/bios_minor_release
-new file mode 100644
-index 0000000..cd672a5
---- /dev/null
-+++ b/data/tests/hwids/bios_minor_release
-@@ -0,0 +1 @@
-+06
-diff --git a/data/tests/hwids/bios_vendor b/data/tests/hwids/bios_vendor
-new file mode 100644
-index 0000000..a591bed
---- /dev/null
-+++ b/data/tests/hwids/bios_vendor
-@@ -0,0 +1 @@
-+American Megatrends Inc.
-diff --git a/data/tests/hwids/bios_version b/data/tests/hwids/bios_version
-new file mode 100644
-index 0000000..44acfeb
---- /dev/null
-+++ b/data/tests/hwids/bios_version
-@@ -0,0 +1 @@
-+1201
-diff --git a/data/tests/hwids/board_name b/data/tests/hwids/board_name
-new file mode 100644
-index 0000000..127a591
---- /dev/null
-+++ b/data/tests/hwids/board_name
-@@ -0,0 +1 @@
-+To be filled by O.E.M.
-diff --git a/data/tests/hwids/board_vendor b/data/tests/hwids/board_vendor
-new file mode 100644
-index 0000000..127a591
---- /dev/null
-+++ b/data/tests/hwids/board_vendor
-@@ -0,0 +1 @@
-+To be filled by O.E.M.
-diff --git a/data/tests/hwids/chassis_type b/data/tests/hwids/chassis_type
-new file mode 100644
-index 0000000..00750ed
---- /dev/null
-+++ b/data/tests/hwids/chassis_type
-@@ -0,0 +1 @@
-+3
-diff --git a/data/tests/hwids/product_family b/data/tests/hwids/product_family
-new file mode 100644
-index 0000000..127a591
---- /dev/null
-+++ b/data/tests/hwids/product_family
-@@ -0,0 +1 @@
-+To be filled by O.E.M.
-diff --git a/data/tests/hwids/product_name b/data/tests/hwids/product_name
-new file mode 100644
-index 0000000..127a591
---- /dev/null
-+++ b/data/tests/hwids/product_name
-@@ -0,0 +1 @@
-+To be filled by O.E.M.
-diff --git a/data/tests/hwids/product_sku b/data/tests/hwids/product_sku
-new file mode 100644
-index 0000000..e45d663
---- /dev/null
-+++ b/data/tests/hwids/product_sku
-@@ -0,0 +1 @@
-+SKU
-diff --git a/data/tests/hwids/sys_vendor b/data/tests/hwids/sys_vendor
-new file mode 100644
-index 0000000..127a591
---- /dev/null
-+++ b/data/tests/hwids/sys_vendor
-@@ -0,0 +1 @@
-+To be filled by O.E.M.
---
-2.13.1
-
Copied: fwupd/repos/community-x86_64/fix-missing-test-files.patch (from rev 236754, fwupd/trunk/fix-missing-test-files.patch)
===================================================================
--- community-x86_64/fix-missing-test-files.patch (rev 0)
+++ community-x86_64/fix-missing-test-files.patch 2017-06-14 11:54:24 UTC (rev 236755)
@@ -0,0 +1,111 @@
+From ad9b22480a63225a32f092fc36407586183bd04f Mon Sep 17 00:00:00 2001
+From: Richard Hughes <richard at hughsie.com>
+Date: Wed, 7 Jun 2017 17:08:49 +0100
+Subject: [PATCH] trivial: Fix missing test files
+
+Resolves: https://github.com/hughsie/fwupd/issues/129
+---
+ data/tests/hwids/bios_major_release | 1 +
+ data/tests/hwids/bios_minor_release | 1 +
+ data/tests/hwids/bios_vendor | 1 +
+ data/tests/hwids/bios_version | 1 +
+ data/tests/hwids/board_name | 1 +
+ data/tests/hwids/board_vendor | 1 +
+ data/tests/hwids/chassis_type | 1 +
+ data/tests/hwids/product_family | 1 +
+ data/tests/hwids/product_name | 1 +
+ data/tests/hwids/product_sku | 1 +
+ data/tests/hwids/sys_vendor | 1 +
+ 11 files changed, 11 insertions(+)
+ create mode 100644 data/tests/hwids/bios_major_release
+ create mode 100644 data/tests/hwids/bios_minor_release
+ create mode 100644 data/tests/hwids/bios_vendor
+ create mode 100644 data/tests/hwids/bios_version
+ create mode 100644 data/tests/hwids/board_name
+ create mode 100644 data/tests/hwids/board_vendor
+ create mode 100644 data/tests/hwids/chassis_type
+ create mode 100644 data/tests/hwids/product_family
+ create mode 100644 data/tests/hwids/product_name
+ create mode 100644 data/tests/hwids/product_sku
+ create mode 100644 data/tests/hwids/sys_vendor
+
+diff --git a/data/tests/hwids/bios_major_release b/data/tests/hwids/bios_major_release
+new file mode 100644
+index 0000000..6496923
+--- /dev/null
++++ b/data/tests/hwids/bios_major_release
+@@ -0,0 +1 @@
++04
+diff --git a/data/tests/hwids/bios_minor_release b/data/tests/hwids/bios_minor_release
+new file mode 100644
+index 0000000..cd672a5
+--- /dev/null
++++ b/data/tests/hwids/bios_minor_release
+@@ -0,0 +1 @@
++06
+diff --git a/data/tests/hwids/bios_vendor b/data/tests/hwids/bios_vendor
+new file mode 100644
+index 0000000..a591bed
+--- /dev/null
++++ b/data/tests/hwids/bios_vendor
+@@ -0,0 +1 @@
++American Megatrends Inc.
+diff --git a/data/tests/hwids/bios_version b/data/tests/hwids/bios_version
+new file mode 100644
+index 0000000..44acfeb
+--- /dev/null
++++ b/data/tests/hwids/bios_version
+@@ -0,0 +1 @@
++1201
+diff --git a/data/tests/hwids/board_name b/data/tests/hwids/board_name
+new file mode 100644
+index 0000000..127a591
+--- /dev/null
++++ b/data/tests/hwids/board_name
+@@ -0,0 +1 @@
++To be filled by O.E.M.
+diff --git a/data/tests/hwids/board_vendor b/data/tests/hwids/board_vendor
+new file mode 100644
+index 0000000..127a591
+--- /dev/null
++++ b/data/tests/hwids/board_vendor
+@@ -0,0 +1 @@
++To be filled by O.E.M.
+diff --git a/data/tests/hwids/chassis_type b/data/tests/hwids/chassis_type
+new file mode 100644
+index 0000000..00750ed
+--- /dev/null
++++ b/data/tests/hwids/chassis_type
+@@ -0,0 +1 @@
++3
+diff --git a/data/tests/hwids/product_family b/data/tests/hwids/product_family
+new file mode 100644
+index 0000000..127a591
+--- /dev/null
++++ b/data/tests/hwids/product_family
+@@ -0,0 +1 @@
++To be filled by O.E.M.
+diff --git a/data/tests/hwids/product_name b/data/tests/hwids/product_name
+new file mode 100644
+index 0000000..127a591
+--- /dev/null
++++ b/data/tests/hwids/product_name
+@@ -0,0 +1 @@
++To be filled by O.E.M.
+diff --git a/data/tests/hwids/product_sku b/data/tests/hwids/product_sku
+new file mode 100644
+index 0000000..e45d663
+--- /dev/null
++++ b/data/tests/hwids/product_sku
+@@ -0,0 +1 @@
++SKU
+diff --git a/data/tests/hwids/sys_vendor b/data/tests/hwids/sys_vendor
+new file mode 100644
+index 0000000..127a591
+--- /dev/null
++++ b/data/tests/hwids/sys_vendor
+@@ -0,0 +1 @@
++To be filled by O.E.M.
+--
+2.13.1
+
Copied: fwupd/repos/community-x86_64/fix-refresh-crash.patch (from rev 236754, fwupd/trunk/fix-refresh-crash.patch)
===================================================================
--- community-x86_64/fix-refresh-crash.patch (rev 0)
+++ community-x86_64/fix-refresh-crash.patch 2017-06-14 11:54:24 UTC (rev 236755)
@@ -0,0 +1,29 @@
+From b38a4fdfd631a800d4171a4eb3e519075755f430 Mon Sep 17 00:00:00 2001
+From: Richard Hughes <richard at hughsie.com>
+Date: Tue, 13 Jun 2017 15:23:58 +0100
+Subject: [PATCH] Fix a crash when refreshing metadata
+
+When processing the file handles it seems g_variant_get() actually wants to
+write the fd integer. This bug does not happen every time, and seems to vanish
+every time under valgrind.
+
+Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1460429
+---
+ src/fu-main.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/fu-main.c b/src/fu-main.c
+index f1fdd68..f9b1973 100644
+--- a/src/fu-main.c
++++ b/src/fu-main.c
+@@ -2087,8 +2087,8 @@ fu_main_daemon_method_call (GDBusConnection *connection, const gchar *sender,
+ gint fd_data;
+ gint fd_sig;
+
+- g_variant_get (parameters, "(&shh)", &id);
+- g_debug ("Called %s(%s)", method_name, id);
++ g_variant_get (parameters, "(&shh)", &id, &fd_data, &fd_sig);
++ g_debug ("Called %s(%s,%i,%i)", method_name, id, fd_data, fd_sig);
+
+ message = g_dbus_method_invocation_get_message (invocation);
+ fd_list = g_dbus_message_get_unix_fd_list (message);
More information about the arch-commits
mailing list