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

Switch to building GMP from an unofficial git mirror #14767

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

cameel
Copy link
Member

@cameel cameel commented Jan 4, 2024

Replaces #14760.
Note: This should not be merged without #14768.

This is just a minimal part of #14760 that's sufficient to fix the GMP build.

In the end I decided to submit this as a new PR rather than take over #14760. The original PR has some other unrelated changes (like evmone or cmake) and generally looks like it's just a messy branch meant to test things out rather to be merged (it's even called a "sandbox"). It also has some minor refactors and I'd actually like to add more (like switching to a build from Ubuntu sources or installing cmake from a package), but might require some discussion and we need the GMP fix soon, so I'm going to do all that in a separate PR.

@cameel cameel self-assigned this Jan 4, 2024
@cameel cameel force-pushed the fix-gmp-build-in-ossfuzz-docker branch from c38424d to 5fd52f3 Compare January 4, 2024 19:00
Copy link

github-actions bot commented Jan 4, 2024

solbuildpackpusher/solidity-buildpack-deps:ubuntu.clang.ossfuzz-3 [solbuildpackpusher/solidity-buildpack-deps@sha256:46a6df64a21dc8914a8e4d43f50a1f56a942b01cbc1c30741ca28239e4ae081a].

Copy link
Contributor

@bshastry bshastry left a comment

Choose a reason for hiding this comment

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

LGTM if build and test passes.

@cameel cameel added the has dependencies The PR depends on other PRs that must be merged first label Jan 5, 2024
@cameel cameel marked this pull request as ready for review January 5, 2024 15:42
@cameel cameel merged commit b54a554 into develop Jan 5, 2024
68 of 69 checks passed
@cameel cameel deleted the fix-gmp-build-in-ossfuzz-docker branch January 5, 2024 17:27
test \
"$(tar --create gmp/ --sort=name --mtime=1970-01-01Z --owner=0 --group=0 --numeric-owner | sha256sum)" = \
"d606ff6a4ce98692f9920031e85ea8fcf4a65ce1426f6f0048b8794aefed174b -"; \
# NOTE: This removes also libgmp.so, which git depends on
Copy link
Collaborator

Choose a reason for hiding this comment

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

And also wget, and probably a ton of other stuff.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, but git is relevant because we're using it a few lines above. The comment is there to explain why the removal of the installed GMP has to be done here and not before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build system 🏗️ has dependencies The PR depends on other PRs that must be merged first
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants