Commit Graph

1407 Commits

Author SHA1 Message Date
Marco Trevisan (Treviño) 4b2440eecd Upload to unstable 2020-12-10 21:32:49 +01:00
Marco Trevisan (Treviño) 81cb0c8848 Update changelog 2020-12-10 21:27:57 +01:00
Marco Trevisan (Treviño) 7837f05ae4 debian/patches: Do not support drivers known to fail in big endian 2020-12-10 21:27:30 +01:00
Marco Trevisan (Treviño) b9ecbd5b2d Upload to unstable 2020-12-10 15:58:37 +01:00
Marco Trevisan (Treviño) ab4a6be813 Update changelog 2020-12-10 15:58:28 +01:00
Marco Trevisan (Treviño) d43f0867b7 debian/control: Remove Didier Raboud from uploaders
2020-12-04 10:30:09 @bigon:
  Trevinho: I just found an old mail from Odyx/Didier asking me to remove him
  from the uploaders, maybe you could do that and add yourself if you plan to
  maintain the two packages in debian.
2020-12-10 15:45:50 +01:00
Marco Trevisan (Treviño) 588c4a15b0 Mark libfprint-2-doc as Multi-Arch: foreign 2020-12-10 15:45:50 +01:00
Marco Trevisan (Treviño) 74bf7fb086 debian/patches: Add upstream patch to avoid nbis library warnings
These have been checked to be harmless upstream
2020-12-10 15:45:50 +01:00
Marco Trevisan (Treviño) ec4cde6ffb debian/patches: Refresh 2020-12-10 15:26:55 +01:00
Marco Trevisan (Treviño) 1789914aad New upstream release 2020-12-10 13:55:34 +01:00
Marco Trevisan (Treviño) 6c8d013c9d Update upstream source from tag 'upstream/1.90.6'
Update to upstream version '1.90.6'
with Debian dir b7eff36961
2020-12-10 13:45:13 +01:00
Marco Trevisan (Treviño) cf4df8292e New upstream version 1.90.6 2020-12-10 13:45:07 +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) bb38a8c99c debian/gbp.conf: Include suggested settings by GNOME team
Even if libfprint is not part of GNOME I think these settings are good
practice anyways.
2020-12-02 21:16:41 +01:00
Marco Trevisan (Treviño) cb0eb5c5be debian/rules: Increase testing timeout
As default might not be enough in some archs
2020-12-02 20:58:21 +01:00
Marco Trevisan (Treviño) 776c789533 debian: Switch to debhelper 13 and use its features
As per this restrict more the .install files wilcards
2020-12-02 20:58:21 +01:00
Marco Trevisan (Treviño) 899d5c309f debian/rules: Enable tests in s390x as it now builds and tests correctly 2020-12-02 19:01:08 +01:00
Marco Trevisan (Treviño) 632a2abf62 Upload to unstable 2020-12-02 17:53:32 +01:00
Marco Trevisan (Treviño) 616dbcaad6 Update changelog 2020-12-02 17:52:57 +01:00
Marco Trevisan (Treviño) 0494815d57 Add myself to Uploaders 2020-12-02 17:52:11 +01:00
Marco Trevisan (Treviño) 4f85d9e1b3 debian/patches: Don't byte-swap two times the NBIS print array contents
Fixes virtual-image test in libfprint for s390x
2020-12-02 17:48:28 +01:00
Marco Trevisan (Treviño) f58ac0a499 debian/patches: Properly handle identify return value and add tests
This fixes fprintd test failures in s390x
2020-12-02 17:47:37 +01:00
Marco Trevisan (Treviño) de271a0e8d 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-02 16:40:10 +00:00
Marco Trevisan (Treviño) 12b0120a3d test-fpi-device: Always check the return values for the API calls
Ensure that the return value of the API calls match the expected one,
as we need to ensure that it also matches with the error/no-error case.
2020-12-02 16:28:36 +00:00
Marco Trevisan (Treviño) 2783ac3e60 fpi-device: Return proper type on identification success
Identify function is supposed to propagate a boolean value, but we make
it return an integer instead on idle, this can be normally the same in
most of architectures, but not in BE ones.

So, make it return the proper type.
Fixes test failures in s390x.

Related to #236
2020-12-02 16:28:36 +00:00
Marco Trevisan (Treviño) 5cc6a64502 Upload to unstable 2020-12-02 05:11:33 +01:00
Marco Trevisan (Treviño) 6a22714677 Update changelog 2020-12-02 05:09:33 +01:00
Marco Trevisan (Treviño) 457f8c818c debian/patches: Use gbp pq topics for debian-specific patches 2020-12-02 05:09:33 +01:00
Marco Trevisan (Treviño) e696d77514 New upstream release 2020-12-02 04:57:16 +01:00
Marco Trevisan (Treviño) c083be9ed6 Update upstream source from tag 'upstream/1.90.5'
Update to upstream version '1.90.5'
with Debian dir af3de02221
2020-12-02 04:53:48 +01:00
Marco Trevisan (Treviño) 5f93ff8536 New upstream version 1.90.5 2020-12-02 04:53:44 +01:00
Aris Lin abb0b1267c synaptics: add support PID 0xE7 2020-12-02 10:21:39 +08:00
Laurent Bigonville 90f41d13a0 debian/control: Mark libfprint-2-dev as Multi-Arch: same 2020-12-01 12:12:25 +01:00