From 136b4c389a44ca4374cf4c15cbaff23cb69af4ba Mon Sep 17 00:00:00 2001 From: William Eden Cohen Date: Fri, 2 May 2008 15:15:12 +0000 Subject: [PATCH] - Update to libpfm-3.4. --- .cvsignore | 2 +- libpfm-3.4-unused.patch | 22 ++++++++++++++++++++++ libpfm.spec | 13 +++++++++---- sources | 2 +- 4 files changed, 33 insertions(+), 6 deletions(-) create mode 100644 libpfm-3.4-unused.patch diff --git a/.cvsignore b/.cvsignore index 073c51e..e00db5f 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -libpfm-3.3.tar.gz +libpfm-3.4.tar.gz diff --git a/libpfm-3.4-unused.patch b/libpfm-3.4-unused.patch new file mode 100644 index 0000000..397550e --- /dev/null +++ b/libpfm-3.4-unused.patch @@ -0,0 +1,22 @@ +diff -up libpfm-3.4/examples/self_pipe.c.unused libpfm-3.4/examples/self_pipe.c +--- libpfm-3.4/examples/self_pipe.c.unused 2008-05-02 09:49:25.000000000 -0400 ++++ libpfm-3.4/examples/self_pipe.c 2008-05-02 09:49:40.000000000 -0400 +@@ -125,6 +125,7 @@ main(int argc, char **argv) + size_t len; + char *name; + char c = '0'; ++ int nbytes; + + /* + * pass options to library (optional) +@@ -312,8 +313,8 @@ main(int argc, char **argv) + * ping pong loop + */ + while(!quit) { +- write(pr[1], "c", 1); +- read(pw[0], &c, 1); ++ nbytes = write(pr[1], "c", 1); ++ nbytes = read(pw[0], &c, 1); + } + + if (pfm_stop(ctx_fd)) diff --git a/libpfm.spec b/libpfm.spec index e108aa3..26ef3ce 100644 --- a/libpfm.spec +++ b/libpfm.spec @@ -1,9 +1,9 @@ -%define DATE 080225 -%define libpfm_release 2 +%define DATE 080502 +%define libpfm_release 1 Summary: A performance monitoring library for Linux/ia64 Name: libpfm -Version: 3.3 -Release: 0.%{DATE}.%{libpfm_release}%{?dist} +Version: 3.4 +Release: %{libpfm_release}%{?dist} License: MIT-style Group: Development/Libraries ExclusiveArch: ia64 %{ix86} x86_64 @@ -15,6 +15,7 @@ URL: http://sourceforge.net/projects/perfmon2/ Patch3: libpfm-3.2-rpm_opt.patch #Patch4: libpfm-3.2-man3.patch Patch5: libpfm-3.3-ia64-build.patch +Patch6: libpfm-3.4-unused.patch BuildRequires: ncurses-devel BuildRoot: %{_tmppath}/%{name}-%{version}-root @@ -42,6 +43,7 @@ Requires: ncurses %patch3 -p1 -b .rpm_opt #%patch4 -p1 -b .man3 %patch5 -p1 -b .ia64build +%patch6 -p1 -b .unused %build make PREFIX=/usr DESTDIR=%{buildroot} LIBDIR=%{_libdir} @@ -70,6 +72,9 @@ rm -rf %{buildroot} %{_prefix}/include/* %changelog +* Fri May 2 2008 Will Cohen - 3.4-1 +- Update to libpfm-3.4. + * Tue Feb 26 2008 Will Cohen - 3.3-0.080225.2 - Correct possibly unitialized variable umask. Resolves: rhbz #434968 diff --git a/sources b/sources index 9f1c917..1b93583 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -3adb81688dd908f1482cec77d04a73ab libpfm-3.3.tar.gz +e0b1a02027e9e251ee9ad5bccc6c313a libpfm-3.4.tar.gz