diff --git a/0001-Fixed-segfault-when-no-node-could-be-found-in-sysfs-.patch b/0001-Fixed-segfault-when-no-node-could-be-found-in-sysfs-.patch index ecb6462..ff68d44 100644 --- a/0001-Fixed-segfault-when-no-node-could-be-found-in-sysfs-.patch +++ b/0001-Fixed-segfault-when-no-node-could-be-found-in-sysfs-.patch @@ -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 - diff --git a/numactl.changes b/numactl.changes index 42c540a..fd2bd9e 100644 --- a/numactl.changes +++ b/numactl.changes @@ -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 diff --git a/numactl.spec b/numactl.spec index 9d8babe..6689293 100644 --- a/numactl.spec +++ b/numactl.spec @@ -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}"