[numad] Update and comment the Makefile patch

jsynacek jsynacek at fedoraproject.org
Tue Dec 11 12:23:00 UTC 2012


commit a621dfe60735636982d04d36e14a6bde0a4e53b3
Author: Jan Synacek <jsynacek at redhat.com>
Date:   Tue Dec 11 13:21:55 2012 +0100

    Update and comment the Makefile patch
    
    Related: #825153

 numad-0.5git-pthread.patch |    8 +++++++-
 numad.spec                 |    8 ++++++--
 2 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/numad-0.5git-pthread.patch b/numad-0.5git-pthread.patch
index cc5974f..d2b2929 100644
--- a/numad-0.5git-pthread.patch
+++ b/numad-0.5git-pthread.patch
@@ -1,3 +1,9 @@
+Remove linked libraries from Makefile. They break rebuilds from srpms on some
+architectures. The linker flags are supplied from the spec.
+
+Author: Jan Synacek <jsynacek at redhat.com>
+RH-Bugzilla: #825153
+
 --- Makefile.orig	2012-09-11 08:29:18.965821127 +0200
 +++ Makefile	2012-09-11 08:29:29.391803358 +0200
 @@ -31,7 +31,7 @@
@@ -5,7 +11,7 @@
  all: numad
  
 -numad: numad.o -lpthread -lrt
-+numad: numad.o -lrt
++numad: numad.o
  
  AR ?= ar
  RANLIB ?= ranlib
diff --git a/numad.spec b/numad.spec
index e2ae8cb..d4a328f 100644
--- a/numad.spec
+++ b/numad.spec
@@ -2,7 +2,7 @@
 
 Name: numad
 Version: 0.5
-Release: 8.20121130git%{?dist}
+Release: 9.20121130git%{?dist}
 Summary: NUMA user daemon
 
 License: LGPLv2
@@ -32,7 +32,7 @@ and memory to minimize memory latency and thus provide optimum performance.
 %patch0 -p0
 
 %build
-make CFLAGS="-std=gnu99 -g" LDFLAGS="-lpthread"
+make CFLAGS="-std=gnu99 -g" LDFLAGS="-lpthread -lrt"
 
 %install
 mkdir -p %{buildroot}%{_bindir}
@@ -59,6 +59,10 @@ make install prefix=%{buildroot}/usr
 %systemd_postun numad.service
 
 %changelog
+* Tue Dec 11 2012 Jan Synáček <jsynacek at redhat.com> - 0.5-9.20121130git
+- Update and comment the Makefile patch
+- Related: #825153
+
 * Mon Dec 03 2012 Jan Synáček <jsynacek at redhat.com> - 0.5-8.20121130git
 - Update to 20121130
 - Update spec: fix command to generate tarball


More information about the scm-commits mailing list