From: classabbyamp <classabbyamp@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] memtest86+: update to 6.20, adopt.
Date: Mon, 12 Jun 2023 16:13:27 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-44388@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 569 bytes --]
There is a new pull request by classabbyamp against master on the void-packages repository
https://github.com/classabbyamp/void-packages update/memtest86
https://github.com/void-linux/void-packages/pull/44388
memtest86+: update to 6.20, adopt.
- improve grub hook to support the efi bundle from upstream
- fix update check
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
A patch file from https://github.com/void-linux/void-packages/pull/44388.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-update/memtest86-44388.patch --]
[-- Type: text/x-diff, Size: 4200 bytes --]
From 61c7583431a4ffe83e22f678de499a3bed99940d Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Mon, 12 Jun 2023 10:10:36 -0400
Subject: [PATCH] memtest86+: update to 6.20, adopt.
- improve grub hook to support the efi bundle from upstream
- fix update check
---
srcpkgs/memtest86+/files/20_memtest86+ | 62 +++++++++++++++++++-------
srcpkgs/memtest86+/template | 17 ++++---
srcpkgs/memtest86+/update | 3 +-
3 files changed, 55 insertions(+), 27 deletions(-)
diff --git a/srcpkgs/memtest86+/files/20_memtest86+ b/srcpkgs/memtest86+/files/20_memtest86+
index aa9b84013548..38648b365f86 100644
--- a/srcpkgs/memtest86+/files/20_memtest86+
+++ b/srcpkgs/memtest86+/files/20_memtest86+
@@ -9,21 +9,49 @@ fi
. /usr/share/grub/grub-mkconfig_lib
-if test -e /boot/memtest86+ ; then
- MEMTESTPATH=$( make_system_path_relative_to_its_root "/boot/memtest86+" )
- echo "Found memtest86+ image: $MEMTESTPATH" >&2
- cat << EOF
-menuentry "Memory test (memtest86+)" {
-EOF
- prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
- cat << EOF
- linux16 $MEMTESTPATH
-}
-menuentry "Memory test (memtest86+, serial console 115200)" {
-EOF
- prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
- cat << EOF
- linux16 $MEMTESTPATH console=ttyS0,115200n8
-}
-EOF
+if [ "${grub_platform}" != "efi" ]; then
+ MEMTESTSFX="bin"
+else
+ MEMTESTSFX="efi"
+fi
+
+if [ -e /boot/memtest.bin ]; then
+ MEMTESTPATH=$( make_system_path_relative_to_its_root "/boot/memtest.bin" )
+ echo "Found memtest86+ image: $MEMTESTPATH" >&2
+ cat <<- EOF
+ if [ "\${grub_platform}" != "efi" ]; then
+ menuentry "Memory test (memtest86+)" {
+ EOF
+ prepare_grub_to_access_device "${GRUB_DEVICE_BOOT}" | sed -e "s/^/\t/"
+ cat <<- EOF
+ linux $MEMTESTPATH
+ }
+ menuentry "Memory test (memtest86+, serial console 115200)" {
+ EOF
+ prepare_grub_to_access_device "${GRUB_DEVICE_BOOT}" | sed -e "s/^/\t/"
+ cat <<- EOF
+ linux $MEMTESTPATH console=ttyS0,115200n8
+ }
+ fi
+ EOF
+fi
+if [ -e /boot/memtest.efi ]; then
+ MEMTESTPATH=$( make_system_path_relative_to_its_root "/boot/memtest.efi" )
+ echo "Found memtest86+ image: $MEMTESTPATH" >&2
+ cat <<- EOF
+ if [ "\${grub_platform}" = "efi" ]; then
+ menuentry "Memory test (memtest86+)" {
+ EOF
+ prepare_grub_to_access_device "${GRUB_DEVICE_BOOT}" | sed -e "s/^/\t/"
+ cat <<- EOF
+ linux $MEMTESTPATH
+ }
+ menuentry "Memory test (memtest86+, serial console 115200)" {
+ EOF
+ prepare_grub_to_access_device "${GRUB_DEVICE_BOOT}" | sed -e "s/^/\t/"
+ cat <<- EOF
+ linux $MEMTESTPATH console=ttyS0,115200n8
+ }
+ fi
+ EOF
fi
diff --git a/srcpkgs/memtest86+/template b/srcpkgs/memtest86+/template
index ecffaa62c401..1fc9559e9908 100644
--- a/srcpkgs/memtest86+/template
+++ b/srcpkgs/memtest86+/template
@@ -1,20 +1,19 @@
# Template file for 'memtest86+'
pkgname=memtest86+
-version=5.01
-revision=6
+version=6.20
+revision=1
archs="i686* x86_64*"
short_desc="Advanced Memory Diagnostic Tool - upstream binary"
-maintainer="Orphaned <orphan@voidlinux.org>"
+maintainer="classabbyamp <void@placeviolette.net>"
license="GPL-2.0-or-later"
homepage="http://www.memtest.org"
-distfiles="https://www.memtest.org/download/${version}/memtest86+-${version}.bin.gz"
-checksum=78f6625b093de69537d99ed68e35b2a9e5d666504cb2533affab1967bd888fc8
-
-create_wrksrc=yes
+distfiles="https://www.memtest.org/download/v${version}/mt86plus_${version}.binaries.zip"
+checksum=ccabd43063b65e53be4fddb08de0cc6bedc94b4ab44706855e4145e17fa52c72
nostrip=yes
noverifyrdeps=yes
do_install() {
- vinstall memtest86+-5.01.bin 755 boot memtest86+
- vinstall ${FILESDIR}/20_memtest86+ 755 etc/grub.d
+ vinstall "memtest${XBPS_TARGET_WORDSIZE}.bin" 755 boot memtest.bin
+ vinstall "memtest${XBPS_TARGET_WORDSIZE}.efi" 755 boot memtest.efi
+ vinstall "${FILESDIR}/20_memtest86+" 755 etc/grub.d
}
diff --git a/srcpkgs/memtest86+/update b/srcpkgs/memtest86+/update
index 7730266b3518..9aa0b361aefd 100644
--- a/srcpkgs/memtest86+/update
+++ b/srcpkgs/memtest86+/update
@@ -1 +1,2 @@
-ignore="*[!0-9]"
+site="https://github.com/memtest86plus/memtest86plus/tags"
+pattern='/archive/refs/tags/v\K[0-9.]+(?=\.tar\.gz)'
next reply other threads:[~2023-06-12 14:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-12 14:13 classabbyamp [this message]
2023-06-13 12:27 ` [PR PATCH] [Merged]: " abenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-44388@inbox.vuxu.org \
--to=classabbyamp@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).