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

[cppcheck] Add version 2.9.1 #14149

Merged
merged 68 commits into from
Nov 28, 2022
Merged

[cppcheck] Add version 2.9.1 #14149

merged 68 commits into from
Nov 28, 2022

Conversation

Sneder89
Copy link
Contributor

@Sneder89 Sneder89 commented Nov 10, 2022

Specify library name and version: cppcheck/2.9.1 cppcheck/2.8.2

I would like to add new versions of that useful tool and make the recipe ready for conan v2


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

@ghost
Copy link

ghost commented Nov 10, 2022

I detected other pull requests that are modifying cppcheck/all recipe:

This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prsso don't hesitate to report issues/improvements there.

@conan-center-bot

This comment has been minimized.

recipes/cppcheck/all/conanfile.py Outdated Show resolved Hide resolved
recipes/cppcheck/all/conandata.yml Outdated Show resolved Hide resolved
recipes/cppcheck/all/conandata.yml Outdated Show resolved Hide resolved
@conan-center-bot

This comment has been minimized.

Sneder89 and others added 2 commits November 14, 2022 07:53
Co-authored-by: Martin Delille <martin@delille.org>
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

MartinDelille
MartinDelille previously approved these changes Nov 25, 2022
@MartinDelille
Copy link
Contributor

Nice job @Sneder89 ! 🎉

Copy link
Contributor

@prince-chrismc prince-chrismc left a comment

Choose a reason for hiding this comment

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

Handful of small comments plus I got confused about the option that changes 🙈 if you can please enlighten me that be appreciated

"2.9.2":
- patch_file: "patches/0001-cli-remove-dmake-cmake.patch"
- patch_file: "patches/0002-htmlreport-python3.patch"
- patch_file: "patches/0003-pcre-debuglib-name.patch"
Copy link
Contributor

Choose a reason for hiding this comment

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

recipes/cppcheck/all/conanfile.py Outdated Show resolved Hide resolved
del self.options.with_z3

def package_id(self):
del self.info.options.with_z3
Copy link
Contributor

Choose a reason for hiding this comment

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

This should not be required 🤔 we want it to change 2.8.0 and once it's deleted in config options than it's not taken into account

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, I removed that from the package_id method

recipes/cppcheck/all/conanfile.py Outdated Show resolved Hide resolved
recipes/cppcheck/all/conanfile.py Outdated Show resolved Hide resolved
recipes/cppcheck/all/conanfile.py Outdated Show resolved Hide resolved
recipes/cppcheck/all/conanfile.py Outdated Show resolved Hide resolved

if (USE_Z3)
find_package(Z3 QUIET)
- if (NOT Z3_FOUND)
Copy link
Contributor

Choose a reason for hiding this comment

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

Wait I am confused --- When is this option added? this is a new patch but I thought the option was removed 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I made some changes to the patch. z3 is still required for 2.7.5, but removed for 2.8 and above. So if 2.10 is released, somebody can remove all these things.

test_type = "explicit"

def requirements(self):
self.requires(self.tested_reference_str)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be a tool rquires?

Sneder89 and others added 5 commits November 27, 2022 19:38
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline

All green in build 62 (3247619b0877e45a2f9afee08514bba9a0331be7):

  • cppcheck/2.9.2@:
    All packages built successfully! (All logs)

  • cppcheck/2.8.2@:
    All packages built successfully! (All logs)

  • cppcheck/2.7.5@:
    All packages built successfully! (All logs)

@Sneder89
Copy link
Contributor Author

Nice job @Sneder89 ! 🎉

Thanks!

@Sneder89 Sneder89 requested review from MartinDelille and removed request for uilianries November 28, 2022 18:51
@conan-center-bot conan-center-bot merged commit afcf3ba into conan-io:master Nov 28, 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.

6 participants