SHA256
1
0
forked from pool/numactl

Accepting request 282152 from home:trenn:branches:Base:System

- Make latest factory version build against SLE11 as well

OBS-URL: https://build.opensuse.org/request/show/282152
OBS-URL: https://build.opensuse.org/package/show/Base:System/numactl?expand=0&rev=54
This commit is contained in:
Thomas Renninger 2015-01-20 20:17:27 +00:00 committed by Git OBS Bridge
parent 3da0fecefb
commit 49201d18a2
3 changed files with 15 additions and 9 deletions

View File

@ -8,11 +8,11 @@ Subject: [PATCH] Fixed segfault when no node could be found in sysfs
distance.c | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/distance.c b/distance.c
index 4a26972..5db7fe2 100755
--- a/distance.c
+++ b/distance.c
@@ -58,19 +58,16 @@ static int read_distance_table(void)
Index: numactl-2.0.10/distance.c
===================================================================
--- numactl-2.0.10.orig/distance.c 2014-10-03 22:49:11.000000000 +0200
+++ numactl-2.0.10/distance.c 2015-01-20 19:07:43.397202100 +0100
@@ -58,19 +58,16 @@
int *table = NULL;
int err = -1;
@ -38,6 +38,3 @@ index 4a26972..5db7fe2 100755
len = getdelim(&line, &linelen, '\n', dfh);
fclose(dfh);
if (len <= 0)
--
1.8.1.4

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jan 20 19:04:49 UTC 2015 - trenn@suse.de
- Make latest factory version build against SLE11 as well
-------------------------------------------------------------------
Thu Nov 27 07:35:32 UTC 2014 - meissner@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package numactl
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -31,8 +31,10 @@ Patch0: revert_date_in_numastat.patch
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch1: 0001-Fixed-segfault-when-no-node-could-be-found-in-sysfs-.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1110
BuildRequires: autoconf >= 2.64
BuildRequires: automake
%endif
Requires: perl
%description
@ -64,7 +66,9 @@ individual NUMA policy in applications.
%patch1 -p1
%build
%if 0%{?suse_version} > 1110
autoconf
%endif
%configure --disable-static
make %{?_smp_mflags} CFLAGS="%{optflags}"