diff -Nru fwupd-1.2.4/.circleci/config.yml fwupd-1.2.5/.circleci/config.yml --- fwupd-1.2.4/.circleci/config.yml 1970-01-01 00:00:00.000000000 +0000 +++ fwupd-1.2.5/.circleci/config.yml 2019-02-25 09:42:18.000000000 +0000 @@ -0,0 +1,64 @@ +version: 2 +jobs: + build: + docker: + - image: cibuilds/snapcraft:stable + steps: + - checkout + - run: + name: "Update apt" + command: apt update + - run: + name: "Build Snap" + command: snapcraft + - persist_to_workspace: + root: . + paths: + - "*.snap" + + publish-edge: + docker: + - image: cibuilds/snapcraft:stable + steps: + - attach_workspace: + at: . + - run: + name: "Publish to Store" + command: | + mkdir .snapcraft + echo $SNAPCRAFT_LOGIN_FILE | base64 --decode --ignore-garbage > .snapcraft/snapcraft.cfg + snapcraft push *.snap --release edge + + publish-stable: + docker: + - image: cibuilds/snapcraft:stable + steps: + - attach_workspace: + at: . + - run: + name: "Publish to Store" + command: | + mkdir .snapcraft + echo $SNAPCRAFT_LOGIN_FILE | base64 --decode --ignore-garbage > .snapcraft/snapcraft.cfg + snapcraft push *.snap --release stable + +workflows: + version: 2 + main: + jobs: + - build + - publish-edge: + requires: + - build + filters: + branches: + only: master + - publish-stable: + requires: + - build + filters: + branches: + ignore: /.*/ + tags: + only: /^\d+\.\d+\.\d+$/ + diff -Nru fwupd-1.2.4/contrib/ci/debian_s390x.sh fwupd-1.2.5/contrib/ci/debian_s390x.sh --- fwupd-1.2.4/contrib/ci/debian_s390x.sh 2019-02-01 14:28:36.000000000 +0000 +++ fwupd-1.2.5/contrib/ci/debian_s390x.sh 2019-02-25 09:42:18.000000000 +0000 @@ -3,6 +3,12 @@ set -x export LC_ALL=C.UTF-8 + +#evaluate using Debian's build flags +eval "$(dpkg-buildflags --export=sh)" +#filter out -Bsymbolic-functions +export LDFLAGS=$(dpkg-buildflags --get LDFLAGS | sed "s/-Wl,-Bsymbolic-functions\s//") + rm -rf build mkdir -p build cp contrib/ci/s390x_cross.txt build/ @@ -12,7 +18,6 @@ --werror \ -Dplugin_uefi=false \ -Dplugin_dell=false \ - -Dplugin_nvme=false \ -Dplugin_redfish=false \ -Dintrospection=false \ -Dgtkdoc=false \ diff -Nru fwupd-1.2.4/contrib/ci/dependencies.xml fwupd-1.2.5/contrib/ci/dependencies.xml --- fwupd-1.2.4/contrib/ci/dependencies.xml 2019-02-01 14:28:36.000000000 +0000 +++ fwupd-1.2.5/contrib/ci/dependencies.xml 2019-02-25 09:42:18.000000000 +0000 @@ -174,14 +174,14 @@ - (>= 10.3) + (>= 11) - (>= 10.3) + (>= 11) @@ -554,18 +554,18 @@ libxmlb-devel - - + org.freedesktop.fwupd CC0-1.0 LGPL-2.0+ @@ -31,6 +31,29 @@ moderate + + +

This release adds the following features:

+
    +
  • Allow a device to be updated using more than one plugin
  • +
  • Report the DeviceInstanceIDs from fwupdmgr when run as root
  • +
+

This release fixes the following bugs:

+
    +
  • Add an extra check for Dell NVMe drives to avoid false positives
  • +
  • Call composite prepare and cleanup using fwupdtool
  • +
  • Correct handling of CAB files with nested directories
  • +
  • Detect and special case Dell ATA hardware
  • +
  • Do not fail fwupdtool if dbus is unavailable
  • +
  • Do not unconditionally enable Werror for the EFI binary
  • +
  • Fill holes when reading SREC files
  • +
  • Filter the last supported payloads of certain Dell docks
  • +
  • Fix flashing failure with latest Intuos Pro tablet
  • +
  • Fix potential segfault when applying UEFI updates
  • +
  • Fix unifying regression when recovering from failed flash
  • +
+
+

This release adds the following features:

diff -Nru fwupd-1.2.4/data/org.freedesktop.fwupd.svg fwupd-1.2.5/data/org.freedesktop.fwupd.svg --- fwupd-1.2.4/data/org.freedesktop.fwupd.svg 1970-01-01 00:00:00.000000000 +0000 +++ fwupd-1.2.5/data/org.freedesktop.fwupd.svg 2019-02-25 09:42:18.000000000 +0000 @@ -0,0 +1,209 @@ + + + + Adwaita Icon Template + + + + + + + + + + + image/svg+xml + + + + GNOME Design Team + + + + + Adwaita Icon Template + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + fwupd + firmwareupdater + diff -Nru fwupd-1.2.4/data/remotes.d/lvfs.metainfo.xml fwupd-1.2.5/data/remotes.d/lvfs.metainfo.xml --- fwupd-1.2.4/data/remotes.d/lvfs.metainfo.xml 2019-02-01 14:28:36.000000000 +0000 +++ fwupd-1.2.5/data/remotes.d/lvfs.metainfo.xml 2019-02-25 09:42:18.000000000 +0000 @@ -4,7 +4,7 @@ org.freedesktop.fwupd.remotes.lvfs Linux Vendor Firmware Service (stable firmware) - CC0 + CC0-1.0 diff -Nru fwupd-1.2.4/data/remotes.d/lvfs-testing.metainfo.xml fwupd-1.2.5/data/remotes.d/lvfs-testing.metainfo.xml --- fwupd-1.2.4/data/remotes.d/lvfs-testing.metainfo.xml 2019-02-01 14:28:36.000000000 +0000 +++ fwupd-1.2.5/data/remotes.d/lvfs-testing.metainfo.xml 2019-02-25 09:42:18.000000000 +0000 @@ -4,7 +4,7 @@ org.freedesktop.fwupd.remotes.lvfs-testing Linux Vendor Firmware Service (testing firmware) - CC0 + CC0-1.0 diff -Nru fwupd-1.2.4/debian/changelog fwupd-1.2.5/debian/changelog --- fwupd-1.2.4/debian/changelog 2019-02-15 14:06:55.000000000 +0000 +++ fwupd-1.2.5/debian/changelog 2019-02-26 22:30:52.000000000 +0000 @@ -1,3 +1,10 @@ +fwupd (1.2.5-1) unstable; urgency=medium + + * New upstream version (1.2.5) + * Drop all patches, upstream + + -- Mario Limonciello Tue, 26 Feb 2019 16:30:52 -0600 + fwupd (1.2.4-3) unstable; urgency=medium * Backport a patch from master that fixes FTBFS with newer glib diff -Nru fwupd-1.2.4/debian/compat fwupd-1.2.5/debian/compat --- fwupd-1.2.4/debian/compat 2019-02-15 14:05:53.000000000 +0000 +++ fwupd-1.2.5/debian/compat 2019-02-26 22:30:52.000000000 +0000 @@ -1 +1 @@ -10 +11 diff -Nru fwupd-1.2.4/debian/control fwupd-1.2.5/debian/control --- fwupd-1.2.4/debian/control 2019-02-15 14:06:55.000000000 +0000 +++ fwupd-1.2.5/debian/control 2019-02-26 22:30:52.000000000 +0000 @@ -8,7 +8,7 @@ Build-Depends: bash-completion, bubblewrap, - debhelper (>= 10.3), + debhelper (>= 11), dh-strip-nondeterminism, fontconfig, fonts-noto, @@ -52,10 +52,9 @@ systemd (>= 231), udev, umockdev, - uuid-dev, valac, valgrind [!ia64 !riscv64 !x32 !mips !sparc64 !sh4 !ppc64 !powerpcspe !hppa !alpha !mips64el !armhf !armel !mipsel !m68k], -Standards-Version: 4.1.4 +Standards-Version: 4.3.0 Section: admin Homepage: https://github.com/hughsie/fwupd Vcs-Git: https://salsa.debian.org/efi-team/fwupd.git diff -Nru fwupd-1.2.4/debian/control.in fwupd-1.2.5/debian/control.in --- fwupd-1.2.4/debian/control.in 2019-02-15 14:05:53.000000000 +0000 +++ fwupd-1.2.5/debian/control.in 2019-02-26 22:30:52.000000000 +0000 @@ -6,7 +6,7 @@ Matthias Klumpp , Mario Limonciello Build-Depends: %%%DYNAMIC%%% -Standards-Version: 4.1.4 +Standards-Version: 4.3.0 Section: admin Homepage: https://github.com/hughsie/fwupd Vcs-Git: https://salsa.debian.org/efi-team/fwupd.git diff -Nru fwupd-1.2.4/debian/fwupd.install fwupd-1.2.5/debian/fwupd.install --- fwupd-1.2.4/debian/fwupd.install 2019-02-15 14:05:53.000000000 +0000 +++ fwupd-1.2.5/debian/fwupd.install 2019-02-26 22:30:52.000000000 +0000 @@ -4,6 +4,7 @@ usr/share/bash-completion usr/share/fwupd/* usr/share/dbus-1/* +usr/share/icons/* usr/share/polkit-1/* usr/share/locale usr/share/metainfo/* diff -Nru fwupd-1.2.4/debian/libfwupd2.symbols fwupd-1.2.5/debian/libfwupd2.symbols --- fwupd-1.2.4/debian/libfwupd2.symbols 2019-02-15 14:05:53.000000000 +0000 +++ fwupd-1.2.5/debian/libfwupd2.symbols 2019-02-26 22:30:52.000000000 +0000 @@ -23,6 +23,7 @@ LIBFWUPD_1.2.1@LIBFWUPD_1.2.1 1.2.1 LIBFWUPD_1.2.2@LIBFWUPD_1.2.2 1.2.2 LIBFWUPD_1.2.4@LIBFWUPD_1.2.4 1.2.4 + LIBFWUPD_1.2.5@LIBFWUPD_1.2.5 1.2.5 fwupd_build_history_report_json@LIBFWUPD_1.0.4 1.0.4 fwupd_build_machine_id@LIBFWUPD_1.0.4 1.0.4 fwupd_build_user_agent@LIBFWUPD_1.0.3 1.0.3 @@ -59,6 +60,7 @@ fwupd_device_add_flag@LIBFWUPD_0.9.3 1.0.0 fwupd_device_add_guid@LIBFWUPD_0.9.3 1.0.0 fwupd_device_add_icon@LIBFWUPD_0.9.8 1.0.0 + fwupd_device_add_instance_id@LIBFWUPD_1.2.5 1.2.5 fwupd_device_add_release@LIBFWUPD_0.9.8 1.0.0 fwupd_device_compare@LIBFWUPD_1.1.1 1.1.1 fwupd_device_flag_from_string@LIBFWUPD_0.7.0 1.0.0 @@ -74,6 +76,7 @@ fwupd_device_get_icons@LIBFWUPD_0.9.8 1.0.0 fwupd_device_get_id@LIBFWUPD_0.9.3 1.0.0 fwupd_device_get_install_duration@LIBFWUPD_1.1.3 1.1.3 + fwupd_device_get_instance_ids@LIBFWUPD_1.2.5 1.2.5 fwupd_device_get_modified@LIBFWUPD_0.9.3 1.0.0 fwupd_device_get_name@LIBFWUPD_0.9.3 1.0.0 fwupd_device_get_parent@LIBFWUPD_1.0.8 1.0.8 @@ -94,6 +97,7 @@ fwupd_device_get_version_lowest@LIBFWUPD_0.9.3 1.0.0 fwupd_device_has_flag@LIBFWUPD_0.9.3 1.0.0 fwupd_device_has_guid@LIBFWUPD_0.9.3 1.0.0 + fwupd_device_has_instance_id@LIBFWUPD_1.2.5 1.2.5 fwupd_device_incorporate@LIBFWUPD_1.1.0 1.1.0 fwupd_device_new@LIBFWUPD_0.9.3 1.0.0 fwupd_device_remove_flag@LIBFWUPD_0.9.3 1.0.0 @@ -125,6 +129,11 @@ fwupd_error_quark@LIBFWUPD_0.1.1 1.0.0 fwupd_error_to_string@LIBFWUPD_0.7.0 1.0.0 fwupd_get_os_release@LIBFWUPD_1.0.7 1.0.7 + fwupd_guid_from_string@LIBFWUPD_1.2.5 1.2.5 + fwupd_guid_hash_data@LIBFWUPD_1.2.5 1.2.5 + fwupd_guid_hash_string@LIBFWUPD_1.2.5 1.2.5 + fwupd_guid_is_valid@LIBFWUPD_1.2.5 1.2.5 + fwupd_guid_to_string@LIBFWUPD_1.2.5 1.2.5 fwupd_keyring_kind_from_string@LIBFWUPD_0.9.7 1.0.0 fwupd_keyring_kind_to_string@LIBFWUPD_0.9.7 1.0.0 fwupd_release_add_checksum@LIBFWUPD_0.9.3 1.0.0 diff -Nru fwupd-1.2.4/debian/lintian/fwupd fwupd-1.2.5/debian/lintian/fwupd --- fwupd-1.2.4/debian/lintian/fwupd 2019-02-15 14:05:53.000000000 +0000 +++ fwupd-1.2.5/debian/lintian/fwupd 2019-02-26 22:30:52.000000000 +0000 @@ -4,3 +4,5 @@ fwupd binary: systemd-service-file-missing-install-key lib/systemd/system/system-update.target.wants/fwupd-offline-update.service #see debian bug 896012 fwupd: library-not-linked-against-libc usr/lib/*/fwupd-plugins-3/libfu_plugin_upower.so +#EFI applications are PE executables +fwupd: executable-not-elf-or-script usr/lib/fwupd/efi/*.efi diff -Nru fwupd-1.2.4/debian/patches/0001-Fix-the-self-tests-when-using-glib2-2.59.0.patch fwupd-1.2.5/debian/patches/0001-Fix-the-self-tests-when-using-glib2-2.59.0.patch --- fwupd-1.2.4/debian/patches/0001-Fix-the-self-tests-when-using-glib2-2.59.0.patch 2019-02-15 14:05:51.000000000 +0000 +++ fwupd-1.2.5/debian/patches/0001-Fix-the-self-tests-when-using-glib2-2.59.0.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,101 +0,0 @@ -From b1d1c3b0890481c4f838caf1e2cde76b55b983c8 Mon Sep 17 00:00:00 2001 -From: Richard Hughes -Date: Sat, 2 Feb 2019 13:04:44 +0000 -Subject: [PATCH] Fix the self tests when using glib2 >=2.59.0 - -Replace the non-breaking space with a traditional space rather than changing -the expected output with #ifdef to allow running the tests with a daemon -compiled against an older glib2 version. ---- - libfwupd/fwupd-self-test.c | 61 +++++++++++++++++++++++++++++++++++++++++++++- - 1 file changed, 60 insertions(+), 1 deletion(-) - -diff --git a/libfwupd/fwupd-self-test.c b/libfwupd/fwupd-self-test.c -index c0ee284..68395e4 100644 ---- a/libfwupd/fwupd-self-test.c -+++ b/libfwupd/fwupd-self-test.c -@@ -43,6 +43,60 @@ fu_test_compare_lines (const gchar *txt1, const gchar *txt2, GError **error) - return FALSE; - } - -+/* https://gitlab.gnome.org/GNOME/glib/issues/225 */ -+static guint -+_g_string_replace (GString *string, const gchar *search, const gchar *replace) -+{ -+ gchar *tmp; -+ guint count = 0; -+ gsize search_idx = 0; -+ gsize replace_len; -+ gsize search_len; -+ -+ g_return_val_if_fail (string != NULL, 0); -+ g_return_val_if_fail (search != NULL, 0); -+ g_return_val_if_fail (replace != NULL, 0); -+ -+ /* nothing to do */ -+ if (string->len == 0) -+ return 0; -+ -+ search_len = strlen (search); -+ replace_len = strlen (replace); -+ -+ do { -+ tmp = g_strstr_len (string->str + search_idx, -1, search); -+ if (tmp == NULL) -+ break; -+ -+ /* advance the counter in case @replace contains @search */ -+ search_idx = (gsize) (tmp - string->str); -+ -+ /* reallocate the string if required */ -+ if (search_len > replace_len) { -+ g_string_erase (string, -+ (gssize) search_idx, -+ (gssize) (search_len - replace_len)); -+ memcpy (tmp, replace, replace_len); -+ } else if (search_len < replace_len) { -+ g_string_insert_len (string, -+ (gssize) search_idx, -+ replace, -+ (gssize) (replace_len - search_len)); -+ /* we have to treat this specially as it could have -+ * been reallocated when the insertion happened */ -+ memcpy (string->str + search_idx, replace, replace_len); -+ } else { -+ /* just memcmp in the new string */ -+ memcpy (tmp, replace, replace_len); -+ } -+ search_idx += replace_len; -+ count++; -+ } while (TRUE); -+ -+ return count; -+} -+ - static void - fwupd_enums_func (void) - { -@@ -211,6 +265,7 @@ fwupd_device_func (void) - g_autoptr(FwupdDevice) dev = NULL; - g_autoptr(FwupdRelease) rel = NULL; - g_autoptr(GError) error = NULL; -+ g_autoptr(GString) str_ascii = NULL; - - /* create dummy object */ - dev = fwupd_device_new (); -@@ -243,7 +298,11 @@ fwupd_device_func (void) - g_assert (fwupd_device_has_guid (dev, "00000000-0000-0000-0000-000000000000")); - g_assert (!fwupd_device_has_guid (dev, "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")); - -- ret = fu_test_compare_lines (str, -+ /* convert the new non-breaking space back into a normal space: -+ * https://gitlab.gnome.org/GNOME/glib/commit/76af5dabb4a25956a6c41a75c0c7feeee74496da */ -+ str_ascii = g_string_new (str); -+ _g_string_replace (str_ascii, " ", " "); -+ ret = fu_test_compare_lines (str_ascii->str, - "ColorHug2\n" - " DeviceId: USB:foo\n" - " Guid: 2082b5e0-7a64-478a-b1b2-e3404fab6dad\n" --- -2.7.4 - diff -Nru fwupd-1.2.4/debian/patches/0001-trivial-contrib-debian-use-libxmlb-from-Debian-archi.patch fwupd-1.2.5/debian/patches/0001-trivial-contrib-debian-use-libxmlb-from-Debian-archi.patch --- fwupd-1.2.4/debian/patches/0001-trivial-contrib-debian-use-libxmlb-from-Debian-archi.patch 2019-02-15 14:05:53.000000000 +0000 +++ fwupd-1.2.5/debian/patches/0001-trivial-contrib-debian-use-libxmlb-from-Debian-archi.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,38 +0,0 @@ -From cddb434b2d5d7490a3de1ecdd2885bb8688b0ab3 Mon Sep 17 00:00:00 2001 -From: Mario Limonciello -Date: Wed, 6 Feb 2019 20:40:08 -0600 -Subject: [PATCH] trivial: contrib/debian: use libxmlb from Debian archives - ---- - contrib/ci/dependencies.xml | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/contrib/ci/dependencies.xml b/contrib/ci/dependencies.xml -index e96cacd..95347c7 100644 ---- a/contrib/ci/dependencies.xml -+++ b/contrib/ci/dependencies.xml -@@ -554,18 +554,18 @@ - - libxmlb-devel - --