Commit Graph

1467 Commits

Author SHA1 Message Date
Marco Trevisan (Treviño) 181f160f3c New upstream release 2020-12-10 17:17:55 +01:00
Marco Trevisan (Treviño) 37afa510d9 Update upstream source from tag 'upstream/1.90.6+tod1'
Update to upstream version '1.90.6+tod1'
with Debian dir 778e53fbe6
2020-12-10 16:28:08 +01:00
Marco Trevisan (Treviño) 2e18bb90ba New upstream version 1.90.6+tod1 2020-12-10 16:28:03 +01:00
Benjamin Berg 4b675a0691 nbis: Disable array-parameter and array-bounds warnings
NBIS just does weird things and while the array-parameter warning is
easy to fix, the other is not trivial. So disable these warnings so that
we can still build using newer GCC versions.
2020-12-10 16:22:26 +01:00
Marco Trevisan (Treviño) 52d30a88fc tests: Ensure we prepend the libfprint libraries path when testing TOD 2020-12-10 16:21:11 +01:00
Marco Trevisan (Treviño) f8cb985476 Merge tag 'v1.90.6' into tod
Tag 1.90.6

Git-EVTag-v0-SHA512: 1cca84a89332a674d822476e587e1d9f30dc11bfff13724548ec0be66ab32f910fb5e7a7c9403c9a813538fdd9e86661105af8e2a4865b0b30d301601c7bddab
2020-12-10 16:10:39 +01:00
Benjamin Berg c96958582f Release 1.90.6 v1.90.6 2020-12-09 13:30:53 +01:00
Marco Trevisan (Treviño) c02771d16b goodixmoc: Add async identification test using on-owned deseralized prints
This simulates what fprintd does
2020-12-09 13:30:37 +01:00
Marco Trevisan (Treviño) 989d498eb9 goodix: Don't leak the templates array during verify
When verifying we initialize a temporary templates array but we never
release it.
2020-12-09 12:55:26 +01:00
Benjamin Berg 91ee03eb7a device: Fix memory management of gallery passed to identify
We cannot make any assumptions about the passed GPtrArray. As such, we
must copy the content and grab our own reference for each of the prints.
2020-12-09 11:47:33 +01:00
Benjamin Berg 28ba6a0de9 test-fpi-device: Do deep comparison of gallery
The gallery needs to be copied, as such we must do a deep comparison
instead of comparing the pointers. We also can't do the comparison
afterwards, as the gallery is owned by the operation and that operation
is finished already.
2020-12-09 11:47:33 +01:00
Marco Trevisan (Treviño) faade91c39 test-fpi-device: Add function to create fake FpPrint's and galleries 2020-12-09 11:47:33 +01:00
Benjamin Berg 499de3e442 print: Return sunk reference from deserialize function
This function was always documented to return a sunk reference, but it
did not do so. This change is technically backward incompatible.

However, it only has an effect if anything is doing a g_object_ref_sink.
Which may happen inside libfprint itself. With the change, most API
users (including fprintd) are fixed to do refcounting correctly. Any API
user which worked around this will have a memory leak now.

That is not ideal, but it is not really that bad overall. And returning
a floating reference for FpPrint creation was a bad idea in the first
place. And it really only makes sense for fp_print_new as the only
(public) use case is to create the template for enrollment.
2020-12-09 11:47:33 +01:00
fengqiangguo 0ff7a07671 goodixmoc: fix package crc error
fix package length type convert error
2020-12-09 10:07:39 +00:00
Marco Trevisan (Treviño) 0d9d7dcb46 fp-print: Don't deference the passed error, use g_set_error instead
It still may be NULL, but we don't protect from that.
2020-12-09 10:38:38 +01:00
Marco Trevisan (Treviño) fb23f8690f fp-print: Return NULL on error
not really different from FALSE, but still..
2020-12-09 10:38:38 +01:00
Marco Trevisan (Treviño) 6ca8441df9 umockdev-tests: Don't fail when trying to save other errors 2020-12-09 10:26:58 +01:00
Marco Trevisan (Treviño) 8112da0358 umockdev-tests: Still raise an error when storing the exception output
Otherwise we won't ever fail
2020-12-09 10:26:58 +01:00
Marco Trevisan (Treviño) f2ea3e784e fp-print: Delete not-defined anymore functions 2020-12-09 10:26:58 +01:00
Benjamin Berg 74810a8472 image: Fix warning about uninitialized variable
The variable is only initialized later in the function. This is
harmless, as there is no return, but it causes a warning due to the
automatic free.
2020-12-08 13:33:30 +01:00
Benjamin Berg 91fb8d8cb4 compat: Add GFlagsClass autopointer
It was added to GLib at the same time as GEnumClass. We did not list it
though and are now using it in a test.
2020-12-08 13:27:50 +01:00
Marco Trevisan (Treviño) 0688288c6d .git-blame-ignore-revs: Ignore formatting commit and add hint how to use it 2020-12-07 19:01:10 +01:00
Marco Trevisan (Treviño) c1e832e7a7 fp-device: Return valid finger status value on error
Not that the two enums have different value, but indeed the type is
wrong.
2020-12-04 12:15:22 +00:00
Marco Trevisan (Treviño) b5496fd257 fp-device: Ensure finger status is set to proper type on property getter
Finger status is a flag not an enum.

Add tests.
2020-12-04 12:15:22 +00:00
Marco Trevisan (Treviño) 621550f2be Finalise changelog 2020-12-04 03:57:04 +01:00
Marco Trevisan (Treviño) 0c7eb81d6a Update changelog 2020-12-04 03:56:00 +01:00
Marco Trevisan (Treviño) ab834e1743 debian/libfprint.lintian-overrides: Add override for binary TOD for testing 2020-12-04 03:56:00 +01:00
Marco Trevisan (Treviño) e35391c976 debian/libfprint-2-tod1.symbols: Add new symbols 2020-12-04 03:56:00 +01:00
Marco Trevisan (Treviño) f7854bf953 debian/libfprint-2-2.symbols: Add new symbols 2020-12-04 03:56:00 +01:00
Marco Trevisan (Treviño) b49cdf6118 debian/rules: Increase testing timeout
As default might not be enough in some archs
2020-12-04 03:56:00 +01:00
Marco Trevisan (Treviño) cc3a29ca47 debian: Switch to debhelper 13 and use its features
As per this restrict more the .install files wilcards
2020-12-04 03:56:00 +01:00
Marco Trevisan (Treviño) 77351bf47d debian/rules: Ignore failures in s390x as it now builds and tests correctly 2020-12-04 02:49:35 +01:00
Marco Trevisan (Treviño) aeb0878ee4 Add myself to Uploaders 2020-12-04 02:49:10 +01:00
Marco Trevisan (Treviño) 8cd34e8b57 debian/patches: Use gbp pq topics for debian-specific patches 2020-12-04 02:47:53 +01:00
Marco Trevisan (Treviño) 68c377ae1e debian/patches: Drop patches applied upstream 2020-12-04 02:46:24 +01:00
Marco Trevisan (Treviño) 0849cb0476 New upstream release 2020-12-04 02:44:12 +01:00
Marco Trevisan (Treviño) 8d7628ba0f Update upstream source from tag 'upstream/1.90.5+tod1'
Update to upstream version '1.90.5+tod1'
with Debian dir b9a5b8de31
2020-12-04 02:44:12 +01:00
Marco Trevisan (Treviño) e84208896c New upstream version 1.90.5+tod1 2020-12-04 02:44:07 +01:00
Marco Trevisan (Treviño) 14d24c49f8 debian/control: Mark libfprint-2-tod-dev as Multi-Arch: same 2020-12-04 02:42:01 +01:00
Laurent Bigonville 39927ef448 debian/control: Mark libfprint-2-dev as Multi-Arch: same 2020-12-04 02:41:18 +01:00
Laurent Bigonville 44807e379a debian/control: Bump Standards-Version to 4.5.1 (no further changes) 2020-12-04 02:41:03 +01:00
Marco Trevisan (Treviño) 80cf417b30 tests: Check if loading a pre-built binary keep working with libfprint
The libfprint tod fake library is built using using libtod v1.90.1+tod1
and we need to ensure that it will continue working until we won't
change ABI/API.
2020-12-04 02:16:16 +01:00
Marco Trevisan (Treviño) 7b0df77c49 tests: Get tod driver name from env variable 2020-12-04 02:06:54 +01:00
Marco Trevisan (Treviño) 1613c0de43 fp-device: Return valid finger status value on error
Not that the two enums have different value, but indeed the type is
wrong.
2020-12-04 00:53:29 +01:00
Marco Trevisan (Treviño) 4da4a7041a fp-device: Ensure finger status is set to proper type on property getter
Finger status is a flag not an enum.

Add tests.
2020-12-04 00:49:53 +01:00
Marco Trevisan (Treviño) c9579ab21b test: Run all the fpi-device tests with the dynamically loaded TOD driver
We can ensure better that it works as expected repeating all the device
tests for it too.

The nice part is that we can just do this by re-defininig its GType as
the gtype of the loaded driver.
2020-12-03 04:38:15 +01:00
Marco Trevisan (Treviño) 9cbb3e5f55 tests: Isolate more the TOD tests so that we build the driver without clashes 2020-12-03 04:35:41 +01:00
Marco Trevisan (Treviño) d83453de02 tests: Move tod context creation into test-utils-tod library 2020-12-03 02:39:33 +01:00
Marco Trevisan (Treviño) 99063246b7 fpi-image-device: Reorder image state not to change values
We need this to avoid breaking already present TOD image devices
drivers.
2020-12-03 02:05:08 +01:00
Marco Trevisan (Treviño) 7dc2cbf8d9 fp-print: Don't byte-swap two times the NBIS array contents
When serializing an image print in big endian machine we ended up
swapping the arrays contents two times, first when adding the values and
eventually when calling g_variant_byteswap which already handles this
properly.

With this, we get the test passing into s390x.

Fixes: #236
2020-12-03 01:34:45 +01:00