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

[3.4] Misc. build and warning fixes to pass CI and compile with recent SCons and GCC/Clang #98864

Merged
merged 15 commits into from
Nov 6, 2024

Conversation

akien-mga
Copy link
Member

@akien-mga akien-mga commented Nov 5, 2024

The 3.4 branch is EOL, but I like keeping branches buildable with current toolchains and CI as occasionally it makes sense to cherry-pick some commits.

In this case to cherry-pick #98855 and not get failing CI, the following changes were needed.

Most are changes already made in 3.5+ and now cherry-picked to 3.4 too, with the exception of:

  • 6b20281 which updates all GitHub Actions to their latest version.

  • 9e9ea71 which removes a usage of distutils.version.LooseVersion which had been removed in 3.5+ by a much bigger refactoring (061c280).
    Recent Python completely removed distutils, and the alternative is to use the packaging library, which isn't part of the standard library and I didn't want to add a new dependency. So I just replaced it with a hack from https://stackoverflow.com/a/11887825, which isn't bullet proof but should be fine here.

I'll cherry-pick those changes for earlier branches too with similar PRs.

The 3.4 branch is EOL and there is no intention to actually release 3.4.6.

But as I'm backporting a few compilation and warning fixes to ensure the
branch still builds on CI and with recent compilers, the version needs to
be updated so it's not wrongly identifying itself as 3.4.5.stable.
@akien-mga akien-mga added this to the 3.4 milestone Nov 5, 2024
@akien-mga akien-mga requested review from a team as code owners November 5, 2024 21:06
@akien-mga akien-mga force-pushed the 3.4-ci-build-warning-fixes branch 2 times, most recently from 040cc7e to 6ae84b2 Compare November 5, 2024 21:40
Copy link
Contributor

@Repiteo Repiteo left a comment

Choose a reason for hiding this comment

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

It works now weeeee

@akien-mga akien-mga force-pushed the 3.4-ci-build-warning-fixes branch from 2e1a9df to aca9ef2 Compare November 5, 2024 22:23
@akien-mga akien-mga requested review from a team as code owners November 5, 2024 22:23
Fix `-Wunused-but-set-variable`, `-Wunqualified-std-cast-call`, and
`-Wliteral-range` warnings.

(cherry picked from commit d8935b2)
@akien-mga akien-mga force-pushed the 3.4-ci-build-warning-fixes branch from aca9ef2 to 509d379 Compare November 5, 2024 22:29
@akien-mga akien-mga requested review from a team as code owners November 5, 2024 22:29
@akien-mga akien-mga marked this pull request as draft November 5, 2024 22:29
@akien-mga akien-mga changed the title [3.4] Misc. build and warning fixes to pass CI and compile with recent SCons/GCC [3.4] Misc. build and warning fixes to pass CI and compile with recent SCons and GCC/Clang Nov 5, 2024
@Repiteo
Copy link
Contributor

Repiteo commented Nov 5, 2024

It no longer works awwwwww

@akien-mga akien-mga force-pushed the 3.4-ci-build-warning-fixes branch from 509d379 to 7a3a6b8 Compare November 6, 2024 10:18
akien-mga and others added 5 commits November 6, 2024 11:29
Fixes the following error:
thirdparty/vhacd/inc/vhacdICHull.h:46:31: error: 'uint32_t' does not name a type
   46 |     ICHullError Process(const uint32_t nPointsCH, const double minVolume = 0.0);
      |                               ^~~~~~~~

Note the upstream version of the third party library is not affected.

(cherry picked from commit a648d83)
bagder/ca-bundle@4d3fe66

Document matching mozilla-release changeset.

(cherry picked from commit eb41ff0)
@akien-mga akien-mga force-pushed the 3.4-ci-build-warning-fixes branch from 7a3a6b8 to d5345b7 Compare November 6, 2024 10:30
@akien-mga akien-mga marked this pull request as ready for review November 6, 2024 11:05
@akien-mga akien-mga requested a review from a team as a code owner November 6, 2024 11:05
@akien-mga
Copy link
Member Author

Alright, finally building again on CI for all our targets with warnings=all.

@akien-mga akien-mga merged commit 01621dd into godotengine:3.4 Nov 6, 2024
13 checks passed
@akien-mga akien-mga deleted the 3.4-ci-build-warning-fixes branch November 6, 2024 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants