commit d5dd55c943b4b4f27dde243f42ab39705843a432 Author: Marcin Krol <h...@tld-linux.org> Date: Tue Feb 22 18:58:56 2022 +0100
- added build fix, release 4 rtop.c:373:40: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' [-Werror=format=] libpfm-build.patch | 12 ++++++++++++ libpfm.spec | 4 +++- 2 files changed, 15 insertions(+), 1 deletion(-) --- diff --git a/libpfm.spec b/libpfm.spec index 0c564d3..5489624 100644 --- a/libpfm.spec +++ b/libpfm.spec @@ -12,11 +12,12 @@ Summary: Library to encode performance events for use by perf tool Summary(pl.UTF-8): Biblioteka do kodowania zdarzeń związanych z wydajnością do użycia przez narzędzie perf Name: libpfm Version: 4.11.0 -Release: 3 +Release: 4 License: MIT Group: Libraries Source0: http://downloads.sourceforge.net/perfmon2/%{name}-%{version}.tar.gz # Source0-md5: 4811c1d99b95752b4ba53b89a9389ec3 +Patch0: %{name}-build.patch URL: http://perfmon2.sourceforge.net/ %{?with_python2:BuildRequires: python-devel >= 2} %{?with_python3:BuildRequires: python3-devel >= 1:3.2} @@ -85,6 +86,7 @@ Wiązania Pythona 3 do libpfm i wywołania systemowego perf_event_open. %prep %setup -q +%patch0 -p1 %build %{__make} \ diff --git a/libpfm-build.patch b/libpfm-build.patch new file mode 100644 index 0000000..f958fad --- /dev/null +++ b/libpfm-build.patch @@ -0,0 +1,12 @@ +diff -ur libpfm-4.11.0.orig/perf_examples/rtop.c libpfm-4.11.0/perf_examples/rtop.c +--- libpfm-4.11.0.orig/perf_examples/rtop.c 2020-09-02 20:48:00.000000000 +0200 ++++ libpfm-4.11.0/perf_examples/rtop.c 2022-02-22 12:19:18.132785190 +0100 +@@ -371,7 +371,7 @@ + if (u_cycles > 100.0) u_cycles = 100.0; + + printw("CPU%-2ld %6.2f%% usr %6.2f%% sys %6.2f%% idle (scaling ratio %.2f%%)\n", +- i, ++ (long)i, + u_cycles, + k_cycles, + i_cycles, ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/libpfm.git/commitdiff/d5dd55c943b4b4f27dde243f42ab39705843a432 _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit