Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] memtest86+: update to 6.20, adopt.
@ 2023-06-12 14:13 classabbyamp
  2023-06-13 12:27 ` [PR PATCH] [Merged]: " abenson
  0 siblings, 1 reply; 2+ messages in thread
From: classabbyamp @ 2023-06-12 14:13 UTC (permalink / raw)
  To: ml

[-- 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)'

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: memtest86+: update to 6.20, adopt.
  2023-06-12 14:13 [PR PATCH] memtest86+: update to 6.20, adopt classabbyamp
@ 2023-06-13 12:27 ` abenson
  0 siblings, 0 replies; 2+ messages in thread
From: abenson @ 2023-06-13 12:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 399 bytes --]

There's a merged pull request on the void-packages repository

memtest86+: update to 6.20, adopt.
https://github.com/void-linux/void-packages/pull/44388

Description:
- 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**



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-13 12:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-12 14:13 [PR PATCH] memtest86+: update to 6.20, adopt classabbyamp
2023-06-13 12:27 ` [PR PATCH] [Merged]: " abenson

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).