commit kdumpid for openSUSE:Factory

2023-06-29 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package kdumpid for openSUSE:Factory checked 
in at 2023-06-29 17:29:15

Comparing /work/SRC/openSUSE:Factory/kdumpid (Old)
 and  /work/SRC/openSUSE:Factory/.kdumpid.new.13546 (New)


Package is "kdumpid"

Thu Jun 29 17:29:15 2023 rev:4 rq:1095928 version:1.5

Changes:

--- /work/SRC/openSUSE:Factory/kdumpid/kdumpid.changes  2023-04-14 
13:13:33.699729772 +0200
+++ /work/SRC/openSUSE:Factory/.kdumpid.new.13546/kdumpid.changes   
2023-06-29 17:29:36.838711175 +0200
@@ -1,0 +2,9 @@
+Thu Jun 29 07:51:01 UTC 2023 - Petr Tesařík 
+
+- Update to version 1.5
+  * Fix crashes if a disassembler is not implemented.
+  * Fix a couple of build issues.
+- Patches moved to upstream:
+  * kdumpid-Fix-build-for-binutils-2.40.patch
+
+---

Old:

  kdumpid-1.4.tar.bz2
  kdumpid-Fix-build-for-binutils-2.40.patch

New:

  kdumpid-1.5.tar.bz2



Other differences:
--
++ kdumpid.spec ++
--- /var/tmp/diff_new_pack.TCd84B/_old  2023-06-29 17:29:37.554715369 +0200
+++ /var/tmp/diff_new_pack.TCd84B/_new  2023-06-29 17:29:37.558715394 +0200
@@ -16,13 +16,27 @@
 #
 
 
+# Begin compatibility cruft
+#
+
+%if 0%{!?have_zstd:1}
+%if 0%{?sle_version} >= 152000
+%define have_zstd 1
+%else
+%define have_zstd 0
+%endif
+%endif
+
+#
+# End compatibility cruft
+
 #Url:
 
 Name:   kdumpid
 BuildRequires:  binutils-devel
 BuildRequires:  libkdumpfile-devel
 BuildRequires:  zlib-devel
-Version:1.4
+Version:1.5
 Release:0
 Summary:Utility to extract information from vmcores
 License:GPL-2.0-or-later
@@ -30,7 +44,6 @@
 URL:http://sourceforge.net/p/kdumpid
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 Source: %{name}-%{version}.tar.bz2
-Patch1: %{name}-Fix-build-for-binutils-2.40.patch
 
 %description
 Kdumpid extracts information such as type of dump, architecture

++ kdumpid-1.4.tar.bz2 -> kdumpid-1.5.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdumpid-1.4/Makefile new/kdumpid-1.5/Makefile
--- old/kdumpid-1.4/Makefile2023-04-13 19:43:12.747142709 +0200
+++ new/kdumpid-1.5/Makefile2023-06-29 08:52:53.750523105 +0200
@@ -11,7 +11,7 @@
 endif
 
 CUSTOM_CFLAGS= -ggdb -Wall -I/home/petr/.local/include
-LIBS += -L/home/petr/.local/lib64 -lkdumpfile -laddrxlat -lz -lzstd -lopcodes 
-lbfd -lsframe -liberty -ldl
+LIBS += -L/home/petr/.local/lib64 -lkdumpfile -laddrxlat -lz $(shell ./libs.sh)
 
 LD=ld
 
@@ -20,7 +20,7 @@
 ### CONFIGURATION END
 
 VER_MAJOR=1
-VER_MINOR=4
+VER_MINOR=5
 
 CDEFS:=$(shell ./cdefs.sh)
 
@@ -39,7 +39,7 @@
 OBJS=$(addsuffix .o,$(basename $(SRC)))
 
 DIST_EXTRA=Makefile Makefile.lib kdumpid.1
-DIST_SCRIPTS=cdefs.sh
+DIST_SCRIPTS=cdefs.sh libs.sh
 DIST=$(HDRS) $(SRC) $(DIST_EXTRA)
 
 PKGDIR=kdumpid-$(VER_MAJOR).$(VER_MINOR)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdumpid-1.4/cdefs.sh new/kdumpid-1.5/cdefs.sh
--- old/kdumpid-1.4/cdefs.sh2023-04-13 19:43:12.751142746 +0200
+++ new/kdumpid-1.5/cdefs.sh2023-06-29 08:52:53.754523142 +0200
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/bash
 tmpdir=$(mktemp -d)
 trap 'rm -rf "$tmpdir"' EXIT
 cd "$tmpdir"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdumpid-1.4/libs.sh new/kdumpid-1.5/libs.sh
