Fixed path in 20_memtest86+ not to generate error on grub2-mkconfig
Resolves: rhbz#805542 - Temporal fix for 7th test failure Resolves: rhbz#805813
This commit is contained in:
parent
49391dcbb2
commit
22671c35b3
@ -20,8 +20,8 @@ set -e
|
|||||||
prefix=/usr
|
prefix=/usr
|
||||||
exec_prefix=/usr
|
exec_prefix=/usr
|
||||||
bindir=/usr/bin
|
bindir=/usr/bin
|
||||||
libdir=/usr/lib
|
grublibdir=/usr/share/grub
|
||||||
. ${libdir}/grub/grub-mkconfig_lib
|
. ${grublibdir}/grub-mkconfig_lib
|
||||||
|
|
||||||
export TEXTDOMAIN=grub
|
export TEXTDOMAIN=grub
|
||||||
export TEXTDOMAINDIR=${prefix}/share/locale
|
export TEXTDOMAINDIR=${prefix}/share/locale
|
||||||
|
36
memtest86+-4.20-gcc47-test7-workaround.patch
Normal file
36
memtest86+-4.20-gcc47-test7-workaround.patch
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
diff -up memtest86+-4.20/test.c.test memtest86+-4.20/test.c
|
||||||
|
--- memtest86+-4.20/test.c.test 2011-01-23 19:11:04.000000000 +0100
|
||||||
|
+++ memtest86+-4.20/test.c 2012-03-22 14:21:27.737524043 +0100
|
||||||
|
@@ -260,7 +260,7 @@ void movinvr()
|
||||||
|
int i, j, done, seed1, seed2;
|
||||||
|
volatile ulong *pe;
|
||||||
|
volatile ulong *start,*end;
|
||||||
|
- ulong num;
|
||||||
|
+ ulong num, bad;
|
||||||
|
uintptr_t seg_start;
|
||||||
|
|
||||||
|
/* Initialize memory with initial sequence of random numbers. */
|
||||||
|
@@ -296,12 +296,12 @@ void movinvr()
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
/* Original C code replaced with hand tuned assembly code */
|
||||||
|
-/*
|
||||||
|
+
|
||||||
|
for (; p < pe; p++) {
|
||||||
|
*p = rand();
|
||||||
|
}
|
||||||
|
- */
|
||||||
|
|
||||||
|
+/*
|
||||||
|
asm __volatile__ (
|
||||||
|
"jmp L200\n\t"
|
||||||
|
".p2align 4,,7\n\t"
|
||||||
|
@@ -315,7 +315,7 @@ void movinvr()
|
||||||
|
: "D" (p), "b" (pe)
|
||||||
|
: "eax", "edx"
|
||||||
|
);
|
||||||
|
-
|
||||||
|
+*/
|
||||||
|
do_tick();
|
||||||
|
BAILR
|
||||||
|
} while (!done);
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
Name: memtest86+
|
Name: memtest86+
|
||||||
Version: 4.20
|
Version: 4.20
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Summary: Stand-alone memory tester for x86 and x86-64 computers
|
Summary: Stand-alone memory tester for x86 and x86-64 computers
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
@ -15,6 +15,8 @@ Source0: http://www.memtest.org/download/%{version}/%{name}-%{version}.tar.gz
|
|||||||
Source1: memtest-setup
|
Source1: memtest-setup
|
||||||
Source2: new-memtest-pkg
|
Source2: new-memtest-pkg
|
||||||
Source3: 20_memtest86+
|
Source3: 20_memtest86+
|
||||||
|
Patch0: memtest86+-4.20-gcc47-test7-workaround.patch
|
||||||
|
|
||||||
URL: http://www.memtest.org
|
URL: http://www.memtest.org
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
# require glibc-devel.i386 via this file:
|
# require glibc-devel.i386 via this file:
|
||||||
@ -39,6 +41,7 @@ to add the %{name} entry to your GRUB boot menu.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1 -b .gcc47-test7-workaround
|
||||||
sed -i -e's,0x5000,0x100000,' memtest.lds
|
sed -i -e's,0x5000,0x100000,' memtest.lds
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
sed -i -e's,$(LD) -s -T memtest.lds,$(LD) -s -T memtest.lds -z max-page-size=0x1000,' Makefile
|
sed -i -e's,$(LD) -s -T memtest.lds,$(LD) -s -T memtest.lds -z max-page-size=0x1000,' Makefile
|
||||||
@ -98,6 +101,12 @@ rm -rf %{buildroot}
|
|||||||
%{_sbindir}/memtest-setup
|
%{_sbindir}/memtest-setup
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 27 2012 Jaroslav Škarvada <jskarvad@redhat.com> - 4.20-6
|
||||||
|
- Fixed path in 20_memtest86+ not to generate error on grub2-mkconfig
|
||||||
|
Resolves: rhbz#805542
|
||||||
|
- Temporal fix for 7th test failure
|
||||||
|
Resolves: rhbz#805813
|
||||||
|
|
||||||
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.20-5
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.20-5
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user