]> git.pld-linux.org Git - packages/systemtap.git/commitdiff
Version: 3.2 auto/th/systemtap-3.2-1
authorJacek Konieczny <j.konieczny@eggsoft.pl>
Mon, 13 Nov 2017 09:37:18 +0000 (10:37 +0100)
committerJacek Konieczny <j.konieczny@eggsoft.pl>
Mon, 13 Nov 2017 09:37:18 +0000 (10:37 +0100)
systemtap-rpm5-support.patch
systemtap.spec

index acd39d7cfa02f830732b3a287379706711e83eee..e6d840d43fc2328cc239c58da327419b47dcfb1f 100644 (file)
@@ -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
 +)
    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;
          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).  */
            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++;
index eeb64ac7645d0cb58f423e77ec205e0b6ef317a9..b5439c948d42eacc0a89634cb4d5c635321f05e1 100644 (file)
 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*
This page took 0.120315 seconds and 4 git commands to generate.