- 30 Apr, 2018 2 commits
-
-
Richard Hughes authored
-
Richard Hughes authored
-
- 29 Apr, 2018 1 commit
-
-
Richard Hughes authored
This reverts commit a6f44e11 and allows us to build on Fedora 28 without a huge number of bogus warnings.
-
- 26 Apr, 2018 1 commit
-
-
Mario Limonciello authored
This will make it more obvious which path it's defaulting to
-
- 23 Apr, 2018 4 commits
-
-
Mario Limonciello authored
-
Mario Limonciello authored
../plugins/amt/fu-plugin-amt.c: In function ‘mei_context_new’: ../plugins/amt/fu-plugin-amt.c:77:2: error: implicit declaration of function ‘memcpy’ [-Werror=implicit-function-declaration] memcpy (&ctx->guid, guid, sizeof(*guid)); ^~~~~~ ../plugins/amt/fu-plugin-amt.c:77:2: error: incompatible implicit declaration of built-in function ‘memcpy’ [-Werror] ../plugins/amt/fu-plugin-amt.c:77:2: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’ ../plugins/amt/fu-plugin-amt.c:78:2: error: implicit declaration of function ‘memset’ [-Werror=implicit-function-declaration] memset (&data, 0, sizeof(data)); ^~~~~~ ../plugins/amt/fu-plugin-amt.c:78:2: error: incompatible implicit declaration of built-in function ‘memset’ [-Werror] ../plugins/amt/fu-plugin-amt.c:78:2: note: include ‘<string.h>’ or provide a declaration of ‘memset’ ../plugins/amt/fu-plugin-amt.c: In function ‘mei_recv_msg’: ../plugins/amt/fu-plugin-amt.c:117:9: error: implicit declaration of function ‘strerror’; did you mean ‘g_strerror’? [-Werror=implicit-function-declaration] rc, strerror(errno)); ^~~~~~~~ g_strerror ../plugins/amt/fu-plugin-amt.c:117:9: error: nested extern declaration of ‘strerror’ [-Werror=nested-externs] ../plugins/amt/fu-plugin-amt.c:116:39: error: format ‘%s’ expects argument of type ‘char *’, but argument 6 has type ‘int’ [-Werror=format=] "read failed with status %zd %s", ~^ %d rc, strerror(errno)); ~~~~~~~~~~~~~~~ ../plugins/amt/fu-plugin-amt.c: In function ‘mei_send_msg’: ../plugins/amt/fu-plugin-amt.c:142:40: error: format ‘%s’ expects argument of type ‘char *’, but argument 6 has type ‘int’ [-Werror=format=] "write failed with status %zd %s", ~^ %d written, strerror(errno)); ~~~~~~~~~~~~~~~ ../plugins/amt/fu-plugin-amt.c: In function ‘amt_verify_code_versions’: ../plugins/amt/fu-plugin-amt.c:288:14: error: implicit declaration of function ‘strlen’ [-Werror=implicit-function-declaration] len != strlen(code_ver->versions[i].version.string)) ^~~~~~ ../plugins/amt/fu-plugin-amt.c:288:14: error: incompatible implicit declaration of built-in function ‘strlen’ [-Werror] ../plugins/amt/fu-plugin-amt.c:288:14: note: include ‘<string.h>’ or provide a declaration of ‘strlen’ ../plugins/amt/fu-plugin-amt.c: In function ‘fu_plugin_amt_create_device’: ../plugins/amt/fu-plugin-amt.c:430:2: error: incompatible implicit declaration of built-in function ‘memcpy’ [-Werror] memcpy (&ver, response->data, sizeof(struct amt_code_versions)); ^~~~~~ ../plugins/amt/fu-plugin-amt.c:430:2: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’ cc1: all warnings being treated as errors
-
Mario Limonciello authored
lintian is showing false positives. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=896012 for more details.
-
Mario Limonciello authored
This reverts commit 6b0eb078. Per debian bug 896012 this is intentional behavior and a problem with linitin. An additional commit will be added to ignore this lintian error.
-
- 20 Apr, 2018 10 commits
-
-
Richard Hughes authored
This allows plugins to set and explicit build-time version. It also uses the same AppStream component-ID scheme rather than the home-grown 'FooVersion' key. Also, use the new runtime and compile-time versions in the report metadata. Due to the key change we'll also need to update some LVFS rules.
-
Richard Hughes authored
-
Richard Hughes authored
-
Richard Hughes authored
In some cases firmware can only be installed with an up to date GUsb (e.g. with some STM-DFU hardware) or with a new version of fwupdate (e.g. any UEFI UpdateCapsule without a capsule header). We should be able to match against other software versions like we can the fwupd version, e.g. <requires> <id compare="ge" version="0.9.2">org.freedesktop.fwupd</id> <id compare="ge" version="11">com.redhat.fwupdate</id> </requires> Also, rather than checking each requirement we know about on the component, check each requirement on the component about things we know. This ensures we don't allow firmware to be installs that requires for instance fwupdate 22 when the runtime version is only being added in fwupdate 12 and up. This means the following is now an error that will fail to allow the firmware to be installed: <requires> <firmware>doesnotexist</firmware> <some_future_tag>also_unknown</some_future_tag> </requires> Also add a lot of self tests to test the various new failure modes. Fixes https://github.com/hughsie/fwupd/issues/463
-
Mario Limonciello authored
ia64, risvc64 and x32 aren't likely to get valgrind soon, so turn off self tests on them and remove the dependency.
-
Mario Limonciello authored
-
Mario Limonciello authored
Similar logic as previous commit with versions in Ubuntu and Fedora.
-
Mario Limonciello authored
This allows dropping the previous valgrind hack. Similar logic as previous commits.
-
Mario Limonciello authored
Ubuntu's LTS and Fedora's newest releases have it. All CI targets have it.
-
Mario Limonciello authored
-
- 19 Apr, 2018 1 commit
-
-
Richard Hughes authored
Fixes https://github.com/hughsie/fwupd/issues/476
-
- 18 Apr, 2018 5 commits
-
-
Mario Limonciello authored
This is a workaround for what looks like a compiler bug introduced in Debian and Ubuntu gcc-7. After the compiler bug is sorted in Debian testing it should be reverted.
-
Mario Limonciello authored
There are a lot of hacks here; * Pulling newer libappstream-glib from Fedora * Pulling a systemd backport * Manually installing pillow and pygobject * PKCS7 is turned off (gnutls is too old)
-
Mario Limonciello authored
It finishes the quickest of the builds so it will speed up CI
-
Mario Limonciello authored
-
Mario Limonciello authored
-
- 17 Apr, 2018 5 commits
-
-
Mario Limonciello authored
../src/fu-main.c: In function ‘fu_main_daemon_method_call’: ../src/fu-main.c:667:47: error: null pointer dereference [-Werror=null-dereference] polkit_authority_check_authorization (helper->priv->authority, subject, ~~~~~~^~~~~~ ../src/fu-main.c:698:47: error: null pointer dereference [-Werror=null-dereference] polkit_authority_check_authorization (helper->priv->authority, subject, ~~~~~~^~~~~~
-
Mario Limonciello authored
Was causing this error on some configurations: unrecognized command line option ‘-Wno-cast-function-type
-
Mario Limonciello authored
GLib creates two static inline functions for paramaters that may not be used that set off warnings in clang but not gcc. Ignore these on clang builds everywhere that G_DEFINE_AUTOPTR_CLEANUP_FUNC is used.
-
Mario Limonciello authored
Caught by clang: ../src/fu-util.c:473:17: warning: assigning to 'gchar *' (aka 'char *') from 'const gchar *' (aka 'const char *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] warning_markup = fwupd_remote_get_agreement (remote);
-
Mario Limonciello authored
Caught by clang: ../plugins/uefi/fu-plugin-uefi.c:311:32: warning: unused variable 'iter' [-Wunused-variable] g_autoptr(fwup_resource_iter) iter = NULL;
-
- 16 Apr, 2018 8 commits
-
-
Mario Limonciello authored
This was accidentally dropped in a previous CI rework.
-
Mario Limonciello authored
-
Mario Limonciello authored
-
Mario Limonciello authored
-
Mario Limonciello authored
-
Mario Limonciello authored
-
Richard Hughes authored
-
Richard Hughes authored
We need to show this agreement text in every fwupd frontend and exporting a helper function allows us to do two things: * Share the semi-complicated code (and fallback) to avoid copy and pasting * Easily change the code in the future, for instance allowing merging Metainfo and AppStream metadata without updating all the front ends with new logic.
-
- 13 Apr, 2018 3 commits
-
-
Sjoerd Simons authored
A test run should really fail if it cannot find the test data, rather then reporting success (thus masking that it never ran). Fix the test to find it data (probably broken with the port to meson) and make it fail if it cannot find its data. Signed-off-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk>
-
Sjoerd Simons authored
Rather then always assuming open() fails because of permission denied, generate the GError code from the errno and add the related strerror to the message. And ofcourse output the error message in debugging rather then just ignoring it. Signed-off-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk>
-
Sjoerd Simons authored
The synaptic mst test wants to open its test files as r/w, however as the arch build runs as user nobody that won't work unless the test files are also owned by user nobody. To make that happen, copy the source tree rather then symlinking it Signed-off-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk>
-