[packages/systemtap] Version: 3.2

jajcus jajcus at pld-linux.org
Mon Nov 13 10:37:43 CET 2017


commit 3d0924cd5c542d30a3e6937812c9e1ace93d2eaf
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date:   Mon Nov 13 10:37:18 2017 +0100

    Version: 3.2

 systemtap-rpm5-support.patch | 40 ++++++++++++++++++++++++----------------
 systemtap.spec               |  7 +++++--
 2 files changed, 29 insertions(+), 18 deletions(-)
---
diff --git a/systemtap.spec b/systemtap.spec
index eeb64ac..b5439c9 100644
--- a/systemtap.spec
+++ b/systemtap.spec
@@ -17,12 +17,12 @@
 Summary:	Instrumentation System
 Summary(pl.UTF-8):	System oprzyrządowania
 Name:		systemtap
-Version:	3.1
+Version:	3.2
 Release:	1
 License:	GPL v2+
 Group:		Base
 Source0:	http://sourceware.org/systemtap/ftp/releases/%{name}-%{version}.tar.gz
-# Source0-md5:	767b73d340b13a14b2a4f1e1965482d8
+# Source0-md5:	457147cde312eab7ff8cb49add93f4b4
 Source1:	%{name}.tmpfiles
 Source2:	stap-server.tmpfiles
 Patch0:		%{name}-configure.patch
@@ -288,6 +288,7 @@ Przewodniki i dokumentacja wprowadzająca do SystemTap.
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
+
 %if "%{_rpmversion}" >= "5.0"
 %patch2 -p1
 %endif
@@ -355,6 +356,7 @@ rm -rf $RPM_BUILD_ROOT
 %doc AUTHORS NEWS README*
 %attr(755,root,root) %{_bindir}/stap-merge
 %attr(755,root,root) %{_bindir}/stap-report
+%attr(755,root,root) %{_bindir}/stapbpf
 %{?with_dyninst:%attr(755,root,root) %{_bindir}/stapdyn}
 %attr(755,root,root) %{_bindir}/stapsh
 # XXX: %attr(4754,root,stapusr) staprun ?
@@ -380,6 +382,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man7/stappaths.7*
 %{_mandir}/man7/warning::debuginfo.7stap*
 %{_mandir}/man7/warning::symbols.7stap*
+%{_mandir}/man8/stapbpf.8*
 %{?with_dyninst:%{_mandir}/man8/stapdyn.8*}
 %{_mandir}/man8/staprun.8*
 %{_mandir}/man8/stapsh.8*
diff --git a/systemtap-rpm5-support.patch b/systemtap-rpm5-support.patch
index acd39d7..e6d840d 100644
--- a/systemtap-rpm5-support.patch
+++ b/systemtap-rpm5-support.patch
@@ -1,6 +1,7 @@
---- systemtap-1.5/configure.ac.rpm5~	2011-05-23 21:21:36.000000000 +0200
-+++ systemtap-1.5/configure.ac	2011-09-26 08:22:28.072465175 +0200
-@@ -449,6 +449,19 @@ AC_ARG_WITH([rpm],
+diff -dur systemtap-3.2.orig/configure.ac systemtap-3.2/configure.ac
+--- systemtap-3.2.orig/configure.ac	2017-11-13 10:02:17.000000000 +0100
++++ systemtap-3.2/configure.ac	2017-11-13 10:16:52.000000000 +0100
+@@ -465,6 +465,19 @@
    [AS_HELP_STRING([--with-rpm],
                    [query rpm database for missing debuginfos])], [], [with_rpm="auto"])
  if test "$with_rpm" != "no"; then
@@ -19,16 +20,16 @@
 +)
    AC_CHECK_LIB(rpm, rpmtsInitIterator, [
                      AC_DEFINE([HAVE_LIBRPM],[1],[have librpm])
-                     stap_LIBS="$stap_LIBS -lrpm"
---- systemtap-1.5/rpm_finder.cxx.rpm5~	2011-05-23 21:21:36.000000000 +0200
-+++ systemtap-1.5/rpm_finder.cxx	2011-09-26 08:14:28.829226303 +0200
-@@ -20,21 +20,22 @@ using namespace std;
+                     stap_LIBS="$stap_LIBS -lc -lrpm"
+diff -dur systemtap-3.2.orig/rpm_finder.cxx systemtap-3.2/rpm_finder.cxx
+--- systemtap-3.2.orig/rpm_finder.cxx	2017-10-18 19:59:37.000000000 +0200
++++ systemtap-3.2/rpm_finder.cxx	2017-11-13 10:16:28.000000000 +0100
+@@ -20,20 +20,22 @@
  
  #ifdef HAVE_LIBRPM
  
 -extern "C" {
 -
--#define _RPM_4_4_COMPAT
 -#include <string.h>
 -#include <rpm/rpmlib.h>
 -#include <rpm/rpmts.h>
@@ -55,7 +56,7 @@
  #if ! HAVE_LIBRPMIO && HAVE_NSS
  extern "C" {
  #include <nss.h>
-@@ -51,7 +52,7 @@ missing_rpm_enlist (systemtap_session& s
+@@ -50,7 +52,7 @@
  {
    static int rpm_init_done = 0;
    rpmts ts;
@@ -64,7 +65,7 @@
    int count = 0;
  
    if (filename == NULL)
-@@ -90,8 +91,8 @@ missing_rpm_enlist (systemtap_session& s
+@@ -93,13 +95,15 @@
  	  errmsg_t err;
  	  size_t rpminfolen = strlen(rpm_type);
  	  size_t srcrpmlen = sizeof (".src.rpm") - 1;
@@ -75,7 +76,15 @@
  	  if (h == NULL)
  	    break;
  	  /* Verify the kernel file is not already installed.  */
-@@ -138,21 +139,23 @@ missing_rpm_enlist (systemtap_session& s
+ 
+-	  rpminfo = headerFormat(h, header, &err);
++          char *nvra = rpmExpand("%{___NVRA}", NULL);
++	  rpminfo = headerSprintf(h, header, rpmTagTable, rpmHeaderFormats, &err);
++	  free(nvra);
+ 
+ 	  if (!rpminfo)
+ 	    {
+@@ -140,20 +144,21 @@
  	  /* s = `-debuginfo-%{version}-%{release}.%{arch}' */
  
  	  /* RPMDBI_PACKAGES requires keylen == sizeof (int).  */
@@ -95,15 +104,14 @@
            if(strcmp(rpm_type,"-debuginfo")==0){
 +	    char *nvra = rpmExpand("%{___NVRA}", NULL);
  	    xfree(rpminfo);
- 	    rpminfo = headerSprintf(h,
--		      "%{name}-%{version}-%{release}.%{arch}",
-+		      nvra,
- 		      rpmTagTable, rpmHeaderFormats, &err);
+-	    rpminfo = headerFormat(h, "%{name}-%{version}-%{release}.%{arch}",
+-				   &err);
++	    rpminfo = headerSprintf(h, nvra, rpmTagTable, rpmHeaderFormats, &err);
 +	    free(nvra);
  	  }
  	  if (!rpminfo)
  	    {
-@@ -176,7 +179,7 @@ missing_rpm_enlist (systemtap_session& s
+@@ -177,7 +182,7 @@
  	  sess.rpms_to_install.insert(rpminfo);
   	}
        count++;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/systemtap.git/commitdiff/3d0924cd5c542d30a3e6937812c9e1ace93d2eaf



More information about the pld-cvs-commit mailing list