Merge pull request #176049 from LunNova/lunnova/memtest-update

memtest86+: 5.01-coreboot-002 -> 6.00-beta2
This commit is contained in:
Sandro 2022-06-06 14:29:51 +02:00 committed by GitHub
commit 2cdcb50406
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 14 deletions

View File

@ -116,6 +116,13 @@
and require manual remediation.
</para>
</listitem>
<listitem>
<para>
memtest86+ was updated from 5.00-coreboot-002 to 6.00-beta2.
It is now the upstream version from https://www.memtest.org/,
as coreboots fork is no longer available.
</para>
</listitem>
</itemizedlist>
</section>
</section>

View File

@ -51,4 +51,6 @@ In addition to numerous new and upgraded packages, this release has the followin
- Matrix Synapse now requires entries in the `state_group_edges` table to be unique, in order to prevent accidentally introducing duplicate information (for example, because a database backup was restored multiple times). If your Synapse database already has duplicate rows in this table, this could fail with an error and require manual remediation.
- memtest86+ was updated from 5.00-coreboot-002 to 6.00-beta2. It is now the upstream version from https://www.memtest.org/, as coreboot's fork is no longer available.
<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->

View File

@ -1,25 +1,29 @@
{ lib, stdenv, fetchgit }:
{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation {
stdenv.mkDerivation (finalAttrs: {
pname = "memtest86+";
version = "5.01-coreboot-002";
version = "6.00-beta2";
src = fetchgit {
url = "https://review.coreboot.org/memtest86plus.git";
rev = "v002";
sha256 = "0cwx20yja24bfknqh1rjb5rl2c0kwnppzsisg1dibbak0l8mxchk";
src = fetchFromGitHub {
owner = "memtest86plus";
repo = "memtest86plus";
rev = "v${finalAttrs.version}";
hash = "sha256-U3++iJa0Zj3g2SZTJ0jom7raAu+LGqiOKZEputs/YfM=";
};
NIX_CFLAGS_COMPILE = "-I. -std=gnu90";
# Binaries are booted directly by BIOS/UEFI or bootloader
# and should not be patched/stripped
dontPatchELF = true;
dontStrip = true;
hardeningDisable = [ "all" ];
passthru.efi = "${finalAttrs.finalPackage}/memtest.efi";
buildFlags = [ "memtest.bin" ];
doCheck = false; # fails
preBuild = ''
cd ${if stdenv.isi686 then "build32" else "build64"}
'';
installPhase = ''
install -Dm0444 -t $out/ memtest.bin
install -Dm0444 -t $out/ memtest.bin memtest.efi
'';
meta = {
@ -27,5 +31,6 @@ stdenv.mkDerivation {
description = "A tool to detect memory errors";
license = lib.licenses.gpl2;
platforms = [ "x86_64-linux" "i686-linux" ];
maintainers = [ lib.maintainers.LunNova ];
};
}
})