Commit Graph

2860 Commits

Author SHA1 Message Date
Richard Hughes
e7cd293893 trivial: Move the prefixed paths further up the meson build file 2018-06-27 12:52:04 +01:00
Richard Hughes
82747821f8 trivial: Enable bash completion in the example spec file 2018-06-27 12:52:00 +01:00
Richard Hughes
aa05cdf92c trivial: Fix the flatpak build 2018-06-27 10:40:05 +01:00
Richard Hughes
04d6965a14 ebitdo: Do not use bootloader commands after a successful flash and reboot
We need to remove the flag if the quirk is not present.

Fixes the cosmetic-but-scary-looking 'failed to send to device on ep 0x01: USB
error on device 2dc8:9001 : Input/output error'.

Fixes the other half of https://github.com/hughsie/fwupd/issues/565
2018-06-26 14:12:02 +01:00
Richard Hughes
2efb992e52 Fix flashing devices that require a manual replug
We were looking for 'active' and 'old' devices with a specific ID. Due to a
copy and paste thinko we were actually matching the active list twice,
triggering the 'device ID was not unique' failure.

Fixes half of https://github.com/hughsie/fwupd/issues/565
2018-06-26 14:12:02 +01:00
Richard Hughes
d99190f626 wacomhid: Use the parent device name for sub-modules 2018-06-25 17:12:44 +01:00
Mario Limonciello
4910b244d1 trivial: Do not notify plugins for their "own" device registrations 2018-06-24 07:18:04 +01:00
Mario Limonciello
2d9bcf463f trivial: uefi: update the comment for _efi_get_variable_exists
The commit was merged in 0b3d29d2d8
which landed in efivar 35.
2018-06-24 06:53:24 +01:00
Richard Hughes
3aec0e51ed trivial: Branch for 1.1.x
Given we're planning bigger changes, it seems sensible to branch now.
2018-06-23 10:43:36 +01:00
Richard Hughes
e48351e260 Set the alternate device ID, not the object itself
If the daemon either de-duplicates or replaces the object passed emitted from
device-added then the object set as the alternate may not be the same instance
as the daemon version. This causes weird things to happen.

To make this less fragile, specify the *ID* of the object that should be the
alternate device, which allows the daemon to do clever things, and then assign
the object from the ID as the last step.

Although fixing no bug, this makes implementing future functionality easier.
2018-06-22 13:28:27 +01:00
Richard Hughes
1107fa4c9a dell: Do not rely of the order the devices are added in the self tests
Get the TPM v2.0 and v1.2 devices explictly rather than assuming the non-alt
device is always added first. This has the side effect of making the tests
easier to read and means we can check the dock components more carefully.
2018-06-22 13:28:27 +01:00
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