Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memtest86plus: Add at v7.00 #3286

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions packages/m/memtest86plus/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name : memtest86plus
version : '7.00'
release : 1
source :
- https://www.memtest.org/download/v7.00/mt86plus_7.00.src.zip : 684fb63a96ef114c4b4a75ed8d8dc8313d7ed2781c13966eb027b7fae8dd9595
homepage : https://www.memtest.org
license : GPL-2.0
component : system.utils
summary : Stand-alone memory tester for x86 and x86-64 architecture computers.
description: |
Memtest86+ provides a more thorough memory check than that provided by BIOS memory tests.

It can be loaded and run either directly by a PC BIOS (legacy or UEFI) or via an intermediate bootloader that supports the Linux 16-bit, 32-bit, 64-bit, or EFI handover boot protocol.

It should work on any Pentium class or later 32-bit or 64-bit x86 CPU.
builddeps :
- tree
build : |
pushd build32
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need a 32-bit build?

%make
popd
pushd build64
%make
popd
tree -l -L 1 build*
install : |
TARGET="$installdir/usr/libexec/memtest86plus"
install -Dm00755 build32/memtest.bin ${TARGET}/build32/memtest.bin
install -Dm00755 build32/memtest.efi ${TARGET}/build32/memtest.efi
install -Dm00755 build64/memtest.bin ${TARGET}/build64/memtest.bin
install -Dm00755 build64/memtest.efi ${TARGET}/build64/memtest.efi
Comment on lines +30 to +31
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be fine for now:

Suggested change
install -Dm00755 build64/memtest.bin ${TARGET}/build64/memtest.bin
install -Dm00755 build64/memtest.efi ${TARGET}/build64/memtest.efi
install -Dm00755 build64/memtest.bin ${TARGET}/memtest.bin
install -Dm00755 build64/memtest.efi ${TARGET}/memtest.efi

cp -v README.md ${TARGET}/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need the readme?

cp -vR grub ${TARGET}/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should either install grub/grub-legacy.cfg into /etc/grub.d/20_memtest86+, or we shouldn't provide them at all and let CBM handle it.

I'm not familiar enough with the grub side of CBM to know what the correct decision is here, so let's just omit this directory for now.

51 changes: 51 additions & 0 deletions packages/m/memtest86plus/pspec_x86_64.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<PISI>
<Source>
<Name>memtest86plus</Name>
<Homepage>https://www.memtest.org</Homepage>
<Packager>
<Name>Rune Morling</Name>
<Email>[email protected]</Email>
</Packager>
<License>GPL-2.0</License>
<PartOf>system.utils</PartOf>
<Summary xml:lang="en">Stand-alone memory tester for x86 and x86-64 architecture computers.</Summary>
<Description xml:lang="en">Memtest86+ provides a more thorough memory check than that provided by BIOS memory tests.

It can be loaded and run either directly by a PC BIOS (legacy or UEFI) or via an intermediate bootloader that supports the Linux 16-bit, 32-bit, 64-bit, or EFI handover boot protocol.

It should work on any Pentium class or later 32-bit or 64-bit x86 CPU.
</Description>
<Archive type="binary" sha1sum="79eb0752a961b8e0d15c77d298c97498fbc89c5a">https://sources.getsol.us/README.Solus</Archive>
</Source>
<Package>
<Name>memtest86plus</Name>
<Summary xml:lang="en">Stand-alone memory tester for x86 and x86-64 architecture computers.</Summary>
<Description xml:lang="en">Memtest86+ provides a more thorough memory check than that provided by BIOS memory tests.

It can be loaded and run either directly by a PC BIOS (legacy or UEFI) or via an intermediate bootloader that supports the Linux 16-bit, 32-bit, 64-bit, or EFI handover boot protocol.

It should work on any Pentium class or later 32-bit or 64-bit x86 CPU.
</Description>
<PartOf>system.utils</PartOf>
<Files>
<Path fileType="executable">/usr/libexec/memtest86plus/README.md</Path>
<Path fileType="executable">/usr/libexec/memtest86plus/build32/memtest.bin</Path>
<Path fileType="executable">/usr/libexec/memtest86plus/build32/memtest.efi</Path>
<Path fileType="executable">/usr/libexec/memtest86plus/build64/memtest.bin</Path>
<Path fileType="executable">/usr/libexec/memtest86plus/build64/memtest.efi</Path>
<Path fileType="executable">/usr/libexec/memtest86plus/grub/grub-efi.cfg</Path>
<Path fileType="executable">/usr/libexec/memtest86plus/grub/grub-legacy.cfg</Path>
<Path fileType="executable">/usr/libexec/memtest86plus/grub/grub-test-efi.cfg</Path>
<Path fileType="executable">/usr/libexec/memtest86plus/grub/grub-test-legacy.cfg</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2024-07-11</Date>
<Version>7.00</Version>
<Comment>Packaging update</Comment>
<Name>Rune Morling</Name>
<Email>[email protected]</Email>
</Update>
</History>
</PISI>