[libibverbs] Valgrind buildrequires improvements

Doug Ledford dledford at fedoraproject.org
Wed Jul 20 18:25:00 UTC 2011


commit 78cc68c17c2e7da6ad3039d0d977d0d099e587cb
Author: Doug Ledford <dledford at redhat.com>
Date:   Wed Jul 20 14:24:43 2011 -0400

    Valgrind buildrequires improvements
    
    Signed-off-by: Doug Ledford <dledford at redhat.com>

 libibverbs.spec |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/libibverbs.spec b/libibverbs.spec
index 8f876bf..16ce840 100644
--- a/libibverbs.spec
+++ b/libibverbs.spec
@@ -1,13 +1,15 @@
 Name: libibverbs
 Version: 1.1.5
-Release: 3%{?dist}
+Release: 4%{?dist}
 Summary: A library for direct userspace use of RDMA (InfiniBand/iWARP) hardware
 Group: System Environment/Libraries
 License: GPLv2 or BSD
 Url: http://openfabrics.org/
 Source: http://openfabrics.org/downloads/verbs/libibverbs-%{version}.tar.gz
 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+%ifnarch ia64 %{sparc} %{arm}
 BuildRequires: valgrind-devel
+%endif
 Requires(post): /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
 ExcludeArch: s390 s390x
@@ -52,7 +54,11 @@ displays information about RDMA devices.
 %setup -q
 
 %build
+%ifnarch ia64 %{sparc} %{arm}
 %configure --with-valgrind
+%else
+%configure
+%endif
 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
 make %{?_smp_mflags}
@@ -92,6 +98,10 @@ rm -rf %{buildroot}
 %{_mandir}/man1/*
 
 %changelog
+* Wed Jul 20 2011 Doug Ledford <dledford at redhat.com> - 1.1.5-4
+- Improve selection of when/where to use valgrind based upon where it is
+  available
+
 * Wed Jul 20 2011 Doug Ledford <dledford at redhat.com> - 1.1.5-3
 - Change which package actually requires the driver psuedoprovide
   so that a driver library is not needed in order to build the


More information about the scm-commits mailing list