--- old/kdumpid-1.4/libs.sh 1970-01-01 01:00:00.0 +0100
+++ new/kdumpid-1.5/libs.sh 2023-06-29 08:52:53.754523142 +0200
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+tmpdir=$(mktemp -d)
+trap 'rm -rf "$tmpdir"' EXIT
+cd "$tmpdir"
+
+cat > disas.c endian != KDUMP_LITTLE_ENDIAN,
  bfd_mach_ppc64, NULL);
+   if (!print_insn)
+   return 0;
return disas_at(dd, , 0);
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdumpid-1.4/s390.c new/kdumpid-1.5/s390.c
--- old/kdumpid-1.4/s390.c  2023-04-13 19:43:12.747142709 +0200
+++ new/kdumpid-1.5/s390.c  2023-06-29 08:52:53.750523105 

commit kdumpid for openSUSE:Factory

2023-04-14 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package kdumpid for openSUSE:Factory checked 
in at 2023-04-14 13:13:22

Comparing /work/SRC/openSUSE:Factory/kdumpid (Old)
 and  /work/SRC/openSUSE:Factory/.kdumpid.new.19717 (New)


Package is "kdumpid"

Fri Apr 14 13:13:22 2023 rev:3 rq:1079287 version:1.4

Changes:

--- /work/SRC/openSUSE:Factory/kdumpid/kdumpid.changes  2022-08-16 
17:08:08.555949670 +0200
+++ /work/SRC/openSUSE:Factory/.kdumpid.new.19717/kdumpid.changes   
2023-04-14 13:13:33.699729772 +0200
@@ -1,0 +2,15 @@
+Thu Apr 13 18:35:49 UTC 2023 - Petr Tesařík 
+
+- kdumpid-Fix-build-for-binutils-2.40.patch: Fix build for
+  binutils < 2.40.
+
+---
+Thu Apr 13 17:36:52 UTC 2023 - Petr Tesařík 
+
+- Update to version 1.4
+  * Bugfix release
+- Patches moved to upstream:
+  * kdumpid-append_insn.patch
+  * kdumpid-binutils-2.39-fix.patch
+
+---

Old:

  kdumpid-1.3.tar.bz2
  kdumpid-append_insn.patch
  kdumpid-binutils-2.39-fix.patch

New:

  kdumpid-1.4.tar.bz2
  kdumpid-Fix-build-for-binutils-2.40.patch



Other differences:
--
++ kdumpid.spec ++
--- /var/tmp/diff_new_pack.PrRHcd/_old  2023-04-14 13:13:34.167732448 +0200
+++ /var/tmp/diff_new_pack.PrRHcd/_new  2023-04-14 13:13:34.167732448 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package kdumpid
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,14 +19,10 @@
 #Url:
 
 Name:   kdumpid
-BuildRequires:  zlib-devel
-%if 0%{?suse_version} < 1030 && ! 0%{?fedora}
-BuildRequires:  binutils
-%else
 BuildRequires:  binutils-devel
-%endif
 BuildRequires:  libkdumpfile-devel
-Version:1.3
+BuildRequires:  zlib-devel
+Version:1.4
 Release:0
 Summary:Utility to extract information from vmcores
 License:GPL-2.0-or-later
@@ -34,8 +30,7 @@
 URL:http://sourceforge.net/p/kdumpid
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 Source: %{name}-%{version}.tar.bz2
-Patch1: %{name}-append_insn.patch
-Patch2: %{name}-binutils-2.39-fix.patch
+Patch1: %{name}-Fix-build-for-binutils-2.40.patch
 
 %description
 Kdumpid extracts information such as type of dump, architecture
@@ -45,6 +40,8 @@
 %setup
 %autopatch -p1
 
+chmod +x libs.sh
+
 %build
 make CUSTOM_CFLAGS="${CFLAGS:-%optflags}"
 

++ kdumpid-1.3.tar.bz2 -> kdumpid-1.4.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdumpid-1.3/Makefile new/kdumpid-1.4/Makefile
--- old/kdumpid-1.3/Makefile2020-09-22 22:08:52.098011234 +0200
+++ new/kdumpid-1.4/Makefile2023-04-13 19:43:12.747142709 +0200
@@ -10,8 +10,8 @@
 MANDIR=$(PREFIX)/man
 endif
 
