Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/memtest86+/
Date: Wed, 26 May 2021 08:33:42
Message-Id: 1622017994.1de888535d7c255762e0fbcd50a119ac53f31f54.soap@gentoo
1 commit: 1de888535d7c255762e0fbcd50a119ac53f31f54
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 26 08:33:14 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Wed May 26 08:33:14 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1de88853
7
8 sys-apps/memtest86+: drop 5.01-r4
9
10 Signed-off-by: David Seifert <soap <AT> gentoo.org>
11
12 sys-apps/memtest86+/memtest86+-5.01-r4.ebuild | 114 --------------------------
13 1 file changed, 114 deletions(-)
14
15 diff --git a/sys-apps/memtest86+/memtest86+-5.01-r4.ebuild b/sys-apps/memtest86+/memtest86+-5.01-r4.ebuild
16 deleted file mode 100644
17 index d10fc874b00..00000000000
18 --- a/sys-apps/memtest86+/memtest86+-5.01-r4.ebuild
19 +++ /dev/null
20 @@ -1,114 +0,0 @@
21 -# Copyright 1999-2021 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI="6"
25 -
26 -inherit mount-boot epatch toolchain-funcs
27 -
28 -DESCRIPTION="Memory tester based on memtest86"
29 -HOMEPAGE="http://www.memtest.org/"
30 -SRC_URI="http://www.memtest.org/download/${PV}/${P}.tar.gz"
31 -
32 -LICENSE="GPL-2"
33 -SLOT="0"
34 -KEYWORDS="-* amd64 x86"
35 -IUSE="+boot floppy iso serial"
36 -
37 -BOOTDIR="/boot/memtest86plus"
38 -QA_PRESTRIPPED="${BOOTDIR}/memtest /usr/share/${PN}/memtest"
39 -QA_FLAGS_IGNORED="${BOOTDIR}/memtest /usr/share/${PN}/memtest"
40 -
41 -RDEPEND="floppy? ( sys-fs/mtools )"
42 -DEPEND="iso? ( app-cdr/cdrtools )"
43 -
44 -pkg_pretend() {
45 - use boot && mount-boot_pkg_pretend
46 -}
47 -
48 -src_prepare() {
49 - sed -i -e 's,0x10000,0x100000,' memtest.lds || die
50 - epatch "${FILESDIR}/${P}-gcc-473.patch" \
51 - "${FILESDIR}/${P}-hardcoded_cc.patch"
52 - epatch "${FILESDIR}"/${P}-no-scp.patch
53 - epatch "${FILESDIR}"/${P}-io-extern-inline.patch #548312
54 - epatch "${FILESDIR}"/${P}-reboot-def.patch #548312
55 - epatch "${FILESDIR}"/${P}-no-clean.patch #557890
56 - epatch "${FILESDIR}"/${P}-no-C-headers.patch #592638
57 - epatch "${FILESDIR}"/${P}-test-random-cflags.patch #590974
58 -
59 - sed -i 's:genisoimage:mkisofs:' makeiso.sh || die
60 - if use serial ; then
61 - sed -i \
62 - -e '/^#define SERIAL_CONSOLE_DEFAULT/s:0:1:' \
63 - config.h \
64 - || die "sed failed"
65 - fi
66 - default
67 -}
68 -
69 -src_configure() {
70 - tc-ld-disable-gold #580212
71 - tc-export AS CC LD
72 -}
73 -
74 -src_compile() {
75 - emake
76 - if use iso ; then
77 - ./makeiso.sh || die
78 - fi
79 -}
80 -
81 -src_test() { :; }
82 -
83 -src_install() {
84 - if use boot; then
85 - insinto "${BOOTDIR}"
86 - doins memtest memtest.bin
87 - fi
88 -
89 - insinto /usr/share/${PN}
90 - use iso && newins mt*.iso memtest.iso
91 - doins memtest memtest.bin
92 -
93 - exeinto /etc/grub.d
94 - newexe "${FILESDIR}"/39_${PN}-r1 39_${PN}
95 -
96 - dodoc README README.build-process FAQ changelog
97 -
98 - if use floppy ; then
99 - dobin "${FILESDIR}"/make-memtest86+-boot-floppy
100 - doman "${FILESDIR}"/make-memtest86+-boot-floppy.1
101 - fi
102 -}
103 -
104 -pkg_preinst() {
105 - use boot && mount-boot_pkg_preinst
106 -}
107 -
108 -pkg_postinst() {
109 - if use boot; then
110 - mount-boot_pkg_postinst
111 -
112 - elog "memtest86+ has been installed in ${BOOTDIR}/"
113 - elog "You may wish to update your bootloader configs by adding these lines:"
114 - elog " - For grub2 just run grub-mkconfig, a configuration file is installed"
115 - elog " as /etc/grub.d/39_${PN}"
116 - elog " - For grub legacy: (replace '?' with correct numbers for your boot partition)"
117 - elog " > title=${PN}"
118 - elog " > root (hd?,?)"
119 - elog " > kernel ${BOOTDIR}/memtest.bin"
120 - elog " - For lilo:"
121 - elog " > image = ${BOOTDIR}/memtest.bin"
122 - elog " > label = ${PN}"
123 - elog ""
124 - elog "Note: For older configs, you might have to change from 'memtest' to 'memtest.bin'."
125 - fi
126 -}
127 -
128 -pkg_prerm() {
129 - use boot && mount-boot_pkg_prerm
130 -}
131 -
132 -pkg_postrm() {
133 - use boot && mount-boot_pkg_postrm
134 -}