Richard Hughes
576c012d20
Do not dlclose modules when running under valgrind
...
Without this patch, unloading the module means we can't resolve the symbols
where the memory was leaked.
2017-02-24 09:47:00 +00:00
Richard Hughes
c3c28bacae
trivial: Always initialize a g_autoptr as the compiler is not yet smart enough
2017-02-24 07:54:51 +00:00
Mario Limonciello
20c112a891
Adjust systemd confinement restrictions
...
commit 99b317d4f7
introduced much
more strict confinement. This actually caused some regressions
though.
commit 3c54edb15e
tried to fix
one of the problems, but didn't cover the rest.
The actual changes:
- Drop PrivateUsers=yes
This is causing crashes when initializing libsmbios
Presumably it's related to accessing memory.
- Add back in NoNewPrivileges
This hasn't caused any crashes for libsmbios for me.
- Remove ProtectKernelTunables
This is needed to access /sys for the dcdbas kernel
module used by libsmbios. Calls fail without it
- Add ReadWritePaths=/var/lib/fwupd /boot/efi
The refresh function was failing the first time due to
ProtectSystem=full being in effect and /var/lib/fwupd
being read only
Flashing UEFI capsules was failing due to being unable
to write to /boot/efi/EFI/$(EFIDIR)/fw/
2017-02-23 15:13:24 -06:00
Mario Limonciello
6cabd969e9
trivial: correct a small memory leak in SynapticsMST plugin
2017-02-23 13:16:04 -06:00
Richard Hughes
3c54edb15e
Do not fail to start on Dell hardware
...
For some reason NoNewPrivileges=yes causes the process to be killed when run on
hardware specifically from Dell. I can reliably reproduce this on my XPS 13 and
I assume it's something to do with libsmbios.
2017-02-21 09:36:49 +00:00
Richard Hughes
afe00a91e7
trivial: Prevent a critical warning when using --timed-exit
2017-02-21 09:36:49 +00:00
Mario Limonciello
e70e5513ca
dell: don't initialize libsmbios on unsupported systems
...
As found in https://github.com/dell/libsmbios/pull/13
there are some errors with libsmbios error paths.
These need to be fixed in libsmbios, but at least avoid
running this code on those systems (and crashing fwupd).
2017-02-20 14:54:12 -06:00
Richard Hughes
0e94553fb0
Revert "Make it compile with docbook2X"
...
This reverts commit 0e8f5d93ae
.
2017-02-16 10:47:35 +00:00
Mario Limonciello
e3c751b1b9
backport commits that allow buildling on older efivar
2017-02-15 09:31:34 -06:00
Mario Limonciello
aad9729347
trivial: fix build issues with older efivar
...
This is in the same vane as 4da67515
, it allows linking with
an older efivar.
2017-02-15 09:29:59 -06:00
Mario Limonciello
61859d9d1e
Optionally enable thunderbolt
2017-02-14 16:37:52 -06:00
Mario Limonciello
de72ec6479
loosen dependencies on libefivar-dev and libfwup-dev
2017-02-14 16:32:27 -06:00
Mario Limonciello
ca9dadcc52
trivial: move gelf.h include to HAVE_LIBELF ( #87 )
2017-02-14 11:09:46 -06:00
Mario Limonciello
3ef6e523af
Merge branch 'master' into debian-next
2017-02-14 10:38:17 -06:00
Mario Limonciello
d415ca48c6
Merge branch 'debian' into debian-next
2017-02-14 10:38:12 -06:00
Richard Hughes
2b27893e66
trivial: Move the ConditionPathExists to the right file
...
*This* is why we were getting confused.
2017-02-13 12:50:01 +00:00
Richard Hughes
d82a6024e7
Fix a crash when enumerating devices on a Dell WLD15
2017-02-13 11:03:03 +00:00
Richard Hughes
31c36cd2b6
trivial: Fix some -Wdiscarded-qualifiers warnings
2017-02-13 11:02:19 +00:00
Richard Hughes
2613dcc3b8
trivial: Fix another -Wpointer-sign compile warning
2017-02-13 10:50:07 +00:00
Richard Hughes
6d5f2dc25e
trivial: Fix compile warnings when building packages
2017-02-13 10:50:07 +00:00
Richard Hughes
4da6751502
trivial: Fix build issue
...
Patch from Gert Hulselmans, many thanks.
Fixes: https://github.com/hughsie/fwupd/issues/88
2017-02-13 10:50:07 +00:00
Kai Krakow
1c7ea9ee2d
Fix compiler warnings
...
My compiler doesn't understand -Wno-discard-qualifiers so drop it and
fix the warnings instead. I think it is better to explicitly fix them
anyways instead of just to ignore the discarded const qualifier in
general.
I think the option should be avoided in hand-written code. The warning
is there for a reason: To protect you from possibly overwriting data you
expect to not be modified when passing pointers around.
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41215
2017-02-13 10:02:25 +00:00
Richard Hughes
9d4c3e6cb7
Fix fwupdmgr timeout with missing pending database
...
It seems systemd now requires the database to exist before allowing the service
to be D-Bus activated.
Fixes: https://github.com/hughsie/fwupd/issues/92
2017-02-13 09:52:38 +00:00
Kai Krakow
ce2c41a11e
Do not hardcode docbook2man path
...
In docbook2X, the command is docbook2man.pl instead of docbook2man
2017-02-13 08:51:10 +00:00
Kai Krakow
0e8f5d93ae
Make it compile with docbook2X
...
Gentoo ships with docbook2X which doesn't accept the format of the SGML
file due to incomplete DOCTYPE settings.
2017-02-13 08:51:10 +00:00
Piotr Drąg
16f49d5f3f
Delete duplicate translations ( #89 )
...
Translation files should now match Transifex.
2017-02-11 16:26:30 +00:00
Mario Limonciello
12fe80f3c3
releasing package fwupd version 0.8.0-2
2017-02-10 11:58:38 -06:00
Mario Limonciello
ef7369c03c
Only build synaptics on supported arch (fixes FTBFS)
2017-02-10 11:49:06 -06:00
Mario Limonciello
b21bdd36f5
Remove extra section
2017-02-09 14:38:06 -06:00
Mario Limonciello
03ae7e7732
merge with debian'
2017-02-09 14:37:12 -06:00
Mario Limonciello
a5c254c278
releasing package fwupd version 0.8.0-1
2017-02-09 14:04:55 -06:00
Mario Limonciello
0d424bdfd7
Add libebitdo packages back in for a transition as this might not make it up to stable
2017-02-09 14:01:37 -06:00
Mario Limonciello
b3acce5db4
Update packaging for changes in 0.8.0 version
2017-02-09 09:56:54 -06:00
Mario Limonciello
67eff171cd
Release fwupd 0.8.0
...
-----BEGIN PGP SIGNATURE-----
iQEcBAABAgAGBQJYmxRgAAoJEBesuo36lw4XvMMH/1CuroUKv4LFh1iDwlwFrEFs
4jpR5wFmLJIuaJ0tR50AmfBXMHGNFw6g3RDa9VIlywjiWx7/MqiD+2BoyycrrAat
MIdyDn1k3xP8OJu2Y38/zMMk8tetZ6oDtHYCvTwFQYcw1jzvzvdu10iZ/C1o7GOa
zo2fH684G98G02v3qukCg0vVZqpEwu1UskZN9QS5ZTz1kMP1pvRJMymqM8UPPSGg
YESjqhQrt3xUvQQfWiEa22isxQEd9neTPrXIkC6l6AOR/prp+slhPkW3ahgvyS+M
DIA1z5mDX5kRBwJKIS14cKmyKZJZC/h6WUTePwnSeG8TGmOyvdcsUut5StQCaWo=
=Iz7Y
-----END PGP SIGNATURE-----
Merge tag '0.8.0' into debian
Release fwupd 0.8.0
2017-02-09 09:45:55 -06:00
Richard Hughes
5e6919f30c
trivial: post release version bump
2017-02-08 12:53:50 +00:00
Richard Hughes
f5cea112f0
Release fwupd 0.8.0
2017-02-08 12:51:44 +00:00
Richard Hughes
3e214856fb
trivial: Fix a resource leak spotted by coverity
2017-02-08 11:03:48 +00:00
Mario Limonciello
8971645f78
trivial: synapticsmst: don't bother to scan cascade nodes in test suite
...
This significantly speeds up the test suite.
They can't really be easily represented anyways in the test suite
since the devnode would have to change so much between steps.
2017-02-03 13:21:29 -06:00
Richard Hughes
48d23f7bb0
Fix a refcounting issue in the udev plugin
...
Objects are returned from the cache with transfer:none.
Hopefully fixes https://github.com/hughsie/fwupd/issues/86
2017-02-03 14:17:07 +00:00
Richard Hughes
6ad951d27c
trivial: Do not allow plugins to call _device_add_delay() with the same device
...
Also, add some unit tests for this codepath.
2017-02-03 10:12:14 +00:00
Richard Hughes
c4cbcafe5e
synapticsmst: Fix up some trivial whitespace issues
2017-02-03 10:11:41 +00:00
Mario Limonciello
0a65ffb239
synapticsmst: add a test suite
2017-02-02 21:43:42 -06:00
Mario Limonciello
f5144d0720
trivial: synaptics: increase flash mode delay to 3s
...
This allows devices with multiple hubs to settle between device
flashes better. It doesn't have much other functional impact.
2017-02-01 17:16:27 -06:00
Mario Limonciello
e41e4a7a26
trivial: synaptics: encode chip ID into dock string
...
Although the same payload is used for all 3 MST hubs in TB16 or WD15
it's possible this may change one day. Create separate GUID's for
all 3 different combinations by encoding the chip ID into the GUID
string.
2017-02-01 16:43:57 -06:00
Mario Limonciello
43f2286e10
trivial: synaptics: update the device name to be more sensible
2017-02-01 16:43:50 -06:00
Mario Limonciello
8d97bcf0ed
trivial: synaptics: keep system ID in hexadecimal
2017-02-01 14:04:44 -06:00
Mario Limonciello
66d383cfed
trivial: synaptics: check for removed cascaded devices during scan
2017-02-01 13:53:34 -06:00
Mario Limonciello
9e868a2cf8
trivial: synaptics: make debug messages more useful
2017-02-01 13:33:43 -06:00
Mario Limonciello
8d51d273e7
trivial: synapticsmst: consistently use lower case for dock ID's
2017-02-01 13:25:54 -06:00
Mario Limonciello
ccee8cd86f
trivial: synaptics: remove cascaded devices if the direct device falls off
2017-01-31 11:02:54 -06:00