-CUSTOM_CFLAGS= -ggdb -Wall -I/home/tesarik/.local/include
-LIBS += -L/home/tesarik/.local/lib64 -lkdumpfile -laddrxlat -lz -lopcodes 
-lbfd -liberty -ldl
+CUSTOM_CFLAGS= -ggdb -Wall -I/home/petr/.local/include
+LIBS += -L/home/petr/.local/lib64 -lkdumpfile -laddrxlat -lz -lzstd -lopcodes 
-lbfd -lsframe -liberty -ldl
 
 LD=ld
 
@@ -20,9 +20,11 @@
 ### CONFIGURATION END
 
 VER_MAJOR=1
-VER_MINOR=3
+VER_MINOR=4
 
-CFLAGS=-DVER_MAJOR=$(VER_MAJOR) -DVER_MINOR=$(VER_MINOR)
+CDEFS:=$(shell ./cdefs.sh)
+
+CFLAGS=-DVER_MAJOR=$(VER_MAJOR) -DVER_MINOR=$(VER_MINOR) $(CDEFS)
 
 ifndef INSTALL
 INSTALL=/usr/bin/install
@@ -37,6 +39,7 @@
 OBJS=$(addsuffix .o,$(basename $(SRC)))
 
 DIST_EXTRA=Makefile Makefile.lib kdumpid.1
+DIST_SCRIPTS=cdefs.sh
 DIST=$(HDRS) $(SRC) $(DIST_EXTRA)
 
 PKGDIR=kdumpid-$(VER_MAJOR).$(VER_MINOR)
@@ -58,6 +61,7 @@
rm -rf $(PKGDIR)
mkdir -p $(PKGDIR)
$(INSTALL) -m 0644 $(DIST) $(PKGDIR)
+   $(INSTALL) -m 0755 $(DIST_SCRIPTS) $(PKGDIR)
 
 package: dist
rm -f $(PKGNAME)*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdumpid-1.3/cdefs.sh new/kdumpid-1.4/cdefs.sh
--- old/kdumpid-1.3/cdefs.sh1970-01-01 01:00:00.0 +0100
+++ new/kdumpid-1.4/cdefs.sh2023-04-13 19:43:12.751142746 +0200
@@ -0,0 +1,17 @@
+#! /bin/sh
+tmpdir=$(mktemp -d)
+trap 'rm -rf "$tmpdir"' EXIT
+cd "$tmpdir"
+
+cat > dis_asm.c <
+void fn(struct disassemble_info *info, void *stream,
+fprintf_ftype fprintf_func, fprintf_styled_ftype fprintf_styled_func)
+{
+  init_disassemble_info(info, stream, fprintf_func, fprintf_styled_func);
+}
+EOF
+if make dis_asm.o &> /dev/null
+then
+echo "-DDIS_ASM_STYLED_PRINTF"
+fi
diff -urN 

commit kdumpid for openSUSE:Factory

2022-08-16 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package kdumpid for openSUSE:Factory checked 
in at 2022-08-16 17:08:07

Comparing /work/SRC/openSUSE:Factory/kdumpid (Old)
 and  /work/SRC/openSUSE:Factory/.kdumpid.new.1521 (New)


Package is "kdumpid"

Tue Aug 16 17:08:07 2022 rev:2 rq:996781 version:1.3

Changes:

--- /work/SRC/openSUSE:Factory/kdumpid/kdumpid.changes  2022-04-20 
17:03:43.847169880 +0200
+++ /work/SRC/openSUSE:Factory/.kdumpid.new.1521/kdumpid.changes
2022-08-16 17:08:08.555949670 +0200
@@ -1,0 +2,7 @@
+Tue Aug 16 09:20:30 UTC 2022 - Petr Tesak 
+
+- Fix build with binutils-2.39:
+  * kdumpid-append_insn.patch
+  * kdumpid-binutils-2.39-fix.patch
+
+---

New:

  kdumpid-append_insn.patch
  kdumpid-binutils-2.39-fix.patch



Other differences:
--
++ kdumpid.spec ++
--- /var/tmp/diff_new_pack.IY2Psx/_old  2022-08-16 17:08:09.219951656 +0200
+++ /var/tmp/diff_new_pack.IY2Psx/_new  2022-08-16 17:08:09.223951668 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package kdumpid
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -34,14 +34,16 @@
 URL:http://sourceforge.net/p/kdumpid
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 Source: %{name}-%{version}.tar.bz2
+Patch1: %{name}-append_insn.patch
+Patch2: %{name}-binutils-2.39-fix.patch
 
 %description
 Kdumpid extracts information such as type of dump, architecture
 and kernel version from raw vmcores (Kernel memory dumps).
 
