Commit Graph

2249 Commits

Author SHA1 Message Date
Richard Hughes
8a6fdf8e18 dell: Don't crash when the alternate device has not been set
I don't think this is possible, but it's the right thing to do...
2018-06-22 13:28:27 +01:00
Richard Hughes
80b2c237c2 dell: Don't show '(null)' as the product name in the self tests 2018-06-22 13:28:27 +01:00
Mario Limonciello
303cfe0294 Move Fedora CI to fedora 28
This is to easily get the updated efivar 33 dependency
2018-06-22 09:59:06 +01:00
Richard Hughes
eeb8017a29 trivial: Remove unused variable in private struct 2018-06-21 21:43:21 +01:00
Richard Hughes
7039b4efe4 unifying: Fix failure to detach when using a slow host controller
Some USB 3.0 Host Controllers are super slow to re-enumerate, one AMD 43b9 chip
being measured at over 7000ms (!) for a simple soft-replug. This also explains
the various device_detach() failures seen on the LVFS for Logitech firmware.
2018-06-20 20:48:54 +01:00
Richard Hughes
0c5415665f Add COMMITMENT file as part of GPL Common Cure Rights Commitment
This is part of more broader commitment Red Hat along with IBM, Google, and
Facebook made in November 2017.

More on this can be found online:

https://www.redhat.com/en/blog/fostering-greater-open-source-development &
https://www.redhat.com/en/about/gplv3-enforcement-statement
2018-06-18 16:09:54 +01:00
Richard Hughes
dbd8c76eb8 Run a plugin vfunc before and after all the composite devices are updated
Now we can update multiple devices (in multiple plugins) using one firmware
archive we need a way to cleanup after all the plugins have been run.

Fixes https://github.com/hughsie/fwupd/issues/561
2018-06-18 16:06:15 +01:00
Richard Hughes
aa1ed47f06 wacomhid: Set the device status when erasing and writing firmware 2018-06-15 13:42:52 +01:00
Mario Limonciello
5a8581e4e7 trivial: Correct the install task ordering
With some instrumented testing I was finding that without
FWUPD_DEVICE_FLAG_INSTALL_PARENT_FIRST being set that the parent
was installing first.
2018-06-14 16:09:57 -05:00
Richard Hughes
61ac08d6d5 trivial: Allow firmware files to select a quad version format
This can be used to select the AA.BB.CC.DD format rather than the default
AA.BB.CCDD format for firmware versions. This allows us to support new vendor
requirements without adding more complicated rules to the quirk file.
2018-06-14 14:56:47 +01:00
Mario Limonciello
8bda7ccae8 trivial: snap: sync up changes to master snap 2018-06-12 12:03:17 -05:00
Mario Limonciello
352f2c9b49 trivial: snap: fix bash completion
Since the snap is named fwupd, fwupdtool gets namespaced as
fwupd.fwupdtool so bash completion doesn't work properly.

Add a step to fixup bash completion paths
2018-06-12 12:02:41 -05:00
Mario Limonciello
71043aba39 trivial: Don't enable pkcs7 tests unless tests are enabled
Fixes:

src/meson.build:22:2: ERROR:  Unknown variable "colorhug_pkcs7_signature".

with -Dpcs7=true, -Dtests=false
2018-06-11 14:22:08 -05:00
Mario Limonciello
cf63aecdaf fu-engine: Don't hardcode /etc/pki/fwupd-metadata 2018-06-11 14:22:08 -05:00
Mario Limonciello
e49cce5187 trivial: snap: strip some more items out 2018-06-11 14:22:08 -05:00
Richard Hughes
0a7e590e22 wacomhid: Support more tablets
These are untested, but use the same HID protocol for flashing.
2018-06-11 09:04:39 +01:00
Mario Limonciello
b72aa8c813 fu-tool: Show errors if unable to access directory
When running in the sandbox this will make it more apparent why files
couldn't be opened.
2018-06-08 16:41:08 -05:00
Mario Limonciello
90b3be33eb snap: use the 'home' interface to allow snap to access CABs in $HOME
This matches the similar flatpak commit to allow easier consumption
of CAB files manually downloaded from LVFS
2018-06-08 16:41:08 -05:00
Mario Limonciello
f8cb836d60 flatpak: Enable bind mount for xdg-download-dir (Closes: #555)
This makes it easier to install CAB files downloaded from LVFS
via your web browser.
2018-06-08 16:41:08 -05:00
Mario Limonciello
b1503e96da trivial: debian: Add bash-completion to debian/control 2018-06-07 09:35:44 -05:00
Mario Limonciello
0fdf5aec81 trivial: debian: Correct debian copyright for license changes 2018-06-07 09:35:40 -05:00
Richard Hughes
6d645c7d2d trivial: post release version bump 2018-06-07 13:28:59 +01:00
Richard Hughes
40a6b1f619 Release fwupd 1.0.8 2018-06-07 13:26:12 +01:00
Richard Hughes
da08b5a048 colorhug: Remove the bootloader flag when re-booting in runtime mode
This needs to be fixed properly, and will be addressed in a future PR.
2018-06-07 12:10:22 +01:00
Mario Limonciello
bb1cb5af35 trivial: snap: Update the mime information
Fixes installation from CAB files in devmode
(although they need to be placed in the ratherintuitive directory
/root/snap/fwupdtool/common/ for now)
2018-06-06 17:37:37 -05:00
Mario Limonciello
2a327154c2 trivial: snap: switch to devmode instead of classic
Per discussion in trying to get classic snap approved, snap security
audience would rather see all interfaces used by fwupd added into
snapd interfaces so proper confinement works.

This will require devmode for now until that has occurred.
2018-06-06 14:42:30 -05:00
Mario Limonciello
3f9a1c182a Clean up plugins as the last step of engine cleanup (Closes: #550)
Fixes a segfault that occurs during cleanup of USB plugins.

When g_module_close was called memory allocated by the plugin would
get freed leading to the finalize method for object class pointing
to garbage.
2018-06-06 14:39:03 -05:00
Mario Limonciello
982e74dba6 trivial: for snap/flatpak use the libsmbios 2.4.2 release 2018-06-06 16:48:05 +01:00
Piotr Drąg
472fa59b5f trivial: Fix typo in “Watch for hardare changes” 2018-06-06 14:53:51 +01:00
Richard Hughes
a3d20729e0 trivial: Store minimized translations in git
There's no point storing the file line number in the translations, as adding a
single line in the source file will cause thousands of lines to be changed
every time we update the translated strings.

In a similar way, there's no point storing not-yet-translated strings in
the .po files when all the source strings are stored on Transifex.

This should mean we have a much more useful diff output when looking at the release.
2018-06-06 08:52:45 +01:00
Mario Limonciello
f6689b8144 trivial: snap: don't build dep on xmlto
Not needed, and speeds up builds quite a bit since it doesn't pull
in the latex stack.
2018-06-05 11:33:26 -05:00
Mario Limonciello
dfb87c51c9 trivial: synapticsmst: drop efivar dep 2018-06-04 20:00:07 -05:00
Mario Limonciello
2b1e80e79a trivial: snap: use fwupdate 11 git until fwupdate 12 release is out 2018-06-04 12:01:27 -05:00
Mario Limonciello
eafc35391c trivial: snap: build libusb and libgusb against stable releases 2018-06-04 12:01:27 -05:00
Mario Limonciello
71515d6a9c trivial: snap: Split up to a snapcraft.yaml for stable and unstable builds
This allows easily building all the dependencies but makes snaps more
likely to be stable.
2018-06-04 12:01:27 -05:00
Mario Limonciello
84f2048697 trivial: snap: Add a README 2018-06-04 12:01:27 -05:00
Richard Hughes
872ec1b68f Add an experimental plugin to update some new Wacom tablets 2018-06-04 11:29:29 +01:00
Richard Hughes
445afbf62c trivial: Don't copy the git dir when building a flatpak 2018-06-04 09:40:28 +01:00
Richard Hughes
0b522aef96 colorhug: Do not require libcolorhug to build
Requiring colord to be built before fwupd makes it hard to build packages.

The HID-based flashing protocol is stable and documented, so there's no need
to use an external library for this now.
2018-06-02 21:43:20 +01:00
Richard Hughes
5171a64a33 flatpak: Use the local directory when building fwupd 2018-06-02 21:05:14 +01:00
Mario Limonciello
e1a39e6191 trivial: snap: Cache the correct giomodules
Fixes:
'g_io_module_load': /usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so: undefined symbol: g_io_module_load
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so
'g_io_module_load': /usr/lib/x86_64-linux-gnu/gio/modules/libgiolibproxy.so: undefined symbol: g_io_module_load
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgiolibproxy.so
'g_io_module_load': /usr/lib/x86_64-linux-gnu/gio/modules/libgiognomeproxy.so: undefined symbol: g_io_module_load
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgiognomeproxy.so
2018-06-01 16:43:50 -05:00
Mario Limonciello
da052c88ec trivial: gitignore another snapcraft file 2018-06-01 16:43:50 -05:00
Mario Limonciello
f290bcce1a trivial: snap: make snap/ a directory instead of symlink
This was causing stray files to end up in /snap directory of the snap
2018-06-01 16:43:50 -05:00
Mario Limonciello
84e6afde9d trivial: snap: build gudev in as well
The one in Ubuntu core 16 is ancient
2018-06-01 16:43:50 -05:00
Richard Hughes
121aa439b9 trivial: Use the correct branch when building a flatpak bundle 2018-06-01 15:56:12 +01:00
Richard Hughes
7e683c96eb trivial: Use the non-sourceforge libusb download location 2018-05-31 21:39:24 +01:00
Mario Limonciello
7ff2a2ced6 trivial: remove some unneeded build deps for snap build 2018-05-31 15:14:19 -05:00
Mario Limonciello
0238a9b2f2 Add support for creating snaps
They can be built one of three ways:
* Through Travis CI (Add to the OS matrix)
* Through build.snapcraft.io
* Locally (snapcraft cleanbuild)
2018-05-31 14:12:06 -05:00
Richard Hughes
7a874176ff trivial: Add a FuDevice flag to show the device is in bootloader mode
This is useful to present to the user using the command line, and means each
FuDevice-deriving object does not have to handle this.
2018-05-31 18:50:19 +01:00
Richard Hughes
4be17d1364 Add support for relocating various runtime paths
This allows a snap package to be easily built.

With much help from Mario Limonciello <mario.limonciello@dell.com>, many thanks.
2018-05-31 16:25:22 +01:00