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

[tinyspline/0.5.0]: Make tinyspline's JSON support optional #12924

Closed
wants to merge 1 commit into from

Conversation

bog-dan-ro
Copy link
Contributor

@bog-dan-ro bog-dan-ro commented Sep 13, 2022

Tinyspline's parson (json lib) it's using the same function name as json-c which makes it impossible to use both libs (statically) in the same project.

Bug & patch upstreamed msteinbeck/tinyspline#215 msteinbeck/tinyspline#216

This is also a good place to share with all of us why you are submitting this PR (specially if it is a new addition to ConanCenter): is it a dependency of other libraries you want to package? Are you the author of the library? Thanks!


  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the conan-center hook activated.

Tinyspline's parson (json lib) it's using the same function name as json-c
which makes it impossible to use both libs (statically) in the same project.
-#include "parson.h" /* serialization */
+
+#ifndef NO_JSON
+# include "parson.c" /* serialization */
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SpaceIm here, I'm including parson.c instead of parson.h therefore it's not needed anymore in CMakeLists.txt

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not very elegant and more work for future maintainers if we want to unvendor parson in another PR.

@uilianries
Copy link
Member

Thank you for your contribution, let's wait for the upstream review. Maybe the author asks something, before approving your patch.

@prince-chrismc
Copy link
Contributor

Docs for reference https://github.com/conan-io/conan-center-index/blob/master/docs/policy_patching.md#rules

@conan-center-bot
Copy link
Collaborator

All green in build 1 (2a5b412ff3173f582e099335837a48cdd0fdadfb):

  • tinyspline/0.5.0@:
    All packages built successfully! (All logs)

  • tinyspline/0.4.0@:
    All packages built successfully! (All logs)

  • tinyspline/0.3.0@:
    All packages built successfully! (All logs)

  • tinyspline/0.2.0@:
    All packages built successfully! (All logs)

@prince-chrismc
Copy link
Contributor

OP was not in favor of this new features
msteinbeck/tinyspline#216 (comment)

As interesting as this improvement is, we can not accept it

@bog-dan-ro
Copy link
Contributor Author

NP :)

@bog-dan-ro bog-dan-ro closed this Sep 16, 2022
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.

5 participants