Renaud Métrich
31a0bc7daf
ata: Add OUI quirk for Toshiba
2020-11-21 08:47:23 -06:00
Mario Limonciello
2f49da7f4e
libfwupd: Restore recognizing gpg and pkcs7 types still
...
The snap-store intends to ship an updated libfwupd library but
to use it with whatever version daemon is on the host system.
This means that the library needs to still work with older metadata
signing types.
This fixes the following error in that scenario:
```Failed to update metadata for lvfs: Keyring kind jcat not supported```
2020-11-21 07:37:36 -06:00
Richard Hughes
23f9cca6b4
trivial: Fix regression on uploading reports without a signature
2020-11-20 10:44:54 +00:00
Richard Hughes
8b035b01fe
trivial: Add device tests for the Dell KH08P
2020-11-20 09:59:15 +00:00
Richard Hughes
d99f74f0b7
Revert "bcm57xx: Use PCI function 1 as 0 does not work with the Dell KH08P"
...
This reverts commit b5eddee5f6
.
Using pci function 0 works on my Lenovo P50 but not my Lenovo X1. Don't break
machines where we are shipping the chip rather than ones where we probably are
not, especially when it's probably a kernel bug somewhere.
Fixes https://github.com/fwupd/fwupd/issues/2608
2020-11-20 09:54:34 +00:00
Richard Hughes
173d389fa5
Register the SoupSession gtype when required
...
This allows old gnome-software clients to work with new fwupd versions.
2020-11-19 19:39:37 +00:00
Mario Limonciello
487a391c47
trivial: add libsoup in for ABI checking
...
This patch should be reverted after switching from libcurl to
libsoup
2020-11-19 19:39:37 +00:00
Richard Hughes
3a73c342ba
Switch from libsoup to libcurl
...
The former drags on glib-networking and then gsettings-desktop-schemas, which
add over 5Mb to the minimal IoT and CoreOS composes. Everything already uses
libcurl (even NetworkManager!) and so this is an easy way to reduce image size.
2020-11-19 19:39:37 +00:00
Richard Hughes
a6e6085365
trivial: Use a non-obsolete Fedora version for the Windows build
2020-11-19 19:39:37 +00:00
Richard Hughes
1a14d2be00
Fix sync method when called from threads without a context
...
Set the thread-default context for the current thread before performing the
async operation.
Hopefully fixes https://github.com/fwupd/fwupd/issues/2600
2020-11-19 16:12:52 +00:00
Mario Limonciello
423270e98b
trivial: explicitly install missing dependencies in ubuntu.sh
...
If a new dependency is added but not present in the container,
`debian.sh` will abort trying to use packaging, which will cause
`ubuntu.sh` to executed. Rather than fail the build, try to
install anything missing.
This helps with the split CI where the containers are re-generated
nightly.
2020-11-18 12:34:19 -06:00
Mario Limonciello
ddfde41784
trivial: bind mount checkout for ubuntu build
2020-11-18 06:47:57 -06:00
Mario Limonciello
afc2220005
trivial: drop stale Dockerfiles
2020-11-18 06:47:57 -06:00
Mario Limonciello
7fbab31609
trivial: ci: drop chromeos target
...
this doesn't accurately cover chromeos, as they now use jcat in
the build with pkcs7 support.
a chromeos target may come later with #2141
2020-11-18 06:47:57 -06:00
Mario Limonciello
07be134dca
trivial: Github actions: Split up container creation
2020-11-18 06:47:57 -06:00
Mario Limonciello
0b64457256
Move ABI check to Github actions
2020-11-18 06:47:57 -06:00
Mario Limonciello
0073dd0570
trivial: Disable Travis CI
2020-11-18 06:47:57 -06:00
Mario Limonciello
a6606fee3a
Enable github workflows
2020-11-18 06:47:57 -06:00
Mario Limonciello
fa36c88514
trivial: fedora: switch back to defaults for redfish and nvme plugins
2020-11-18 08:21:00 +00:00
Mario Limonciello
16566cec64
trivial: debian: switch back to defaults for nvme and redfish
...
these plugins don't require efivar anymore
2020-11-18 08:21:00 +00:00
Mario Limonciello
5258f33585
trivial: fix ppc64le autopkgtest failure
...
nvme-self-test only runs if nvme is compiled, which it isn't for
ppc64le.
2020-11-18 08:21:00 +00:00
Richard Hughes
02e7fb527a
trivial: Ensure the user called fwupd_client_set_user_agent() as asked
2020-11-18 08:17:28 +00:00
Richard Hughes
56fcdd2776
libfwupd: Add fwupd_client_download_file()
...
I'm porting gnome-software to use this new API and this would be a very useful
thing to provide. No async API as we want to avoid writing temp files in most
cases -- this is just for legacy apps.
2020-11-18 08:17:28 +00:00
Richard Hughes
eba28b6520
libfwupd: Add fwupd_client_get_user_agent()
...
If we set a property, we should probably have a way to read it back...
2020-11-17 21:10:10 +00:00
Richard Hughes
42577728bb
Only download the remote metadata as required
...
Moving to the async libfwupd library design meant this optimization was lost.
2020-11-17 12:14:30 -06:00
Mario Limonciello
f5583481bf
trivial: debian: disable downloading from LVFS in autopkgtest
...
There are two ways to go:
1. Enable `needs-internet` in the test bed
2. Skip these tests
Per https://salsa.debian.org/ci-team/autopkgtest/blob/master/doc/README.package-tests.rst
the testing should avoid having to download from remote services to
keep the testing more deterministic and reliable.
2020-11-16 17:06:34 -06:00
Mario Limonciello
5b3eb78d5b
trivial: uefi: don't let user's environment fail UEFI/Dell test suite
...
Comment from https://github.com/fwupd/fwupd/issues/2553#issuecomment-728218741
makes it clear that test suite should ignore some of environment.
2020-11-16 14:56:22 -06:00
Mario Limonciello
103ce59922
trivial: debian: add git to fwupdate-tests dependencies
...
this is needed for autopkgtest now
2020-11-16 10:45:01 -06:00
Mario Limonciello
2222efc297
Add breaks for fwupdate 12-7 ( Closes : #960688 )
2020-11-16 10:45:01 -06:00
tinywrkb
07d5aef247
Install modules-load configs in the correct directory
...
Signed-off-by: Richard Hughes <richard@hughsie.com>
2020-11-16 15:27:13 +00:00
Jessica Clarke
646f23edd5
debian: Add quotes around glob
2020-11-16 08:06:48 -06:00
Jessica Clarke
99c37df81c
debian: Remove unnecessary ./ use
2020-11-16 08:06:48 -06:00
Jessica Clarke
f6b1ff0409
debian: Avoid looking like a set -e is missing
...
The exit code for an if is the final command's so single-command if
statements are safe. However, this is rather subtle and could easily be
accidentally overlooked when making future changes. We could add a set
-e to be defensive, but instead let's use the idiomatic way of doing
one-line if statements in shell that always yield the right exit code.
2020-11-16 08:06:48 -06:00
Jessica Clarke
e36ecb42ed
debian: Use uniform spacing around semicolons
2020-11-16 08:06:48 -06:00
Jessica Clarke
ae4ee910b9
debian: Fix another dangerous missing set -e
2020-11-16 08:06:48 -06:00
Jessica Clarke
f69931032e
debian: Build up CONFARGS list rather than individual variables
...
This avoids having a silly line length for the dh_auto_configure
invocation.
2020-11-16 08:06:48 -06:00
Jessica Clarke
227e281cf9
debian: Fix another instance of unusual ifeq syntax
2020-11-16 08:06:48 -06:00
Jessica Clarke
474e4135e8
debian: Fix dangerous lack of set -e
...
Also split the long line whilst here.
2020-11-16 08:06:48 -06:00
Jessica Clarke
8218923985
debian: Check for valgrind in Makefile not shell and don't hard-code path
2020-11-16 08:06:48 -06:00
Jessica Clarke
65b4f61110
debian: Drop pointless dh_shlibdeps override
...
There's no other mention of DHSLIBS in the entire tree so it'll always
be empty.
2020-11-16 08:06:48 -06:00
Jessica Clarke
4b2d77bbe9
debian: Use if/else rather than overriding default values
...
This makes the code easier to follow.
Whilst here use DEB_HOST_ARCH_CPU for the ia64 and use the more
conventional syntax.
2020-11-16 08:06:48 -06:00
Jessica Clarke
43d7c50609
debian: Prefer Makefile substitution over shell substitution
...
This makes the output show what is being run and avoids ugly multi-line
shell commands. It also avoids needlessly polluting the environment.
2020-11-16 08:06:48 -06:00
Jessica Clarke
de55495d95
debian: Check DEB_HOST_ARCH_CPU not DEB_HOST_ARCH for MSR plugin
...
The plugin is CPU-dependent, not kernel, ABI or libc dependent.
This makes x32 build the plugin again.
2020-11-16 08:06:48 -06:00
Emily Miller
937f7401c0
trivial: Add vli tr_gen2 and hyper regression test
2020-11-16 09:28:46 +00:00
Emily Miller
1c4a4dd29c
trivial: tr_gen2 has same rtd21xx as mini dock
2020-11-16 08:50:25 +00:00
Richard Hughes
05efd7b960
trivial: Don't assume a specific page size in the unit tests
...
This was found in the self tests on PPC64.
Fixes https://github.com/fwupd/fwupd/issues/2581
2020-11-15 09:17:08 +00:00
Richard Hughes
b5eddee5f6
bcm57xx: Use PCI function 1 as 0 does not work with the Dell KH08P
2020-11-14 07:56:32 +00:00
Mario Limonciello
e6154b3425
trivial: debian: disable msr plugin on all !x86
...
Fixes build failure on arm64 and armhf
2020-11-14 00:00:11 -06:00
Mario Limonciello
80212a3d0b
trivial: debian: don't hardcode paths in libexec
...
Some architectures won't have `fwupd-detect-cet` and this causes
build failures for those architectures
Fixes build failures on:
ppc64, risvc64, sparc64, powerpc, m68k, ia64, hppa, alpha, s390x,
mipsel, mips64el, armel
2020-11-14 00:00:11 -06:00
Richard Hughes
122104e190
vli: Do not be clever replugging the MSP430 device
...
We don't have to do this since we started counting the composite devices out
and back in, and relying on the parent being set at a specific instance seems
fragile in real-world testing.
2020-11-13 14:22:51 -06:00