-
 %prep
 %setup
+%autopatch -p1
 
 %build
 make CUSTOM_CFLAGS="${CFLAGS:-%optflags}"

++ kdumpid-append_insn.patch ++
From: Petr Tesarik 
Date: Tue Aug 16 10:39:16 2022 +0200
Subject: Split off append_insn() from instruction printers
Upstream: yes
Git-commit: 222de76bc6d1dc7acfb094980d266834a6672fbc

This allows to reuse the code.

Signed-off-by: Petr Tesarik 

diff --git a/ppc.c b/ppc.c
index 5a496c4..4a321c4 100644
--- a/ppc.c
+++ b/ppc.c
@@ -40,21 +40,27 @@ static const char sep[] = ", \t\r\n";
 
 static disassembler_ftype print_insn;
 
-static int
-disas_fn(void *data, const char *fmt, ...)
+static void
+append_insn(void *data, const char *fmt, va_list va)
 {
struct disas_priv *priv = data;
-   va_list va;
size_t remain;
int len;
 
-   va_start(va, fmt);
-
remain = priv->insn + sizeof(priv->insn) - priv->iptr;
len = vsnprintf(priv->iptr, remain, fmt, va);
if (len > 0)
priv->iptr += len;
 
+}
+
+static int
+disas_fn(void *data, const char *fmt, ...)
+{
+   va_list va;
+
+   va_start(va, fmt);
+   append_insn(data, fmt, va);
va_end(va);
 
return 0;
diff --git a/ppc64.c b/ppc64.c
index 3d421ac..1542b80 100644
--- a/ppc64.c
+++ b/ppc64.c
@@ -40,21 +40,26 @@ static const char sep[] = ", \t\r\n";
 
 static disassembler_ftype print_insn;
 
-static int
-disas_fn(void *data, const char *fmt, ...)
+static void
+append_insn(void *data, const char *fmt, va_list va)
 {
struct disas_priv *priv = data;
-   va_list va;
size_t remain;
int len;
 
-   va_start(va, fmt);
-
remain = priv->insn + sizeof(priv->insn) - priv->iptr;
len = vsnprintf(priv->iptr, remain, fmt, va);
if (len > 0)
priv->iptr += len;
+}
 
+static int
+disas_fn(void *data, const char *fmt, ...)
+{
+   va_list va;
+
+   va_start(va, fmt);
+   append_insn(data, fmt, va);
va_end(va);
 
return 0;
diff --git a/s390.c b/s390.c
index bef4e79..15db888 100644
--- a/s390.c
+++ b/s390.c
@@ -45,21 +45,26 @@ static const char sep[] = ", \t\r\n";
 
 static disassembler_ftype print_insn;
 
-static int
-disas_fn(void *data, const char *fmt, ...)
+static void
+append_insn(void *data, const char *fmt, va_list va)
 {
struct disas_priv *priv = data;
-   va_list va;
size_t remain;
int len;
 
-   va_start(va, fmt);
-
remain = priv->insn + sizeof(priv->insn) - priv->iptr;
len = vsnprintf(priv->iptr, remain, fmt, va);
if (len > 0)
priv->iptr += len;
+}
 
+static int
+disas_fn(void *data, const char *fmt, ...)
+{
+   va_list va;
+
+   va_start(va, fmt);
+   append_insn(data, fmt, va);
va_end(va);
 
return 0;
diff --git a/x86.c b/x86.c
index ac9bec6..0f69c76 100644
--- a/x86.c
+++ b/x86.c
@@ -37,21 +37,26 @@ static const char sep[] = ", \t\r\n";
 
 static disassembler_ftype print_insn;
 
-static int
-disas_fn(void 

commit kdumpid for openSUSE:Factory

2022-04-20 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package kdumpid for openSUSE:Factory checked 
in at 2022-04-20 17:03:41

Comparing /work/SRC/openSUSE:Factory/kdumpid (Old)
 and  /work/SRC/openSUSE:Factory/.kdumpid.new.1941 (New)


Package is "kdumpid"

Wed Apr 20 17:03:41 2022 rev:1 rq:971063 version:1.3

Changes:

New Changes file:

--- /dev/null   2022-04-14 01:53:35.491382591 +0200
+++ /work/SRC/openSUSE:Factory/.kdumpid.new.1941/kdumpid.changes
2022-04-20 17:03:43.847169880 +0200
@@ -0,0 +1,110 @@
+---
+Tue Sep 22 20:11:47 UTC 2020 - Petr Tesak 
+
+- Update to version 1.3:
+  * Switch to libkdumpfile-0.4.0
+  * Update API to newer binutils (bsc#1197741).
+
+---
+Mon May 15 12:36:23 UTC 2017 - ptesa...@suse.com
+
+- Update to version 1.2:
+  * Switch to libkdumpfile-0.3.0
+  * Handle converted z/Architecture VMDUMP files (bsc#883757).
+
+---
+Mon Feb  1 14:06:18 UTC 2016 - ptesa...@suse.com
+
+- Update to version 1.1:
+  * Support for libkdumpfile-0.2.0 
+- Patches moved to upstream:
+  * kdumpid-libkdumpfile-libs.patch
+  * kdumpid-x86_64-fix-NULL-arch-segv.patch
+  * kdumpid-quit-on-libkdumpfile-failure.patch
+  * kdumpid-fix-kdump_is_xen.patch
+  * kdumpid-x86-out-of-bounds-disas.patch
+
+---
+Tue Nov  4 10:21:51 UTC 2014 - ptesa...@suse.cz
+
+- kdumpid-fix-kdump_is_xen.patch: Fix wrong use of kdump_is_xen().
+
+---
+Mon Nov  3 23:18:07 UTC 2014 - ptesa...@suse.cz
+
+- kdumpid-x86-out-of-bounds-disas.patch: x86: Prevent out-of-bounds
+  reads in disas_at().
+
+---
+Mon Nov  3 21:12:46 UTC 2014 - ptesa...@suse.cz
+
+- kdumpid-quit-on-libkdumpfile-failure.patch: Quit on libkdumpfile
+  failure.
+- kdumpid-x86_64-fix-NULL-arch-segv.patch Fix SEGV when checking
+  x86_64 and arch is unknown.
+
+---
+Mon Nov  3 09:24:07 UTC 2014 - ptesa...@suse.cz
+
+- kdumpid-libkdumpfile-libs.patch: Do not try to link additional
+  libraries needed by libkdumpfile.
+
+---
+Mon Nov  3 09:10:56 UTC 2014 - ptesa...@suse.cz
+
+- Update to version 1.0:
+  * Include Xen version in the output
+  * Backend split off to libkdumpfile
+
+---
+Fri Apr  5 12:13:57 UTC 2013 - ptesa...@suse.cz
+
+- Update to version 0.92:
+  o add a manual page
+  o avoid a gcc warning
+- Improve packaging (use RPM macros to set up destination paths). 
+
+---
+Fri Apr  5 10:59:38 UTC 2013 - ptesa...@suse.cz
+
+- Update to version 0.91 (another bug-fix release). 
+
+---
+Wed Nov  2 15:08:00 UTC 2011 - ptesa...@suse.cz
+
+- Update to version 0.90 (actually a bug-fix release).
+
+---
+Tue Nov  1 20:47:12 UTC 2011 - lchiqui...@suse.com
+
+- Pull more fixes and improvements from the upstream repository:
+  * Add support for ppc and ppc64.
+  * Implement a --verbose flag.
+  * Add RLE dump uncompression method (used in some LKCD dumps).
+  * Add many LKCD fixes and improvements.
+
+---
+Wed Oct 19 15:03:08 CEST 2011 - lchiqui...@suse.com
+
+- Update to version 0.9, which fixes some bugs and implements some
+  new features:
+  * Support /dev/mem and /dev/crash formats.
+  * Support for big-endian LKCD dumps.
+  * Preliminary support for s/390.
+
+---
+Tue Oct 18 20:14:32 CEST 2011 - lchiqui...@suse.com
+
+- x86: Fix a segfault when disassembling invalid pages. 
+
+---
+Tue Oct 18 17:56:15 UTC 2011 - lchiqui...@suse.com
+
+- Update to current git snapshot (20111018): kdumpid is now able to
+  correctly identify Xen dom0 dumps, among other improvements.
+
+---
+Fri Oct 14 12:36:27 UTC 2011 - lchiqui...@suse.com
+
+- Import kdumpid.
+

New:

  kdumpid-1.3.tar.bz2
  kdumpid.changes
  kdumpid.spec



Other differences:
--
++ kdumpid.spec ++
#
# spec file for package kdumpid
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file