Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libfprint: 1.0 -> 1.90 #74656

Merged
merged 1 commit into from Dec 1, 2019
Merged

libfprint: 1.0 -> 1.90 #74656

merged 1 commit into from Dec 1, 2019

Conversation

ghost
Copy link

@ghost ghost commented Nov 29, 2019

Motivation for this change

A huge rewrite of libfprint (fingerprint reader library) has been merged and released recently. It adds supports for USB connected fingerprint readers. (Which will add support for latest ThinkPad laptops).

I've splitted the thinkpad fork package from the main one because the dependencies and version numbers are not matching anymore. If that's an issue I can remerge them together.

DISCLAIMER : I haven't been able to test the package update yet, Lenovo has removed the firmware upgrade related to the model I'm using right now (it was causing issues, they are going to make it available again in the next days), and since this package is hardware dependant for testing, if someone with updated hardware (or previously working hardware) can test it, it would be great.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

cc @abbradar

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/working-on-updating-libfprint-to-1-90/4958/1

@worldofpeace
Copy link
Contributor

@GrahamcOfBorg build libfprint

@cizra
Copy link
Contributor

cizra commented Nov 29, 2019 via email

@ghost
Copy link
Author

ghost commented Nov 30, 2019

Hello @cizra, thank you for the feedback. Do you have any idea of who should be put as a maintainer of the two packages ?

@Mic92
Copy link
Member

Mic92 commented Nov 30, 2019

Is the fork still required, should we remove libfprint-thinkpad? @abbradar could still stay as a maintainer for libfprint itself.

@ghost
Copy link
Author

ghost commented Nov 30, 2019

@Mic92 : I believe the fork is not required since it is available only for some edge-case hardware. Furthermore, this fork seems to require that the fingerprint reader has been initialized with a Windows setup. The main issue is that some people may already be using it, and it will simply drop the support for them : which is not what they would expect. On other distros this would have been put in a user repositories (like ArchLinux's AUR).

I do not know what are the guidelines for a package to be added or removed to/from NixOS repositories. Is there any documentation I can refer to ?

@Mic92
Copy link
Member

Mic92 commented Nov 30, 2019

We usually add removed packages to pkgs/top-level/aliases.nix to inform users.

@ghost
Copy link
Author

ghost commented Nov 30, 2019

Okay, let me know if I should remove it.

@ghost
Copy link
Author

ghost commented Nov 30, 2019

@Mic92 I see that you're mainting NUR. Do you think libfprint-thinkpad would be a better fit there ?

@Mic92
Copy link
Member

Mic92 commented Dec 1, 2019

@elyhaka probably. It would be just up to someone to put it there.

@Mic92
Copy link
Member

Mic92 commented Dec 1, 2019

@elyhaka I would just drop it for now.

@ghost
Copy link
Author

ghost commented Dec 1, 2019

@Mic92 : I've removed it, and added the pkgs/top-level/aliases.nix for both fprintd-thinkpad and libfprint-thinkpad.

@Mic92 Mic92 merged commit bfed052 into NixOS:master Dec 1, 2019
@jtojnar
Copy link
Contributor

jtojnar commented Dec 15, 2019

This likely broke fprintd: https://hydra.nixos.org/build/108073131/nixlog/1

It is trying to find libpfrint.pc but 1.90 provides libpfrint2.pc.

@c0bw3b
Copy link
Contributor

c0bw3b commented Dec 15, 2019

Upstream advertises 1.90 as a sort of beta for 2.x

@ghost
Copy link
Author

ghost commented Dec 16, 2019

Hello, I have just tested locally, and it broke fprintd : I thought I checked it correctly, but it seems I missed this. I was working directly with the library itself most of the time recently so I didn't noticed it. I would like to apologize for that, I'll be more careful next time before proposing a PR.

I have a draft PR #75435 waiting for upstream to merge the update on fprintd : maybe we should revert this change, and I add both updates inside the other draft PR ?

Upstream states that :

The current codebase is considered stable at this point. However, due to the lack of wider testing it is only released as a 1.90.0 release which can be considered a beta-release for 2.0.

I had understanding this as "It works now, but we will wait a bit before we release 2.0" (mostly for firmware upgrades from what I've read in the issues/MR on upstream).

@ghost
Copy link

ghost commented Dec 17, 2019

@elyhaka

so I didn't noticed it

Using nix-review command should help you not to miss such issues: https://github.com/Mic92/nixpkgs-review
For e.g. nix-review pr 74656

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants