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

id3lib: patch for c99 bool #39275

Merged
merged 2 commits into from Sep 15, 2022
Merged

id3lib: patch for c99 bool #39275

merged 2 commits into from Sep 15, 2022

Conversation

mtboehlke
Copy link
Contributor

id3/globals.h has a typedef for bool which is incompatible with c99 stdbool.
This is a known issue, but upstream is effectively unmaintained.
See this thread from upstream.

This only seems to be an issue for castget while building, and they have already switched to using taglib for the next release.
Castget issue.

Testing the changes

  • I tested the changes in this PR: briefly

@mtboehlke
Copy link
Contributor Author

mtboehlke commented Sep 14, 2022

@sgn Not sure what happened to your comment, but I removed the revbump to castget.

Edit: and I misread it as well, sorry about that. Should this include a revbump for castget, since all it does is fix the build?

sgn added a commit to mtboehlke/void-packages that referenced this pull request Sep 15, 2022
id3/globals.h has a typedef for bool which is incompatible with c99 stdbool.
This is a known issue, but upstream is effectively unmaintained.
See https://sourceforege.net/p/id3lib/mailman/message/30500558/

Close: void-linux#39275
@mtboehlke
Copy link
Contributor Author

@sgn thanks for jumping in on this!

@sgn
Copy link
Member

sgn commented Sep 15, 2022

As discussed on IRC, we need to patch all bool in C API to int.

id3/globals.h has a typedef for bool which is incompatible with c99
stdbool which is available transitively via stdlib.h

Also C99 bool and C++ bool is incompatible with original id3lib's bool
@sgn sgn merged commit 4e21286 into void-linux:master Sep 15, 2022
@mtboehlke mtboehlke deleted the id3lib branch April 29, 2023 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants