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

box2d: add new version 3.0.0 #24946

Merged
merged 10 commits into from
Sep 26, 2024
Merged

Conversation

toge
Copy link
Contributor

@toge toge commented Aug 14, 2024

Summary

Changes to recipe: box2d/3.0.0

Motivation

box2d/3.0.0 has been completely overhauled.
It is written in C instead of C++.

Details

erincatto/box2d@v2.4.2...v3.0.0


@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@toge toge changed the title box2d: add version 3.0.0 box2d: add new version 3.0.0 Sep 6, 2024
@toge
Copy link
Contributor Author

toge commented Sep 10, 2024

@uilianries
Only pr-merge has been remaining in ci pipeline.
Could you help me to fix this issue?

@uilianries
Copy link
Member

@toge I just re-triggered now, thank you for pinging! The previous Conan 2.x build passed, but Conan 1.x was aborted internally by the CI, hope it works now.

@conan-center-bot

This comment has been minimized.

danimtb
danimtb previously approved these changes Sep 18, 2024
Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

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

Partially reviewed, +3k lines from upstream's diff, is not something easy 😅

I see the project moved to C in this new version: https://c3i.jfrog.io/c3i/misc-v2/logs/pr/24946/5-linux-gcc/box2d/3.0.0//12b14f6c484feae89100caf3d138013fa9682a4d-build.txt

I would suggest removing C++ from the package ID:

def configure(self):
    if Version(self.version) >= "3.0.0":
        del self.settings.compiler.libcxx
        del self.settings.compiler.cppstd

recipes/box2d/all/conanfile.py Outdated Show resolved Hide resolved
return

minimum_version = self._compilers_minimum_version.get(str(self.settings.compiler), False)
if minimum_version and Version(self.settings.compiler.version) < minimum_version:
Copy link
Member

Choose a reason for hiding this comment

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

Note that once we drop Conan 1 support, Conan 2 added support for compiler.cstd, which could be useful for C projects like this, see https://docs.conan.io/2/reference/tools/build.html#cstd

AbrilRBS
AbrilRBS previously approved these changes Sep 25, 2024
Copy link
Member

@AbrilRBS AbrilRBS left a comment

Choose a reason for hiding this comment

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

Thanks!

danimtb
danimtb previously approved these changes Sep 25, 2024
Signed-off-by: Uilian Ries <[email protected]>
@conan-center-bot

This comment has been minimized.

Signed-off-by: Uilian Ries <[email protected]>
@uilianries
Copy link
Member

@conan-center-bot

This comment has been minimized.

uilianries
uilianries previously approved these changes Sep 25, 2024
Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

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

LGTM. Box2D 3.x has several changes, including moving from C++ to C. More information: https://box2d.org/posts/2023/01/starting-box2d-3.0/

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 15 (4ccfe9c9e919910286f2b1338fd14e1883b857d1):

  • box2d/3.0.0:
    Built 12 packages out of 22 (All logs)

  • box2d/2.4.2:
    All packages built successfully! (All logs)

  • box2d/2.4.0:
    All packages built successfully! (All logs)

  • box2d/2.4.1:
    All packages built successfully! (All logs)

@AbrilRBS AbrilRBS requested review from uilianries and removed request for franramirez688 and uilianries September 25, 2024 17:46
@conan-center-bot conan-center-bot merged commit 53836ab into conan-io:master Sep 26, 2024
21 checks passed
@uilianries
Copy link
Member

Big thank you to @toge! 😄

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.

5 participants