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

tinygo: 0.30.0 -> 0.31.1 #262346

Merged
merged 4 commits into from
Mar 4, 2024
Merged

tinygo: 0.30.0 -> 0.31.1 #262346

merged 4 commits into from
Mar 4, 2024

Conversation

aykevl
Copy link
Contributor

@aykevl aykevl commented Oct 20, 2023

Description of changes

Update to version 0.31.0, and simplify the package quite a bit.
Due to changes since 0.30.0, many of the patches can now be dropped.

One functional change is the removal of the wasi-libc dependency: this PR makes sure we build our own version (which is needed, see the comment for details).

WIP, because 0.31.0 hasn't been released yet. Just wanted to make sure this is available in advance. (There have been a lot of Nix related changes, and I wanted to test them).

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot requested review from Madouura and muscaln October 20, 2023 22:41
@aykevl aykevl mentioned this pull request Feb 7, 2024
@aykevl aykevl changed the title [WIP] tinygo: 0.30.0 -> 0.31.0 [WIP] tinygo: 0.30.0 -> 0.31.1 Feb 29, 2024
@aykevl aykevl marked this pull request as ready for review February 29, 2024 17:15
@aykevl aykevl changed the title [WIP] tinygo: 0.30.0 -> 0.31.1 tinygo: 0.30.0 -> 0.31.1 Feb 29, 2024
@aykevl
Copy link
Contributor Author

aykevl commented Feb 29, 2024

I've updated the package to the v0.31.1, which is our last release. It is now ready for review.

Copy link
Contributor

Choose a reason for hiding this comment

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

Could you cherry pick #286984?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, thank you! I was able to remove the buildid workaround patch with your patch.
If I understand correctly, all it does is make sure the binary has a valid build ID? That is, it make sure the build ID isn't stripped?

Copy link
Contributor

Choose a reason for hiding this comment

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

If I understand correctly, all it does is make sure the binary has a valid build ID? That is, it make sure the build ID isn't stripped?

Yes, build id is set to empty value by default with #276685.

@ofborg ofborg bot requested a review from muscaln February 29, 2024 17:37
@muscaln
Copy link
Contributor

muscaln commented Mar 4, 2024

Result of nixpkgs-review pr 262346 run on x86_64-linux 1

1 package built:
  • tinygo

Copy link
Contributor

@muscaln muscaln left a comment

Choose a reason for hiding this comment

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

The version in commit message should be 0.31.1, other than that lgtm.

aykevl and others added 4 commits March 4, 2024 20:17
I've dropped a number of patches that were unnecessary after some
improvements in TinyGo to make it work better with in a Nix environment.
This looks cleaner to me, although I don't know the usual Nix convention
for this sort of thing.
We need our own build because we modify the build flags in a particular
way. Also, we've only tested wasi-libc at the version pinned in the
submodule, later versions may or may not work correctly.
@aykevl
Copy link
Contributor Author

aykevl commented Mar 4, 2024

The version in commit message should be 0.31.1

Oops, fixed now.

@ofborg ofborg bot requested a review from muscaln March 4, 2024 19:41
@kirillrdy kirillrdy merged commit 675b57f into NixOS:master Mar 4, 2024
22 of 23 checks passed
@aykevl aykevl deleted the tinygo-v0.31.0 branch March 5, 2024 13:05
@pbsds pbsds mentioned this pull request Apr 4, 2024
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.

3 participants