Commit Graph

4304 Commits

Author SHA1 Message Date
Richard Hughes
57746cb839 Add the Meson build system as an alternate to autotools
Automake and autoconf are impossible to fully understand and Meson now provides
everything we need for a much smaller, faster, and more understandable build.

See http://mesonbuild.com/ for more information.
2017-04-12 16:35:18 +01:00
Richard Hughes
f41d3956a8 trivial: Fix the ExecStart path
This fixes a regression from a1585c6b7f.
2017-04-12 16:34:45 +01:00
Richard Hughes
24a580f622 trivial: Allow TESTDATADIR to be multiple locations
We need this when srcdir != destdir.
2017-04-12 16:34:17 +01:00
Richard Hughes
d6db6b4d8a trivial: Change the name of a generated file
The meson build system does not let you choose the output name of the resource.
2017-04-12 15:03:11 +01:00
Richard Hughes
82dcdfeec6 trivial: Don't change the documentation output every time the version changes
This was added for cosmetic reasons, and including the version makes the
generated html documentation change every release even if there were no API
changes.
2017-04-12 14:53:55 +01:00
Richard Hughes
a985781308 trivial: No not list the API version indexes
We've been really bad at keeping these up to date, so just drop them.
2017-04-12 14:53:55 +01:00
Richard Hughes
16e2b4cc0f trivial: Do not try to load tree_index.sgml in the documentation
We don't have a hierarchy file, so it's somewhat of a mystery how this ever was
generated.
2017-04-12 14:53:54 +01:00
Richard Hughes
a1585c6b7f Install the daemon in libexecdir
I know Debian doesn't use libexecdir, but most other distros do. On Fedora it's
really strange to see a binary in /usr/libexec/fwupd/fwupd and supporting this
not-quite-servicedir is causing confusion in the Makefiles and also problems in
other external tools.

Simply redefine libexecdir if you need the daemon binary to be installed
somewhere different.
2017-04-12 14:38:34 +01:00
Richard Hughes
c232db23df Port away from intltool 2017-04-12 14:31:18 +01:00
Richard Hughes
d3f4b5a428 trivial: Define the build dir outside the source file 2017-04-12 14:26:14 +01:00
Richard Hughes
f985a8f7b7 trivial: Fix the log domains in two plugins 2017-04-12 14:20:07 +01:00
Richard Hughes
4af05398af trivial: Define the plugindir in one central place 2017-04-12 14:18:15 +01:00
Richard Hughes
e643fb283f Create directories in /var/cache as required
These can be nuked at any time by users, so don't rely on the package manager
or installer to create these for us.
2017-04-12 14:09:06 +01:00
AsciiWolf
8b90f3543a Update Czech translation 2017-03-23 21:19:17 +00:00
Mario Limonciello
99489a8638 trivial: set synaptics error message in more scenarios 2017-03-20 13:34:26 -05:00
Richard Hughes
f63091e413 Add DFU quirk for OpenPICC 2017-03-11 20:47:32 +00:00
Richard Hughes
5eb8e29fa2 Add DFU quirk for SIMtrace 2017-03-11 20:47:22 +00:00
Richard Hughes
19b336ebc8 trivial: Sync example spec file with downstream 2017-02-28 21:45:34 +00:00
Mario Limonciello
332415d378 trivial: make /boot/efi an optional ReadWritePath (#97) 2017-02-28 08:24:40 -06:00
Mario Limonciello
6d0aa3dcf7 trivial: make valgrind an optional build dependency
Packagers should still enable it so that tracking lost memory
in plugins is possible, but on some distros some archs don't
have valgrind available which would otherwise prevent fwupd
from running.

This is as problem currently for Debian unstable where some
archs valgrind fails to compile.
2017-02-28 08:22:27 -06:00
Shea Levy
345a7b7f3d Only try to mkdir the localstatedir if we have the right permissions (#96) 2017-02-27 20:41:58 -06:00
Mario Limonciello
5b6103ce97 trivial: allow configuring ESP location (#94) 2017-02-27 10:39:50 -06:00
Mario Limonciello
ec7f3ab02e trivial: install /var/lib/fwupd in make install (#94) 2017-02-27 10:36:50 -06:00
Richard Hughes
34708d910d trivial: post release version bump 2017-02-27 12:09:06 +00:00
Richard Hughes
5d1f0a4ab6 Release fwupd 0.8.1 2017-02-27 12:07:00 +00:00
Richard Hughes
8738a9f8e4 trivial: Do not use deprecated appstream-glib API 2017-02-27 10:11:29 +00:00
Richard Hughes
6c898739c9 Really remove the NoNewPrivileges systemd confinement
Even with the other changes this is still required for me on Fedora 25.
2017-02-24 10:56:39 +00:00
Richard Hughes
7db8ed498b trivial: Unbreak make check 2017-02-24 10:55:46 +00:00
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
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
ca9dadcc52 trivial: move gelf.h include to HAVE_LIBELF (#87) 2017-02-14 11:09:46 -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
Richard Hughes
5e6919f30c trivial: post release version bump 2017-02-08 12:53:50 +00:00