Fixing build break

This commit is contained in:
Neil Horman 2008-09-29 20:10:23 +00:00
parent 5f06a6a8f5
commit 9e543f703b
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -up numactl-2.0.2/clearcache.c.orig numactl-2.0.2/clearcache.c
--- numactl-2.0.2/clearcache.c.orig 2008-09-29 16:08:38.000000000 -0400
+++ numactl-2.0.2/clearcache.c 2008-09-29 16:08:49.000000000 -0400
@@ -57,7 +57,7 @@ void clearcache(unsigned char *mem, unsi
#if defined(__i386__) || defined(__x86_64__)
unsigned i, cl, eax, feat;
/* get clflush unit and feature */
- asm("cpuid" : "=a" (eax), "=b" (cl), "=d" (feat) : "0" (1) : "cx");
+ asm("cpuid" : "=a" (eax), "=r" (cl), "=d" (feat) : "0" (1) : "cx");
if (!(feat & (1 << 19)))
fallback_clearcache();
cl = ((cl >> 8) & 0xff) * 8;

View File

@ -1,13 +1,15 @@
Name: numactl
Summary: Library for tuning for Non Uniform Memory Access machines
Version: 2.0.2
Release: 1%{dist}
Release: 2%{dist}
License: LGPLv2/GPLv2
Group: System Environment/Base
URL: ftp://oss.sgi.com/www/projects/libnuma/download
Source0: ftp://oss.sgi.com/www/projects/libnuma/download/numactl-%{version}.tar.gz
Buildroot: %{_tmppath}/%{name}-buildroot
Patch0: numactl-2.0.2-clearcache-fix.patch
ExcludeArch: s390 s390x
%description
@ -25,6 +27,7 @@ Provides development headers for numa library calls
%prep
%setup -q
%patch0 -p1
%build
make CFLAGS="$RPM_OPT_FLAGS -I. -fPIC"
@ -69,6 +72,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man3/*.3*
%changelog
* Mon Sep 29 2008 Neil Horman <nhorman@redhat.com> - 2.0.2-2
- Fix build break due to register selection in asm
* Mon Sep 29 2008 Neil Horman <nhorman@redhat.com> - 2.0.2-1
- Update rawhide to version 2.0.2 of numactl