1 |
commit: 2f7d6a63dfed0ce91010bc92f32163591b218894 |
2 |
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 19 13:00:52 2022 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 19 13:14:16 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f7d6a63 |
7 |
|
8 |
sys-apps/memtest86+: drop old |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> |
12 |
|
13 |
sys-apps/memtest86+/Manifest | 1 - |
14 |
sys-apps/memtest86+/files/39_memtest86+ | 67 ------------ |
15 |
.../memtest86+/files/memtest86+-5.01-gcc-473.patch | 33 ------ |
16 |
.../files/memtest86+-5.01-hardcoded_cc.patch | 16 --- |
17 |
.../files/memtest86+-5.01-io-extern-inline.patch | 31 ------ |
18 |
.../files/memtest86+-5.01-no-C-headers.patch | 49 --------- |
19 |
.../files/memtest86+-5.01-no-clean.patch | 19 ---- |
20 |
.../memtest86+/files/memtest86+-5.01-no-scp.patch | 14 --- |
21 |
.../memtest86+/files/memtest86+-5.01-objcopy.patch | 20 ---- |
22 |
.../files/memtest86+-5.01-reboot-def.patch | 15 --- |
23 |
.../files/memtest86+-5.01-test-random-cflags.patch | 21 ---- |
24 |
sys-apps/memtest86+/memtest86+-5.01-r5.ebuild | 115 --------------------- |
25 |
12 files changed, 401 deletions(-) |
26 |
|
27 |
diff --git a/sys-apps/memtest86+/Manifest b/sys-apps/memtest86+/Manifest |
28 |
index 48b2ddc7961f..a3c17016ab5d 100644 |
29 |
--- a/sys-apps/memtest86+/Manifest |
30 |
+++ b/sys-apps/memtest86+/Manifest |
31 |
@@ -1,2 +1 @@ |
32 |
-DIST memtest86+-5.01.tar.gz 214877 BLAKE2B ef63eaabaf6d3d27b85c73618c692dd61cce52f3670a57958d181623888bdc3aa538855da9a82ec2ab70b180938e3df99f0b06f606b2d6f64e8aabbe781b3050 SHA512 d872db35ef733ec8f49094251f2bf6b98cc80eb06d04044be3aecf28d534f24ba293a08b9979b112dbd07cf27368148939a33a32c7010fc9581a3a5b150c94d7 |
33 |
DIST memtest86+-5.31b.tar.gz 227779 BLAKE2B 14aced912bb84115278a3aff7650a3571918b823335aaf7d09880ef10374c320f64878765d93d2ee5a75e2b33ef6c9c4886a9a168955bd77c668f06f5c86a6ca SHA512 ad5891fd0c430ce7a5d0cde2d10dee20b66ad8060d47c3e70e038461d9cde3a78dfc13442b5b09da7c662741945a670353c72dbc08fd5ee8bae82256001a9541 |
34 |
|
35 |
diff --git a/sys-apps/memtest86+/files/39_memtest86+ b/sys-apps/memtest86+/files/39_memtest86+ |
36 |
deleted file mode 100644 |
37 |
index 9c9067a5e736..000000000000 |
38 |
--- a/sys-apps/memtest86+/files/39_memtest86+ |
39 |
+++ /dev/null |
40 |
@@ -1,67 +0,0 @@ |
41 |
-#!/bin/sh |
42 |
- |
43 |
-. /usr/share/grub/grub-mkconfig_lib |
44 |
- |
45 |
-memtest=/boot/memtest86plus/memtest |
46 |
- |
47 |
-memtestbsd=/boot/memtest86plus/memtest.netbsd |
48 |
- |
49 |
-if [ -f "${memtest}" ] && [ -f "${memtestbsd}" ]; then |
50 |
- multiple_memtest=true |
51 |
-fi |
52 |
- |
53 |
-submenu_indentation="" |
54 |
-if [ "${multiple_memtest}" = "true" ] && [ "${GRUB_DISABLE_SUBMENU}" != "y" ]; then |
55 |
- submenu_indentation="${grub_tab}" |
56 |
- cat <<EOF |
57 |
-submenu 'Memtest86+' { |
58 |
-EOF |
59 |
-fi |
60 |
- |
61 |
-if [ -f "${memtest}" ]; then |
62 |
- gettext_printf "Found memtest image: %s\n" "${memtest}" >&2 |
63 |
- |
64 |
- device="$("${grub_probe}" --target=device "${memtest}")" |
65 |
- path="$(make_system_path_relative_to_its_root "${memtest}")" |
66 |
- cat <<EOF |
67 |
-${submenu_indentation}menuentry 'Memtest86+' { |
68 |
-EOF |
69 |
- |
70 |
- if [ -n "{submenu_indentation}" ]; then |
71 |
- prepare_grub_to_access_device "${device}" | grub_add_tab | grub_add_tab |
72 |
- else |
73 |
- prepare_grub_to_access_device "${device}" | grub_add_tab |
74 |
- fi |
75 |
- |
76 |
- cat <<EOF |
77 |
- ${submenu_indentation}linux16 "${path}" |
78 |
-${submenu_indentation}} |
79 |
-EOF |
80 |
-fi |
81 |
- |
82 |
-if [ -f "${memtestbsd}" ]; then |
83 |
- gettext_printf "Found memtest image: %s\n" "${memtestbsd}" >&2 |
84 |
- |
85 |
- device="$("${grub_probe}" --target=device "${memtestbsd}")" |
86 |
- path="$(make_system_path_relative_to_its_root "${memtestbsd}")" |
87 |
- cat <<EOF |
88 |
-${submenu_indentation}menuentry 'Memtest86+ (netbsd)' { |
89 |
-EOF |
90 |
- |
91 |
- if [ -n "${submenu_indentation}" ]; then |
92 |
- prepare_grub_to_access_device "${device}" | grub_add_tab | grub_add_tab |
93 |
- else |
94 |
- prepare_grub_to_access_device "${device}" | grub_add_tab |
95 |
- fi |
96 |
- |
97 |
- cat <<EOF |
98 |
- ${submenu_indentation}knetbsd "${path}" |
99 |
-${submenu_indentation}} |
100 |
-EOF |
101 |
-fi |
102 |
- |
103 |
-if [ "${multiple_memtest}" = "true" ] && [ "${GRUB_DISABLE_SUBMENU}" != "y" ]; then |
104 |
- cat <<EOF |
105 |
-} |
106 |
-EOF |
107 |
-fi |
108 |
|
109 |
diff --git a/sys-apps/memtest86+/files/memtest86+-5.01-gcc-473.patch b/sys-apps/memtest86+/files/memtest86+-5.01-gcc-473.patch |
110 |
deleted file mode 100644 |
111 |
index af011d67c705..000000000000 |
112 |
--- a/sys-apps/memtest86+/files/memtest86+-5.01-gcc-473.patch |
113 |
+++ /dev/null |
114 |
@@ -1,33 +0,0 @@ |
115 |
-http://forum.canardpc.com/threads/110950-fix-controller-loop-error |
116 |
- |
117 |
---- memtest86+-5.01/controller.c |
118 |
-+++ memtest86+-5.01/controller.c |
119 |
-@@ -292,7 +292,7 @@ static void setup_nhm(void) |
120 |
- |
121 |
- /* First, locate the PCI bus where the MCH is located */ |
122 |
- |
123 |
-- for(i = 0; i < sizeof(possible_nhm_bus); i++) { |
124 |
-+ for(i = 0; i < sizeof(possible_nhm_bus) / sizeof(possible_nhm_bus[0]); i++) { |
125 |
- pci_conf_read( possible_nhm_bus[i], 3, 4, 0x00, 2, &vid); |
126 |
- pci_conf_read( possible_nhm_bus[i], 3, 4, 0x02, 2, &did); |
127 |
- vid &= 0xFFFF; |
128 |
-@@ -327,7 +327,7 @@ static void setup_nhm32(void) |
129 |
- ctrl.mode = ECC_NONE; |
130 |
- |
131 |
- /* First, locate the PCI bus where the MCH is located */ |
132 |
-- for(i = 0; i < sizeof(possible_nhm_bus); i++) { |
133 |
-+ for(i = 0; i < sizeof(possible_nhm_bus) / sizeof(possible_nhm_bus[0]); i++) { |
134 |
- pci_conf_read( possible_nhm_bus[i], 3, 4, 0x00, 2, &vid); |
135 |
- pci_conf_read( possible_nhm_bus[i], 3, 4, 0x02, 2, &did); |
136 |
- vid &= 0xFFFF; |
137 |
---- memtest86+-5.01/Makefile |
138 |
-+++ memtest86+-5.01/Makefile |
139 |
-@@ -12,7 +12,7 @@ FDISK=/dev/fd0 |
140 |
- AS=as -32 |
141 |
- CC=gcc |
142 |
- |
143 |
--CFLAGS= -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin \ |
144 |
-+CFLAGS= -Wall -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin \ |
145 |
- -ffreestanding -fPIC $(SMP_FL) -fno-stack-protector |
146 |
- |
147 |
- OBJS= head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o \ |
148 |
|
149 |
diff --git a/sys-apps/memtest86+/files/memtest86+-5.01-hardcoded_cc.patch b/sys-apps/memtest86+/files/memtest86+-5.01-hardcoded_cc.patch |
150 |
deleted file mode 100644 |
151 |
index 21b51c5b7fff..000000000000 |
152 |
--- a/sys-apps/memtest86+/files/memtest86+-5.01-hardcoded_cc.patch |
153 |
+++ /dev/null |
154 |
@@ -1,16 +0,0 @@ |
155 |
---- a/Makefile.orig 2015-02-01 01:08:33.000000000 +0300 |
156 |
-+++ b/Makefile 2015-02-01 01:10:17.624757244 +0300 |
157 |
-@@ -9,11 +9,10 @@ |
158 |
- # |
159 |
- FDISK=/dev/fd0 |
160 |
- |
161 |
--AS=as -32 |
162 |
--CC=gcc |
163 |
-- |
164 |
- CFLAGS= -Wall -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin \ |
165 |
- -ffreestanding -fPIC $(SMP_FL) -fno-stack-protector |
166 |
-+CPPFLAGS= -m32 |
167 |
-+ASFLAGS= -32 |
168 |
- |
169 |
- OBJS= head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o \ |
170 |
- config.o cpuid.o linuxbios.o pci.o memsize.o spd.o error.o dmi.o controller.o \ |
171 |
|
172 |
diff --git a/sys-apps/memtest86+/files/memtest86+-5.01-io-extern-inline.patch b/sys-apps/memtest86+/files/memtest86+-5.01-io-extern-inline.patch |
173 |
deleted file mode 100644 |
174 |
index 682dd5d01a1e..000000000000 |
175 |
--- a/sys-apps/memtest86+/files/memtest86+-5.01-io-extern-inline.patch |
176 |
+++ /dev/null |
177 |
@@ -1,31 +0,0 @@ |
178 |
-http://forum.canardpc.com/threads/110951-fix-build-with-newer-gcc-versions |
179 |
- |
180 |
-the meaning of extern inline changed between standards. use static inline |
181 |
-for these tiny I/O functions everywhere to keep things simple. |
182 |
- |
183 |
---- a/io.h |
184 |
-+++ b/io.h |
185 |
-@@ -31,6 +31,6 @@ |
186 |
- */ |
187 |
- |
188 |
- #define __OUT1(s,x) \ |
189 |
--extern inline void __out##s(unsigned x value, unsigned short port) { |
190 |
-+static inline void __out##s(unsigned x value, unsigned short port) { |
191 |
- |
192 |
- #define __OUT2(s,s1,s2) \ |
193 |
-@@ -43,6 +43,6 @@ |
194 |
- __OUT1(s##c_p,x) __OUT2(s,s1,"") : : "a" (value), "id" (port)); SLOW_DOWN_IO; } |
195 |
- |
196 |
- #define __IN1(s) \ |
197 |
--extern inline RETURN_TYPE __in##s(unsigned short port) { RETURN_TYPE _v; |
198 |
-+static inline RETURN_TYPE __in##s(unsigned short port) { RETURN_TYPE _v; |
199 |
- |
200 |
- #define __IN2(s,s1,s2) \ |
201 |
-@@ -55,6 +55,6 @@ |
202 |
- __IN1(s##c_p) __IN2(s,s1,"") : "=a" (_v) : "id" (port) ,##i ); SLOW_DOWN_IO; return _v; } |
203 |
- |
204 |
- #define __OUTS(s) \ |
205 |
--extern inline void outs##s(unsigned short port, const void * addr, unsigned long count) \ |
206 |
-+static inline void outs##s(unsigned short port, const void * addr, unsigned long count) \ |
207 |
- { __asm__ __volatile__ ("cld ; rep ; outs" #s \ |
208 |
- : "=S" (addr), "=c" (count) : "d" (port),"0" (addr),"1" (count)); } |
209 |
|
210 |
diff --git a/sys-apps/memtest86+/files/memtest86+-5.01-no-C-headers.patch b/sys-apps/memtest86+/files/memtest86+-5.01-no-C-headers.patch |
211 |
deleted file mode 100644 |
212 |
index ce7f906a19d5..000000000000 |
213 |
--- a/sys-apps/memtest86+/files/memtest86+-5.01-no-C-headers.patch |
214 |
+++ /dev/null |
215 |
@@ -1,49 +0,0 @@ |
216 |
-http://forum.canardpc.com/threads/110955-PATCH-don-t-pull-in-system-headers |
217 |
- |
218 |
-avoid using C library headers as it'd mean we'd need 32-bit glibc files available |
219 |
- |
220 |
-https://bugs.gentoo.org/592638 |
221 |
- |
222 |
---- a/dmi.c |
223 |
-+++ b/dmi.c |
224 |
-@@ -10,7 +10,7 @@ |
225 |
- |
226 |
- |
227 |
- #include "test.h" |
228 |
--#include <stdint.h> |
229 |
-+#include "stdint.h" |
230 |
- |
231 |
- |
232 |
- #define round_up(x,y) (((x) + (y) - 1) & ~((y)-1)) |
233 |
---- a/test.c |
234 |
-+++ b/test.c |
235 |
-@@ -14,7 +14,28 @@ |
236 |
- #include "stdint.h" |
237 |
- #include "cpuid.h" |
238 |
- #include "smp.h" |
239 |
--#include <sys/io.h> |
240 |
-+ |
241 |
-+static inline unsigned char |
242 |
-+inb_p (unsigned short int __port) |
243 |
-+{ |
244 |
-+ unsigned char _v; |
245 |
-+ |
246 |
-+ __asm__ __volatile__ ("inb %w1,%0\noutb %%al,$0x80":"=a" (_v):"Nd" (__port)); |
247 |
-+ return _v; |
248 |
-+} |
249 |
-+ |
250 |
-+static inline void |
251 |
-+outb (unsigned char __value, unsigned short int __port) |
252 |
-+{ |
253 |
-+ __asm__ __volatile__ ("outb %b0,%w1": :"a" (__value), "Nd" (__port)); |
254 |
-+} |
255 |
-+ |
256 |
-+static inline void |
257 |
-+outb_p (unsigned char __value, unsigned short int __port) |
258 |
-+{ |
259 |
-+ __asm__ __volatile__ ("outb %b0,%w1\noutb %%al,$0x80": :"a" (__value), |
260 |
-+ "Nd" (__port)); |
261 |
-+} |
262 |
- |
263 |
- extern struct cpu_ident cpu_id; |
264 |
- extern volatile int mstr_cpu; |
265 |
|
266 |
diff --git a/sys-apps/memtest86+/files/memtest86+-5.01-no-clean.patch b/sys-apps/memtest86+/files/memtest86+-5.01-no-clean.patch |
267 |
deleted file mode 100644 |
268 |
index e9cbf10399c3..000000000000 |
269 |
--- a/sys-apps/memtest86+/files/memtest86+-5.01-no-clean.patch |
270 |
+++ /dev/null |
271 |
@@ -1,19 +0,0 @@ |
272 |
-http://forum.canardpc.com/threads/110954-PATCH-fix-parallel-build-issues |
273 |
- |
274 |
- |
275 |
-don't run the clean target when building all as we run into parallel races: |
276 |
- - memtest kicks off building of a bunch of .o files |
277 |
- - clean runs in parallel which runs `rm` and deletes some of the new .o |
278 |
- - memtest goes to link and fails because objects are missing |
279 |
- |
280 |
---- a/Makefile |
281 |
-+++ b/Makefile |
282 |
-@@ -19,7 +19,7 @@ |
283 |
- smp.o vmem.o random.o |
284 |
- |
285 |
- |
286 |
--all: clean memtest.bin memtest |
287 |
-+all: memtest.bin memtest |
288 |
- |
289 |
- # Link it statically once so I know I don't have undefined |
290 |
- # symbols and then link it dynamically so I have full |
291 |
|
292 |
diff --git a/sys-apps/memtest86+/files/memtest86+-5.01-no-scp.patch b/sys-apps/memtest86+/files/memtest86+-5.01-no-scp.patch |
293 |
deleted file mode 100644 |
294 |
index 8d830e297ec2..000000000000 |
295 |
--- a/sys-apps/memtest86+/files/memtest86+-5.01-no-scp.patch |
296 |
+++ /dev/null |
297 |
@@ -1,14 +0,0 @@ |
298 |
-http://forum.canardpc.com/threads/110953-PATCH-don-t-try-to-scp-after-building |
299 |
- |
300 |
-this makes no sense in a sane build world |
301 |
- |
302 |
---- a/Makefile |
303 |
-+++ b/Makefile |
304 |
-@@ -21,7 +21,6 @@ |
305 |
- |
306 |
- |
307 |
- all: clean memtest.bin memtest |
308 |
-- scp memtest.bin root@192.168.0.12:/srv/tftp/mt86plus |
309 |
- |
310 |
- # Link it statically once so I know I don't have undefined |
311 |
- # symbols and then link it dynamically so I have full |
312 |
|
313 |
diff --git a/sys-apps/memtest86+/files/memtest86+-5.01-objcopy.patch b/sys-apps/memtest86+/files/memtest86+-5.01-objcopy.patch |
314 |
deleted file mode 100644 |
315 |
index 5effe20027a9..000000000000 |
316 |
--- a/sys-apps/memtest86+/files/memtest86+-5.01-objcopy.patch |
317 |
+++ /dev/null |
318 |
@@ -1,20 +0,0 @@ |
319 |
-Allow 'objcopy' override with user's OBJCOPY. |
320 |
---- a/Makefile |
321 |
-+++ b/Makefile |
322 |
-@@ -8,6 +8,7 @@ |
323 |
- # Path for the floppy disk device |
324 |
- # |
325 |
- FDISK=/dev/fd0 |
326 |
-+OBJCOPY=objcopy |
327 |
- |
328 |
- CFLAGS= -Wall -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin \ |
329 |
- -ffreestanding -fPIC $(SMP_FL) -fno-stack-protector |
330 |
-@@ -30,7 +31,7 @@ memtest_shared: $(OBJS) memtest_shared.lds Makefile |
331 |
- $(LD) -shared -Bsymbolic -T memtest_shared.lds -o $@ $(OBJS) |
332 |
- |
333 |
- memtest_shared.bin: memtest_shared |
334 |
-- objcopy -O binary $< memtest_shared.bin |
335 |
-+ $(OBJCOPY) -O binary $< memtest_shared.bin |
336 |
- |
337 |
- memtest: memtest_shared.bin memtest.lds |
338 |
- $(LD) -s -T memtest.lds -b binary memtest_shared.bin -o $@ |
339 |
|
340 |
diff --git a/sys-apps/memtest86+/files/memtest86+-5.01-reboot-def.patch b/sys-apps/memtest86+/files/memtest86+-5.01-reboot-def.patch |
341 |
deleted file mode 100644 |
342 |
index f4b42feb5fb3..000000000000 |
343 |
--- a/sys-apps/memtest86+/files/memtest86+-5.01-reboot-def.patch |
344 |
+++ /dev/null |
345 |
@@ -1,15 +0,0 @@ |
346 |
-http://forum.canardpc.com/threads/110952-fix-build-due-to-missing-reboot-symbol |
347 |
- |
348 |
-the reboot func is used elsewhere, so don't mark it inline |
349 |
- |
350 |
---- a/lib.c |
351 |
-+++ b/lib.c |
352 |
-@@ -33,7 +33,7 @@ struct ascii_map_str { |
353 |
- int keycode; |
354 |
- }; |
355 |
- |
356 |
--inline void reboot(void) |
357 |
-+void reboot(void) |
358 |
- { |
359 |
- |
360 |
- /* tell the BIOS to do a cold start */ |
361 |
|
362 |
diff --git a/sys-apps/memtest86+/files/memtest86+-5.01-test-random-cflags.patch b/sys-apps/memtest86+/files/memtest86+-5.01-test-random-cflags.patch |
363 |
deleted file mode 100644 |
364 |
index dcdccb8c6e97..000000000000 |
365 |
--- a/sys-apps/memtest86+/files/memtest86+-5.01-test-random-cflags.patch |
366 |
+++ /dev/null |
367 |
@@ -1,21 +0,0 @@ |
368 |
-make sure we re-use the existing CFLAGS settings so that we get all the right |
369 |
-flags (like -fno-stack-protector). just append the few changes we want (the |
370 |
-optimization levels). |
371 |
- |
372 |
-https://bugs.gentoo.org/590974 |
373 |
- |
374 |
---- a/Makefile |
375 |
-+++ b/Makefile |
376 |
-@@ -52,10 +52,10 @@ reloc.o: reloc.c |
377 |
- $(CC) -c $(CFLAGS) -fno-strict-aliasing reloc.c |
378 |
- |
379 |
- test.o: test.c |
380 |
-- $(CC) -c -Wall -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding test.c |
381 |
-+test.o: CFLAGS += -O0 -fno-PIC |
382 |
- |
383 |
- random.o: random.c |
384 |
-- $(CC) -c -Wall -march=i486 -m32 -O3 -fomit-frame-pointer -fno-builtin -ffreestanding random.c |
385 |
-+random.o: CFLAGS += -O3 -fno-PIC |
386 |
- |
387 |
- # rule for build number generation |
388 |
- build_number: |
389 |
|
390 |
diff --git a/sys-apps/memtest86+/memtest86+-5.01-r5.ebuild b/sys-apps/memtest86+/memtest86+-5.01-r5.ebuild |
391 |
deleted file mode 100644 |
392 |
index e47609b69d52..000000000000 |
393 |
--- a/sys-apps/memtest86+/memtest86+-5.01-r5.ebuild |
394 |
+++ /dev/null |
395 |
@@ -1,115 +0,0 @@ |
396 |
-# Copyright 1999-2021 Gentoo Authors |
397 |
-# Distributed under the terms of the GNU General Public License v2 |
398 |
- |
399 |
-EAPI="6" |
400 |
- |
401 |
-inherit mount-boot epatch toolchain-funcs |
402 |
- |
403 |
-DESCRIPTION="Memory tester based on memtest86" |
404 |
-HOMEPAGE="http://www.memtest.org/" |
405 |
-SRC_URI="http://www.memtest.org/download/${PV}/${P}.tar.gz" |
406 |
- |
407 |
-LICENSE="GPL-2" |
408 |
-SLOT="0" |
409 |
-KEYWORDS="-* amd64 x86" |
410 |
-IUSE="+boot floppy iso serial" |
411 |
- |
412 |
-BOOTDIR="/boot/memtest86plus" |
413 |
-QA_PRESTRIPPED="${BOOTDIR}/memtest /usr/share/${PN}/memtest" |
414 |
-QA_FLAGS_IGNORED="${BOOTDIR}/memtest /usr/share/${PN}/memtest" |
415 |
- |
416 |
-RDEPEND="floppy? ( sys-fs/mtools )" |
417 |
-DEPEND="iso? ( app-cdr/cdrtools )" |
418 |
- |
419 |
-pkg_pretend() { |
420 |
- use boot && mount-boot_pkg_pretend |
421 |
-} |
422 |
- |
423 |
-src_prepare() { |
424 |
- sed -i -e 's,0x10000,0x100000,' memtest.lds || die |
425 |
- epatch "${FILESDIR}/${P}-gcc-473.patch" \ |
426 |
- "${FILESDIR}/${P}-hardcoded_cc.patch" |
427 |
- epatch "${FILESDIR}"/${P}-no-scp.patch |
428 |
- epatch "${FILESDIR}"/${P}-io-extern-inline.patch #548312 |
429 |
- epatch "${FILESDIR}"/${P}-reboot-def.patch #548312 |
430 |
- epatch "${FILESDIR}"/${P}-no-clean.patch #557890 |
431 |
- epatch "${FILESDIR}"/${P}-no-C-headers.patch #592638 |
432 |
- epatch "${FILESDIR}"/${P}-test-random-cflags.patch #590974 |
433 |
- epatch "${FILESDIR}"/${P}-objcopy.patch |
434 |
- |
435 |
- sed -i 's:genisoimage:mkisofs:' makeiso.sh || die |
436 |
- if use serial ; then |
437 |
- sed -i \ |
438 |
- -e '/^#define SERIAL_CONSOLE_DEFAULT/s:0:1:' \ |
439 |
- config.h \ |
440 |
- || die "sed failed" |
441 |
- fi |
442 |
- default |
443 |
-} |
444 |
- |
445 |
-src_configure() { |
446 |
- tc-ld-disable-gold #580212 |
447 |
- tc-export AS CC LD |
448 |
-} |
449 |
- |
450 |
-src_compile() { |
451 |
- emake OBJCOPY="$(tc-getOBJCOPY)" |
452 |
- if use iso ; then |
453 |
- ./makeiso.sh || die |
454 |
- fi |
455 |
-} |
456 |
- |
457 |
-src_test() { :; } |
458 |
- |
459 |
-src_install() { |
460 |
- if use boot; then |
461 |
- insinto "${BOOTDIR}" |
462 |
- doins memtest memtest.bin |
463 |
- fi |
464 |
- |
465 |
- insinto /usr/share/${PN} |
466 |
- use iso && newins mt*.iso memtest.iso |
467 |
- doins memtest memtest.bin |
468 |
- |
469 |
- exeinto /etc/grub.d |
470 |
- newexe "${FILESDIR}"/39_${PN}-r1 39_${PN} |
471 |
- |
472 |
- dodoc README README.build-process FAQ changelog |
473 |
- |
474 |
- if use floppy ; then |
475 |
- dobin "${FILESDIR}"/make-memtest86+-boot-floppy |
476 |
- doman "${FILESDIR}"/make-memtest86+-boot-floppy.1 |
477 |
- fi |
478 |
-} |
479 |
- |
480 |
-pkg_preinst() { |
481 |
- use boot && mount-boot_pkg_preinst |
482 |
-} |
483 |
- |
484 |
-pkg_postinst() { |
485 |
- if use boot; then |
486 |
- mount-boot_pkg_postinst |
487 |
- |
488 |
- elog "memtest86+ has been installed in ${BOOTDIR}/" |
489 |
- elog "You may wish to update your bootloader configs by adding these lines:" |
490 |
- elog " - For grub2 just run grub-mkconfig, a configuration file is installed" |
491 |
- elog " as /etc/grub.d/39_${PN}" |
492 |
- elog " - For grub legacy: (replace '?' with correct numbers for your boot partition)" |
493 |
- elog " > title=${PN}" |
494 |
- elog " > root (hd?,?)" |
495 |
- elog " > kernel ${BOOTDIR}/memtest.bin" |
496 |
- elog " - For lilo:" |
497 |
- elog " > image = ${BOOTDIR}/memtest.bin" |
498 |
- elog " > label = ${PN}" |
499 |
- elog "" |
500 |
- elog "Note: For older configs, you might have to change from 'memtest' to 'memtest.bin'." |
501 |
- fi |
502 |
-} |
503 |
- |
504 |
-pkg_prerm() { |
505 |
- use boot && mount-boot_pkg_prerm |
506 |
-} |
507 |
- |
508 |
-pkg_postrm() { |
509 |
- use boot && mount-boot_pkg_postrm |
510 |
-} |