-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
remove register keyword as not cpp17 complient #5835
remove register keyword as not cpp17 complient #5835
Conversation
This comment has been minimized.
This comment has been minimized.
The recipe should not change the sources in this way. If the library does not support C++17, it is better to patch the upstream than to modify the sources. For more information, see this discussion (#3951). |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the patch needs to be added to conandata.yml, and tools.patch must be called, otherwise nothing changes here
All green in build 3 (
|
@AndreyMlashkin Please, read #3951. It's still a draft, but that's the way. We usually only accept security and build system patches. I would suggest you sending this patch to the upstream, otherwise, we will need to replicate for every new release. |
AFAIU, we are exactly in the case described in https://github.com/conan-io/conan-center-index/pull/3951/files#diff-8aa07bf0dad3063ca38d5b842b934aa4f6d59bdab84855edc30d54e333c05409R21-R24 : the package does not compile std=C++17, because the register keyword was removed from the language. Nonetheless, the patch should be submitted upstream. |
It's already upstream: see #5835 (comment) |
I think the patch is the less of all evil. |
* remove register keyword as not cpp17 complient * move cpp17 fix to a patch * add patch
This PR doesn't work: the name of the patch file in conandata.yml is incorrect (probably copy/paste error). I will submit a new PR to correct. |
…s in source() method
…and apply patches * gperf: fix PR conan-io#5835. Correct patch file name and apply patches in source() method * gperf: implement feedback from PR conan-io#6254, move patch code to build method
Specify library name and version: gperf/3.1
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!
conan-center hook activated.