me
/
guix
Archived
1
0
Fork 0

gnu: memtest86+: Update to 6.00.

* gnu/packages/hardware.scm (memtest86+): Update to 6.00.
[source]: Use GIT-FETCH & GIT-FILE-NAME.
[arguments]: Stop forcing #:system i686-linux.  Instead, honour the
target word size in a new 'enter-build-directory phase.
Remove custom 'build phase: ‘memtest’ was replaced by ‘memtest.efi’.
Adjust the 'install phase accordingly, and install only ‘README.md’.
[native-inputs]: Remove gcc-4.9.
[description]: Remove obsolete BIOS limitation.
master
Tobias Geerinckx-Rice 2022-10-23 02:00:02 +02:00
parent 75bf5dac2e
commit e940828ccf
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 17 additions and 28 deletions

View File

@ -799,29 +799,27 @@ specific SMBIOS tables.")
(define-public memtest86+ (define-public memtest86+
(package (package
(name "memtest86+") (name "memtest86+")
;; Update the description when/if UEFI support is released. (version "6.00")
(version "5.01")
(source (source
(origin (origin
(method url-fetch) (method git-fetch)
(uri (string-append "https://www.memtest.org/download/5.01/memtest86+-" (uri (git-reference
version ".tar.gz")) (url "https://github.com/memtest86plus/memtest86plus")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 "0fch1l55753y6jkk0hj8f6vw4h1kinkn9ysp22dq5g9zjnvjf88l")))) (base32 "0fv605blaf4z0jyl1wp37x5x014dkp0z0a0fh114ws62fhnhdnlv"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:system "i686-linux" ; the result runs outside of any OS `(#:tests? #f ; no way to test this
#:tests? #f ; no way to test this
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(delete 'configure) ; no configure script (delete 'configure) ; no configure script
(replace 'build (add-before 'build 'enter-build-directory
;; The default 'make all' does wonderful things, like scp(1) a file to
;; 192.168.0.12. Build the bootable images and nothing more.
(lambda _ (lambda _
(invoke "make" (chdir ,(if (target-x86-32?)
"memtest" ; ELF executable "build32"
"memtest.bin"))) ; DOS/MBR boot sector "build64"))))
(replace 'install (replace 'install
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
@ -830,17 +828,10 @@ specific SMBIOS tables.")
(for-each (for-each
(lambda (file) (lambda (file)
(install-file file lib)) (install-file file lib))
(list "memtest" (list "memtest.bin"
"memtest.bin")) "memtest.efi"))
(for-each (chdir "..")
(lambda (file) (install-file "README.md" doc)))))))
(install-file file doc))
(list "FAQ"
"README"))
#t))))))
(native-inputs
;; Newer GCCs fail with a deluge of "multiple definition of `__foo'" errors.
(list gcc-4.9))
(supported-systems (list "i686-linux" "x86_64-linux")) (supported-systems (list "i686-linux" "x86_64-linux"))
(home-page "https://www.memtest.org/") (home-page "https://www.memtest.org/")
(synopsis "Thorough real-mode memory tester") (synopsis "Thorough real-mode memory tester")
@ -851,9 +842,7 @@ again, and verifies whether the result is the same as what was written. This
can help debug even intermittent and non-deterministic errors. can help debug even intermittent and non-deterministic errors.
It runs independently of any operating system, at computer boot-up, so that it It runs independently of any operating system, at computer boot-up, so that it
can scan as much of your RAM as possible for hardware defects. can scan as much of your RAM as possible for hardware defects.")
Memtest86+ cannot currently be used on computers booted with UEFI.")
(license license:gpl2))) (license license:gpl2)))
(define-public memtester (define-public memtester