From 372c65e254364d0e917043ba924c6bc5566bff5c Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Feb 13 2010 18:28:01 +0000 Subject: - Fix linking with libpthread (#564775) --- diff --git a/blktrace-1.0.1-explicit-libpthread.patch b/blktrace-1.0.1-explicit-libpthread.patch new file mode 100644 index 0000000..7156b8f --- /dev/null +++ b/blktrace-1.0.1-explicit-libpthread.patch @@ -0,0 +1,13 @@ +Index: blktrace-1.0.1/btreplay/Makefile +=================================================================== +--- blktrace-1.0.1.orig/btreplay/Makefile ++++ blktrace-1.0.1/btreplay/Makefile +@@ -13,7 +13,7 @@ XCFLAGS = -D_GNU_SOURCE -D_LARGEFILE_SOU + override CFLAGS += $(INCS) $(XCFLAGS) $(OCFLAGS) + + PROGS = btrecord btreplay +-LIBS = -laio -lrt ++LIBS = -laio -lrt -lpthread + + all: depend $(PROGS) + diff --git a/blktrace.spec b/blktrace.spec index a8af162..ed7292e 100644 --- a/blktrace.spec +++ b/blktrace.spec @@ -1,7 +1,7 @@ Summary: Utilities for performing block layer IO tracing in the linux kernel Name: blktrace Version: 1.0.1 -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv2+ Group: Development/System Source: http://brick.kernel.dk/snaps/blktrace-%{version}.tar.bz2 @@ -11,6 +11,8 @@ Requires: python BuildRequires: libaio-devel python texlive-latex dvipdfm BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Patch0: blktrace-1.0.1-explicit-libpthread.patch + %description blktrace is a block layer IO tracing mechanism which provides detailed information about request queue operations to user space. This package @@ -23,6 +25,8 @@ information about IO patterns. %prep %setup -q +%patch0 -p1 + %build make CFLAGS="%{optflags}" all make CFLAGS="%{optflags}" docs @@ -43,6 +47,9 @@ rm -rf %{buildroot} %attr(0644,root,root) /usr/share/man/man8/* %changelog +* Sat Feb 13 2010 Eric Sandeen - 1.0.1-4 +- Fix linking with libpthread (#564775) + * Fri Jul 24 2009 Fedora Release Engineering - 1.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild