Commit graph

47 commits

Author SHA1 Message Date
fossdd
cda9ab61fa build: Add tests meson option 2025-04-02 16:56:22 +00:00
Marco Trevisan (Treviño)
b54a007ccf
Release 1.94.5 2025-02-20 21:20:51 +01:00
Marco Trevisan (Treviño)
7b16491029 build: Do not use deprecated function to get pkg config variable 2025-02-20 20:09:47 +00:00
Marco Trevisan (Treviño)
f7b26a518f build: Do not use deprecated meson object functions 2025-02-20 20:09:47 +00:00
Marco Trevisan (Treviño)
609a246e97 build: Add check argument to run_command() calls 2025-02-20 20:09:47 +00:00
Marco Trevisan (Treviño)
aea5cbd0ec build: Depend on libfprint 1.94.9
We depend now on new definitions, so let's bump the requirement
2025-02-20 20:15:17 +01:00
Marco Trevisan (Treviño)
a1ce732237
Release 1.94.4 2024-09-05 03:10:52 +02:00
Marco Trevisan (Treviño)
4eaa655352 build: Do not try to reference potentially undefined pam_dep
Fixes compilation without PAM support after commit d371f35e3
2024-08-30 17:53:08 +02:00
Marco Trevisan (Treviño)
d371f35e3a build: Check for openpam headers usability
Ensure that openpam headers can be used, we might even just checked for
the openpam_version.h header, but this respects more the real world
scenario
2024-08-30 17:45:55 +02:00
Marco Trevisan (Treviño)
b9e55394e9 pam: Cleanup non-linux codepaths 2024-08-30 13:40:03 +02:00
Daniel Schaefer
8d4e3e6fb7 pam: Allow build with OpenPAM instead of linux-pam
Signed-off-by: Daniel Schaefer <dhs@frame.work>
2024-08-30 14:59:17 +08:00
Mohammed Anas
84023f525a Bump minimum glib dependency version to 2.64
As per this apply the patch that applied on the generated code
2024-08-30 05:25:48 +02:00
Daniel Schaefer
223bd3a711 freebsd: Find libintl
On GNU/Linux it's included in libc, on the BSDs it's not.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
2024-08-30 03:13:39 +00:00
Marco Trevisan (Treviño)
2cf0650dd4
Release 1.94.3 2024-04-04 03:35:44 +02:00
Fabio Bas
b04d4eb3e8 Permit build without pam_wrapper 2022-05-24 16:00:02 +02:00
Benjamin Berg
1be0810b69 meson: Add option to use libelogind for DBus
Co-authored-by: Matthew Thode <prometheanfire@gentoo.org>
Co-authored-by: Fabio Bas <fabio.bas@officineinformatiche.net>
2022-05-24 15:39:07 +02:00
Benjamin Berg
ff0aa64e2d meson: Do not hard-require test dependencies
Just warn about missing test dependencies. If the user tries to run the
tests, they will fail. This is fine however, and in certain cases the
user might not even want to run the tests.

Closes: #133
2022-05-05 15:55:07 +02:00
Benjamin Berg
0d2e2a6742 Release 1.94.2 2022-02-24 17:19:57 +01:00
Benjamin Berg
a734ceff71 Release 1.94.1 2021-11-03 15:34:26 +01:00
Benjamin Berg
fc7e058e93 Release 1.94.0 2021-08-20 13:59:06 +00:00
Benjamin Berg
be45b44337 meson: Set GLIB_VERSION_{MIN_REQUIRED,MAX_ALLOWED}
To help catch errors where we accidentally use the wrong symbols.

Closes: #42
2021-07-30 15:52:22 +02:00
Benjamin Berg
b760a82ac6 Update for 1.92.0 2021-07-01 13:06:08 +02:00
Marco Trevisan (Treviño)
d07e81acae meson: Consider the 'pam' option in the summary
We may show that we build it even when it's disabled but available in
the system
2021-03-02 17:15:14 +01:00
Marco Trevisan (Treviño)
1835d99265 device: Expose finger status as DBus properties
libfprint v1.90.4 introduced a new finger status API to expose to the UI
the finger status on sensor.

Add two new properties to the Device interface that represent the
possible values.

Add new tests.
2021-01-22 14:10:04 +00:00
Benjamin Berg
da60bddb3e Release 1.90.9 2021-01-13 13:23:24 +01:00
Benjamin Berg
7d22a2b5b9 Release 1.90.8 2020-12-11 16:00:28 +01:00
Dudemanguy
5aa61adabc build: make systemd dependency optional
The systemd dependency is only used to install some systemd service
files. This can easily be made optional.
2020-12-11 15:01:24 +01:00
Benjamin Berg
4612c1f3ed Release 1.90.7 2020-12-09 13:16:12 +01:00
Benjamin Berg
52058c1ea0 Release 1.90.6 2020-12-07 15:34:48 +01:00
Benjamin Berg
eb73e024e1 utils: Fix race in verify accepting unrelated signals
Signals like VerifyResult may be received from unrelated Verify
operations. To avoid races, we need to ignore any VerifyResult that
happenes before the DBus method returns.

The only way to do this race-free is to use the async version of the
VerifyStart method.
2020-12-07 15:27:14 +01:00
Benjamin Berg
267b322f6d Release 1.90.5 2020-12-01 14:22:55 +01:00
Benjamin Berg
29ed88a50a meson: Use warning_level feature of meson
This is nicer than adding -Wall and gives users more control.

Add -Wno-unused-parameter for now as there are lot of places where
this would need to be changed and it is reasonable in most cases.

Add -Wno-pedantic because it conflicts with
g_signal_handlers_disconnect_*
2020-12-01 09:00:55 +00:00
Benjamin Berg
ec7376d7e6 meson: Fix CFLAGS use by using add_project_arguments
It seems that meson will not always apply the CFLAGS as defined through
the environment if "c_args=" is used in the default_options array for
the project() call.

Switching to add_project_arguments solves this problem.

See https://github.com/mesonbuild/meson/issues/8037
2020-12-01 09:00:55 +00:00
Marco Trevisan (Treviño)
3f2174676e device: Re-define polkit auto-pointer funcs if not defined
In case we're using an old polkit version that does not support
auto-pointers, we need to re-define such functions manually or fprintd
won't compile.

Given that polkit doesn't provide us version informations in headers we
need to get that from pkg-config
2020-11-27 18:21:29 +01:00
Marco Trevisan (Treviño)
5e18d46971 Revert "meson: Bump polkit dependency to 0.114"
We only depend on newer polkit for auto-pointers usage, so it's not
worth to bump its dependency just for them

This reverts commit a8bd2bc25e.
2020-11-27 18:18:51 +01:00
Marco Trevisan (Treviño)
a8bd2bc25e meson: Bump polkit dependency to 0.114
It's the first one supporting auto-pointers
2020-11-27 17:53:58 +01:00
Benjamin Berg
88a627f187 Release 1.90.4 2020-11-27 14:26:12 +01:00
Marco Trevisan (Treviño)
93bad82540 fprintd: Use GDBus codegen based implementation
Fprintd is dependent on the deprecated dbus-glib, also this doesn't provide
various features we can take advantage of, like the ones for async
authentication mechanism.

So, remove all the dbus-glib dependencies and simplify the code, but without
any further refactor, and keeping everything as it used to work, while this
will give room for further improvements in subsequent commits.

Internally, we just use dbus-codegen to generate the skeletons, and we
use the generated FprintdDBusManager with composition, while we
implement the device skeleton interface in FprintDevice, so that we
don't have to use it as a proxy, and keep being closer to what it used
to be with dbus-glib.

Fixes: #61
2020-11-10 14:45:59 +01:00
Bastien Nocera
ff06a301f0 build: Bump libfprint req 2020-08-17 15:21:27 +02:00
Marco Trevisan (Treviño)
184e1bd4d0 build: Support running tests with address sanitizer
Make possible to run tests with address sanitizer to quickly check for
memory errors, although we have to disable the error exit code in case of
leaks because we have some which are due to something else down in the stack
(and LSAN suppression files doesn't allow to define the stack to ignore
as we can in valgrind).

However, we'd abort in case of memory errors anyways, so this still helps
to prevent major problems, while still logging the leaks.

In order to run pam module tests with ASAN we need to manually pass the
library to LD_PRELOAD, as we do for the wrapper.
2020-04-01 13:58:08 +00:00
Marco Trevisan (Treviño)
3dd0018f23 build: Set default CFLAGS using meson's c_args
Meson supports checking for default arguments natively without having to
do this for each one, so just use this feature.

Not doing this will become a warning as per meson 0.52.0 [1].

[1] https://github.com/mesonbuild/meson/pull/5627
2020-03-31 14:26:38 +02:00
Marco Trevisan (Treviño)
930cae4647 tests/fprind: Add enroll retry tests for all the cases 2020-03-17 17:10:17 +01:00
Bastien Nocera
580cceb50e 1.90.1 2020-02-10 14:59:42 +01:00
Bastien Nocera
2327307b81 build: Rename config.h template
Now that it won't clash with the autotools version.
2020-02-05 17:07:10 +01:00
Marco Trevisan (Treviño)
72d8a0f512 build: Enable -Werror on redundant declarations
Now that we've fixed our own errors.
2020-02-05 15:25:35 +01:00
Marco Trevisan (Treviño)
f5a2c21f90 build: Add configuration recap message for meson 2020-02-05 15:25:35 +01:00
Marco Trevisan (Treviño)
eb6dbb6953 build: Add meson build system
Reuse the generated dbus interface .xml files from fprintd to avoid
unnecessary copies.
2020-02-05 15:25:35 +01:00