Merged
Conversation
Member
|
What the hell EDK2… |
RaitoBezarius
approved these changes
Jul 6, 2023
Member
|
maybe we should just take openssl from nixpkgs. something like this would probably work: --- a/pkgs/development/compilers/edk2/default.nix
+++ b/pkgs/development/compilers/edk2/default.nix
@@ -8,6 +8,7 @@
, llvmPackages_9
, lib
, buildPackages
+, openssl
}:
let
@@ -46,6 +47,12 @@ edk2 = buildStdenv.mkDerivation {
})
];
+ prePatch = ''
+ rm -rf CryptoPkg/Library/OpensslLib/openssl
+ tar xf ${openssl.src} -C CryptoPkg/Library/OpensslLib
+ mv -v CryptoPkg/Library/OpensslLib/openssl-* CryptoPkg/Library/OpensslLib/openssl
+ '';
+
# submodules
src = fetchFromGitHub {
owner = "tianocore";
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index a8687892e8c..f6c0befe390 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -7270,7 +7270,9 @@ with pkgs;
edit = callPackage ../applications/editors/edit { };
- edk2 = callPackage ../development/compilers/edk2 { };
+ edk2 = callPackage ../development/compilers/edk2 {
+ openssl = openssl_1_1;
+ };
edk2-uefi-shell = callPackage ../tools/misc/edk2-uefi-shell { }; |
Contributor
Author
|
I can't tell if this is a good or a bad idea. If you look at tianocore/edk2@4ca4041 for example, there are more changes than just changes to the openssl submodule. This may or may not lead to issues when we change the openssl version. |
Member
|
hm, fair enough |
LunNova
approved these changes
Jul 6, 2023
Member
LunNova
left a comment
There was a problem hiding this comment.
Let's merge this first, that approach might be worth doing in another PR but this one should be backported.
Contributor
|
Backport failed for Please cherry-pick the changes locally. git fetch origin release-23.05
git worktree add -d .worktree/backport-241786-to-release-23.05 origin/release-23.05
cd .worktree/backport-241786-to-release-23.05
git checkout -b backport-241786-to-release-23.05
ancref=$(git merge-base 30a8e2f43bd834eaed9a4a32cbbbdd0436351681 2edeba8e6ca61315478ab265221cd4c4dcebe95b)
git cherry-pick -x $ancref..2edeba8e6ca61315478ab265221cd4c4dcebe95b |
12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of changes
https://github.com/tianocore/edk2/releases/tag/edk2-stable202305
This includes "[OpenSSL] Update OpenSSL version to version 1.1.1t to include CVE fix".
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)