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

[staging] ninja: 1.11.1 -> 1.12.1 #303416

Merged
merged 4 commits into from
May 25, 2024
Merged

[staging] ninja: 1.11.1 -> 1.12.1 #303416

merged 4 commits into from
May 25, 2024

Conversation

JohnRTitor
Copy link
Contributor

@JohnRTitor JohnRTitor commented Apr 11, 2024

Description of changes

Current meson version can not be built using ninja 1.12, so use a patch from upstream (mesonbuild/meson@1b9eb6f) to allow building meson.

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/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 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.

Add a 👍 reaction to pull requests you find important.

@JohnRTitor
Copy link
Contributor Author

@NickCao ofborg eval is failing, even after multiple rebase. I can't seem to figure out what's wrong from the logs. I can successfully build locally and using ofborg here though.

Copy link
Member

@NickCao NickCao left a comment

Choose a reason for hiding this comment

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

Skimmed through upstream diff, LGTM. Running nixpkgs-review.

@NickCao
Copy link
Member

NickCao commented Apr 14, 2024

@ofborg eval

@NickCao
Copy link
Member

NickCao commented Apr 17, 2024

This seems to somehow break meson.

@NickCao
Copy link
Member

NickCao commented Apr 17, 2024

This seems to somehow break meson.

Should be fixed by mesonbuild/meson@1b9eb6f

@JohnRTitor
Copy link
Contributor Author

Should be fixed by mesonbuild/meson@1b9eb6f

Should I make a PR to fetch the referenced commit as a patch to meson? Should allow building it I believe.

@NickCao
Copy link
Member

NickCao commented Apr 17, 2024

Should I make a PR to fetch the referenced commit as a patch to meson? Should allow building it I believe.

Just add that to this PR.

@JohnRTitor
Copy link
Contributor Author

JohnRTitor commented Apr 18, 2024

Looks like coreutils is failing at checkPhase when building meson.

============================================================================
Testsuite summary for GNU coreutils 9.5
============================================================================
# TOTAL: 653
# PASS:  486
# SKIP:  166
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See ./tests/test-suite.log
Please report to bug-coreutils@gnu.org
============================================================================
make[4]: *** [Makefile:22562: tests/test-suite.log] Error 1
make[4]: Leaving directory '/build/coreutils-9.5'
make[3]: *** [Makefile:22670: check-TESTS] Error 2
make[3]: Leaving directory '/build/coreutils-9.5'
make[2]: *** [Makefile:22930: check-am] Error 2
make[2]: Leaving directory '/build/coreutils-9.5'
make[1]: *** [Makefile:22447: check-recursive] Error 1
make[1]: Leaving directory '/build/coreutils-9.5'
make: *** [Makefile:22932: check] Error 2

@JohnRTitor
Copy link
Contributor Author

Likely because of recent update to 9.5. #299945

Pinging @LeSuisse @dasJ

@LeSuisse
Copy link
Contributor

Hard to tell from just this sumary but if this a Musl & coreutils thing see #304856

@JohnRTitor
Copy link
Contributor Author

JohnRTitor commented Apr 18, 2024

Hard to tell from just this sumary but if this a Musl & coreutils thing see #304856

FAIL: tests/shred/shred-exact.sh
# XFAIL: 0
# FAIL:  1
FAIL: tests/shred/shred-exact
FAIL tests/shred/shred-exact.sh (exit status: 1)
# XFAIL: 0
# FAIL:  1

@LeSuisse Looks like this exact test is failing. From nix log /nix/store/00zxacigf1pws8gpzyqj13gwjy69va64-coreutils-9.5.drv | grep FAIL | less

@JohnRTitor
Copy link
Contributor Author

@ofborg test coreutils

Copy link
Member

@vcunat vcunat left a comment

Choose a reason for hiding this comment

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

error: hash mismatch in fixed-output derivation '/nix/store/13zfv027g2bzjdwkcra1f2a72ap59md0-allow-building-with-ninja-1.12.diff.drv':
         specified: sha256-2rlIQHXGox2eeDzqZQz1TYYUqLDhrDqGXHusM8y6+LY=
            got:    sha256-Y+uEXomtYcLQ8tXnopceh/ZGUpYCSc6oJUkbyRpg9HY=

I see you used hash for the file before fetchpatch edited it (which is the difference from fetchurl).

@JohnRTitor JohnRTitor force-pushed the ninja branch 2 times, most recently from cfc81b7 to 4d39c7e Compare May 13, 2024 06:01
@JohnRTitor JohnRTitor changed the title [staging] ninja: 1.11.1 -> 1.12.0 [staging] ninja: 1.11.1 -> 1.12.1 May 13, 2024
add nix-update-script
move to finalAttrs
@JohnRTitor
Copy link
Contributor Author

@ofborg eval
@ofborg build ninja
@ofborg build meson

@JohnRTitor
Copy link
Contributor Author

@vcunat since 24.05 have been branched-off already, I guess it's time to move this PR forward?

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/3981

Copy link
Member

@vcunat vcunat left a comment

Choose a reason for hiding this comment

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

Looks good, meson builds for me. News best at: https://github.com/ninja-build/ninja/releases

@vcunat vcunat merged commit 9d9c87e into NixOS:staging May 25, 2024
32 checks passed
@JohnRTitor JohnRTitor deleted the ninja branch May 25, 2024 07:14
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.

6 participants