Skip to content

edk2: 202402 -> 202405 - #321143

Merged
adamcstephens merged 4 commits into
NixOS:masterfrom
adamcstephens:edk2/202405
Jul 7, 2024
Merged

adamcstephens merged 4 commits into
NixOS:masterfrom
adamcstephens:edk2/202405

Conversation

@adamcstephens

@adamcstephens adamcstephens commented Jun 20, 2024 •

Copy link
Copy Markdown
Contributor

Description of changes

https://github.com/tianocore/edk2/releases/tag/edk2-stable202405

  • edk2: simplify src by using postFetch
  • edk2: move to by-name
  • edk2: add updateScript and changelog

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.11 Release Notes (or backporting 23.11 and 24.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.

Add a 👍 reaction to pull requests you find important.

❯ ls -ld result-new result-statusquo
lrwxrwxrwx - adam 19 Jun 21:20 result-new -> /nix/store/srk9dl484fh6fr4qpzxah0cwmhhz86xd-source
lrwxrwxrwx - adam 19 Jun 21:09 result-statusquo -> /nix/store/p3kl9i7xwpaczbh30riqgj1z51w1zilr-edk2-unvendored-src

❯ diff -r result-new result-statusquo
diff: result-new/EmulatorPkg/Unix/Host/X11IncludeHack: No such file or directory
diff: result-statusquo/EmulatorPkg/Unix/Host/X11IncludeHack: No such file or directory
@adamcstephens

adamcstephens commented Jun 20, 2024 •

Copy link
Copy Markdown
Contributor Author

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

12 packages built:
  • OVMF
  • OVMF-cloud-hypervisor
  • OVMF-cloud-hypervisor.fd
  • OVMF.fd
  • OVMFFull
  • OVMFFull.fd
  • edk2
  • edk2-uefi-shell
  • lxd-lts
  • multipass
  • quickemu
  • quickgui

Result of nixpkgs-review pr 321143 run on aarch64-linux 1

8 packages built:
  • OVMF
  • OVMF.fd
  • OVMFFull
  • OVMFFull.fd
  • edk2
  • edk2-uefi-shell
  • lxd-lts
  • quickemu

@adamcstephens
adamcstephens requested a review from Mic92 June 20, 2024 02:19
@ofborg
ofborg Bot requested a review from LunNova June 20, 2024 03:40
@ofborg ofborg Bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Jun 20, 2024
Comment thread pkgs/by-name/ed/edk2/package.nix Resolved
@adamcstephens
adamcstephens marked this pull request as draft June 20, 2024 13:53
@adamcstephens
adamcstephens marked this pull request as ready for review July 3, 2024 14:10
@adamcstephens
adamcstephens merged commit acc0b59 into NixOS:master Jul 7, 2024
@adamcstephens
adamcstephens deleted the edk2/202405 branch July 7, 2024 12:58
@RaitoBezarius

Copy link
Copy Markdown
Member
error: hash mismatch in fixed-output derivation '/nix/store/lmr9v0wlgrm41zb9cgwvqlj7mg43b7zw-source.drv':
         specified: sha256-7vNodHocwqQiO0ZXtqo8lEOFyt8JkFHcAathEhrKWE0=
            got:    sha256-4JDeA4QBa/FYqgHi5l6FT9EdcTtFvIbKzO+ywT1BsC8=

OVMF does not build anymore.

@superherointj superherointj mentioned this pull request Jul 7, 2024
rev = "edk2-stable${edk2.version}";
fetchSubmodules = true;
hash = "sha256-Nurm6QNKCyV6wvbj0ELdYAL7mbZ0yg/tTwnEJ+N18ng=";
hash = "sha256-7vNodHocwqQiO0ZXtqo8lEOFyt8JkFHcAathEhrKWE0=";

@superherointj superherointj Jul 7, 2024 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please verify if hash here should be:
sha256-4JDeA4QBa/FYqgHi5l6FT9EdcTtFvIbKzO+ywT1BsC8=

(This fixes build for me.)

To speed things up, I have proposed a PR at:
#325267

Please review it, and particularly verify on why the hash has/wasn't changed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The hash mismatch is caused by edk2.src.postFetch referencing openssl.src, so this will break whenever openssl is updated. The last ofborg run on this PR was triggered before #317238 was merged into master.

@superherointj superherointj Jul 7, 2024 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

mjoerg, thanks for the explanation.

Would it make sense to add edk2 package to openssl passthru.tests, such that, whenever someone is bumping openssl is also going to be hinted that edk2 hash should be bumped too?

What other solution there is?

Is current update script going to account for postFetch changes?

@superherointj superherointj mentioned this pull request Jul 7, 2024
superherointj added a commit to superherointj/nixpkgs that referenced this pull request Jul 7, 2024
@Mic92

Mic92 commented Jul 7, 2024

Copy link
Copy Markdown
Member

Fix is here: #325267

@adamcstephens adamcstephens mentioned this pull request Jul 8, 2024
2 of 13 tasks
adamcstephens added a commit to adamcstephens/nixpkgs that referenced this pull request Jul 8, 2024
Revert NixOS#321143 as nixos boot tests are hanging and timing out.

Moving unvendor to postFetch added a dependency on openssl in the source fetching, meaning an openssl change causes a hash mismatch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants