Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 696482

Summary: dev-libs/hidapi: version bump
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Luke-Jr <luke-jr+gentoobugs>
Status: RESOLVED FIXED    
Severity: normal CC: chewi, jstein, proxy-maint
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/17290
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: dev-libs/hidapi live ebuild

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-10-05 10:19:10 UTC
According to Repology, the current upstream release is 0.9.0.  Please bump.
Comment 2 Luke-Jr 2020-08-28 00:17:57 UTC
Looks like upstream moved...
Comment 3 Fab 2020-10-11 14:54:21 UTC
Created attachment 664609 [details]
dev-libs/hidapi live ebuild

For development purposes I need a recent dev-libs/hidapi version.
This live ebuild is based on 0.9 ebuild from the pull request.
Upcoming 0.10 version is fixing at least one major problem¹ that I need to be fixed.

¹ https://github.com/libusb/hidapi/commit/fa75ffb
Comment 4 Fab 2020-10-26 17:02:16 UTC
dev-libs/hidapi version 0.10.0 has been released.

Updated ebuilds for 0.10.0 and 9999 versions can be found in my overlay⁽³⁾ with following changes :
 - Added subslot operator for x11-libs/fox.
 - Added BDEPEND.
 - Removed old fix from bug #494090⁽¹⁾ useless after
   upstream commit 99d0219 ⁽²⁾.

Please note that fox useflag is currently masked in profiles :
>  $ grep -C 3 hidapi "$(portageq get_repo_path / gentoo)/profiles/base/package.use.mask"
> # Michał Górny <mgorny@gentoo.org> (2019-12-16)
> # Requires old x11-libs/fox:1.6 slot.
> dev-games/openscenegraph fox
> dev-libs/hidapi fox
> sci-mathematics/gsl-shell fox
> sys-libs/gwenhywfar fox

I think it can be unmasked. New hidapi can be built against x11-libs/fox:1.7.
Feel free to copy ebuilds and do pull request, I don't have time for that.
I think dev-libs/hidapi should be bumped directly to 0.10. Like I said in comment #3 it solves many bugs from 0.9.0.


1. https://bugs.gentoo.org/494090
2. https://github.com/libusb/hidapi/commit/99d0219
3. https://github.com/netfab/overlay/tree/master/dev-libs/hidapi
Comment 6 jospezial 2021-09-27 13:45:13 UTC
Upstream has added cmake build system and deprecated autotools build. Next release 0.11 will be released in a few days.
Comment 7 jospezial 2021-10-06 19:08:19 UTC
(In reply to jospezial from comment #6)
> Upstream has added cmake build system and deprecated autotools build. Next
> release 0.11 will be released in a few days.

https://github.com/libusb/hidapi/releases/tag/hidapi-0.11.0



"    Windows: improved/fixed enumeration/HID class detection (#235);

    Windows: fix device info fetch for Bluetooth LE HID devices (#309);

    Windows: correct number of bytes returned by hid_get_feature_report/hid_get_input_report for numbered reports (#286, #232, #334);

    hidraw: (explicit) workaround to allow build with kernels older than 2.6.39 (#260);

    macOS: droped support of macOS 10.5 and earlier (#121);

    macOS: stabilize device path (use IORegistryEntryGetRegistryEntryID) (#322)

    libusb: stabilize device path (uses same semantic as Linux kernel) (#291);

    libusb: add platform-specific hid_libusb_wrap_sys_device (#280);

    general: lots of documentation improvements;

    general: (Windows) DDK build files are obsolete;

    general: add CMake build system;

    general: deprecated Autotools build scripts;

    lots of other small fixes and improvements;

NOTE: Starting with this release Autotools build scripts for HIDAPI are deprecated and going to be obsolete in near future.
All users of HIDAPI should switch to CMake build scripts instead."
Comment 8 jospezial 2022-03-04 14:45:05 UTC
There is an up to date 11.2 version with cmake in
https://github.com/netfab/overlay/tree/master/dev-libs/hidapi

Fab, do you like to create a PR in Gentoo?
Comment 10 Larry the Git Cow gentoo-dev 2022-08-28 10:25:52 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4338840d337ed7b7a80408cde81194b6e555bde

commit e4338840d337ed7b7a80408cde81194b6e555bde
Author:     Stephan Hartmann <sultan@gentoo.org>
AuthorDate: 2022-08-28 10:08:41 +0000
Commit:     Stephan Hartmann <sultan@gentoo.org>
CommitDate: 2022-08-28 10:24:56 +0000

    dev-libs/hidapi: add 0.12.0
    
    Closes: https://bugs.gentoo.org/696482
    Signed-off-by: Stephan Hartmann <sultan@gentoo.org>

 dev-libs/hidapi/Manifest             |  1 +
 dev-libs/hidapi/hidapi-0.12.0.ebuild | 42 ++++++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+)