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

remove register keyword as not cpp17 complient #5835

Merged

Conversation

AndreyMlashkin
Copy link
Contributor

@AndreyMlashkin AndreyMlashkin commented Jun 9, 2021

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!


  • 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.

@conan-center-bot

This comment has been minimized.

@intelligide
Copy link
Contributor

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).

@conan-center-bot

This comment has been minimized.

madebr
madebr previously approved these changes Jun 10, 2021
Copy link
Contributor

@ericLemanissier ericLemanissier left a 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

@conan-center-bot
Copy link
Collaborator

All green in build 3 (367374d9ead928dceff05ab692a5bc795f08a138):

  • gperf/3.1@:
    All packages built successfully! (All logs)

@uilianries
Copy link
Member

@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.

@ericLemanissier
Copy link
Contributor

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.

@madebr
Copy link
Contributor

madebr commented Jun 10, 2021

It's already upstream: see #5835 (comment)

@madebr
Copy link
Contributor

madebr commented Jun 10, 2021

I think the patch is the less of all evil.
You could conditionally lower the -std=c++ standard but that would require custom code in the recipe.
A patch is an ideal way to change something once, and forget about it for the following releases.

@SSE4 SSE4 requested a review from uilianries June 11, 2021 14:18
@conan-center-bot conan-center-bot merged commit 39b47bc into conan-io:master Jun 11, 2021
madebr pushed a commit to madebr/conan-center-index that referenced this pull request Jun 21, 2021
* remove register keyword as not cpp17 complient

* move cpp17 fix to a patch

* add patch
@wdobbe
Copy link
Contributor

wdobbe commented Jul 9, 2021

This PR doesn't work: the name of the patch file in conandata.yml is incorrect (probably copy/paste error).
This was not discovered because the source() method of the conanfile.py misses the code to apply the patches.

I will submit a new PR to correct.

wdobbe added a commit to wdobbe/conan-center-index that referenced this pull request Jul 9, 2021
conan-center-bot pushed a commit that referenced this pull request Jul 10, 2021
* gperf: fix PR #5835. Correct patch file name and apply patches in source() method

* gperf: implement feedback from PR #6254, move patch code to build method
AndreyMlashkin pushed a commit to AndreyMlashkin/conan-center-index that referenced this pull request Jul 19, 2021
…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
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.

8 participants