Skip to content

libusb: allow hidapi to be configured without using iconv - #123

Merged
Youw merged 1 commit into
libusb:masterfrom
wet34t:master
Feb 9, 2020
Merged

Youw merged 1 commit into
libusb:masterfrom
wet34t:master

Conversation

@wet34t

@wet34t wet34t commented Nov 19, 2019

Copy link
Copy Markdown
Contributor

No description provided.

@Youw
Youw requested a review from Qbicz November 19, 2019 16:31
@Youw Youw added the libusb Related to libusb backend label Nov 19, 2019
@Youw

Youw commented Nov 19, 2019

Copy link
Copy Markdown
Member

additionally would be great to have auto-tools option to enable this

@wet34t

wet34t commented Nov 19, 2019

Copy link
Copy Markdown
Contributor Author

Basically, the idea is to allow users to configure hidapi without using iconv, as icvon may have dependencies that may not be supported

@z3ntu

z3ntu commented Nov 19, 2019

Copy link
Copy Markdown
Collaborator

What's the use case for this patch? As far as I know, iconv is implemented directly in glibc and for non-glibc libcs, there's GNU libiconv which also apparently doesn't have any dependencies other than the C library.

@wet34t

wet34t commented Nov 19, 2019

Copy link
Copy Markdown
Contributor Author

iconv depends on /usr/lib[64]/gconv, which usually is part of glibc, but may not always be the case.

@Youw

Youw commented Nov 30, 2019

Copy link
Copy Markdown
Member

I see no issues accepting this as is

@z3ntu

z3ntu commented Dec 1, 2019

Copy link
Copy Markdown
Collaborator

I still haven't seen an exact reason like "On X distro iconv isn't available and as such hidapi must be built without it" or something like that.

To my knowledge, glibc has iconv built in, musl as well. For other libc's you can install GNU libiconv and use that instead of the built-in-to-the-C-library libiconv.

@Youw

Youw commented Dec 1, 2019

Copy link
Copy Markdown
Member

@wet34t, did you hit one of the cases described by @z3ntu?

@wet34t

wet34t commented Dec 2, 2019

Copy link
Copy Markdown
Contributor Author

@Youw

Youw commented Feb 9, 2020

Copy link
Copy Markdown
Member

I see no issues having this as is for community convenience

@Youw
Youw merged commit 533dd92 into libusb:master Feb 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

libusb Related to libusb backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants