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

Add/ignition math #4045

Merged
merged 27 commits into from
Jan 13, 2021
Merged

Conversation

prince-chrismc
Copy link
Contributor

Specify library name and version: ignition-math/6.7.0

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

This is to save all the hard work we put in #3215

@conan-center-bot
Copy link
Collaborator

Failure in build 1 (eb895c060d2bf6c171fc5fd5f8bf728912858679):

  • ignition-math/6.6.0
    • Hooks errors detected:
      • [HOOK - conan-center.py] pre_export(): ERROR: [CONFIG.YML HAS NEW VERSION (KB-H052)] The version "6.7.0" exists in "conandata.yml" but not in "../config.yml", so it will not be built. Please update "../config.yml" to include newly added version "6.7.0". (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H052)

@conan-center-bot
Copy link
Collaborator

An unexpected error happened and has been reported. Help is on its way! 🏇

@conan-center-bot
Copy link
Collaborator

All green in build 3 (88eaf242b9f535c4718b764c034bfa33dd420327)! 😊

madebr
madebr previously approved these changes Jan 2, 2021
@SSE4 SSE4 requested a review from uilianries January 2, 2021 05:49
SSE4
SSE4 previously approved these changes Jan 2, 2021
self.requires("eigen/3.3.7")

def build_requirements(self):
self.build_requires("pkgconf/1.7.3")
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is it required?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was in the original PR 🤷‍♂️ it worked so I didn't ask 🙈

Copy link
Contributor

Choose a reason for hiding this comment

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

Seems to be useless. eigen is the only dependency, and I would be surprised that underlying build files of ignition-math use pkg-config to consume eigen in a CMake based project.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch.. I'll test it locally since I have a few PR to follow up =)

Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>
@prince-chrismc prince-chrismc dismissed stale reviews from SSE4 and madebr via 292ebe0 January 9, 2021 23:05
@conan-center-bot
Copy link
Collaborator

All green in build 5 (a81134732dcc3b87dbeb61b973eb607e0815191a)! 😊

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.

cosmetic suggestion: move source() before build()

recipes/ignition-math/all/conanfile.py Outdated Show resolved Hide resolved
recipes/ignition-math/all/conanfile.py Show resolved Hide resolved
Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>
@conan-center-bot
Copy link
Collaborator

All green in build 6 (371aa9a926adb076a197435268c7e9879a20e8c8)! 😊

Comment on lines +18 to +19
- static const std::regex time_regex(
+ static const char* time_regex_str =
Copy link
Contributor

Choose a reason for hiding this comment

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

What's wrong with creating std::regex here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Excellent questions....

From the original author #3215 (comment)

After a lot of pain, I was able to solve the segfault error that was happening. The problem was the static initialization of a std::regex variable: https://github.com/ignitionrobotics/ign-math/blob/51eb0640a0c7454c36fef1a3007d3db37fe9165f/include/ignition/math/Helpers.hh#L873, which I solved by creating a raw static char* and using that to initialize a local static (static inside the function) std::regex variable: https://github.com/conan-io/conan-center-index/pull/3215/files#diff-e2f831892c4567a7388d8d62242576015a59f008af8dd34c946996d15f6991e9

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see what problem it fixes and how, but good to know it fixes something :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

💯 I agree... I just didn't want to waste the time we put in so I wanted to keep it but I have no clue what this project is or does.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, works for me 👍

@conan-center-bot conan-center-bot merged commit 6bd6f71 into conan-io:master Jan 13, 2021
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.

7 participants