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: put all resources back in bin folder #15424

Merged
merged 1 commit into from
Jan 25, 2023

Conversation

ericLemanissier
Copy link
Contributor

otherwise cppcheck does not find them
fixes #15421

Specify library name and version: cppcheck/*


otherwise cppcheck does not find them
fixes conan-io#15421
Copy link
Contributor

@SpaceIm SpaceIm left a comment

Choose a reason for hiding this comment

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

I'll submit another PR after this one, there are several issues in test package logic and definition of an env var.

@@ -44,7 +44,7 @@ def generate(self):
tc.variables["HAVE_RULES"] = self.options.have_rules
tc.variables["USE_MATCHCOMPILER"] = "Auto"
tc.variables["ENABLE_OSS_FUZZ"] = False
tc.variables["FILESDIR"] = os.path.join(self.package_folder, "res").replace('\\', '/')
tc.variables["FILESDIR"] = os.path.join(self.package_folder, "bin").replace('\\', '/')
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe extend the test to check that nobody will break it again?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

unfortunately I don't think we can make a breaking test, because cppcheck stores the absolute path to this FILESDIR folder at build time and uses it as a fallback if the .cfg files cannot be found in the folder next to the cppcheck executable. It means we can only break by downloading an existing package binary into a package folder different from the one used during build :/

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 1 (656b40906eedac96389ba4e4e173268c7ffeddf7):

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

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

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

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

@conan-center-bot conan-center-bot merged commit cc735d5 into conan-io:master Jan 25, 2023
@ericLemanissier ericLemanissier deleted the patch-4 branch January 25, 2023 14:04
StellaSmith pushed a commit to StellaSmith/conan-center-index that referenced this pull request Feb 2, 2023
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.

[package] cppcheck/2.9.3: "Failed to load library configuration file 'std.cfg'"
6 participants