Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2020-05-02 22:18:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and      /work/SRC/openSUSE:Factory/.crash.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "crash"

Sat May  2 22:18:31 2020 rev:162 rq:799673 version:7.2.8

Changes:
--------
--- /work/SRC/openSUSE:Factory/crash/crash.changes      2020-04-22 
20:54:23.227556072 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new.2738/crash.changes    2020-05-02 
22:18:35.488693678 +0200
@@ -1,0 +2,6 @@
+Tue Apr 28 11:27:35 UTC 2020 - Petr Tesařík <ptesa...@suse.com>
+
+- Add crash-Define-fallback-PN_XNUM.patch
+  Add a fallback PN_XNUM definition.
+
+-------------------------------------------------------------------

New:
----
  crash-Define-fallback-PN_XNUM.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ crash.spec ++++++
--- /var/tmp/diff_new_pack.zDlLZN/_old  2020-05-02 22:18:37.204697273 +0200
+++ /var/tmp/diff_new_pack.zDlLZN/_new  2020-05-02 22:18:37.208697281 +0200
@@ -93,6 +93,7 @@
 Patch24:        
%{name}-SLE15-SP1-Fix-for-PPC64-kernel-virtual-address-translation-in.patch
 Patch25:        
%{name}-Fix-for-reading-compressed-kdump-dumpfiles-from-syst.patch
 Patch26:        
%{name}-fix-kmem-sS-for-caches-created-during-SLUB-bootstrap.patch
+Patch27:        %{name}-Define-fallback-PN_XNUM.patch
 Patch90:        %{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -123,17 +124,9 @@
 %endif
 
 %if 0%{?build_kmp}
-%if 0%{?suse_version} >= 920
 %suse_kernel_module_package -n crash -p %_sourcedir/%{name}-kmp-preamble um
 %define arch %_target_cpu
 %define kmp_pkg KMP
-%else
-%define kver %(rpm -q --qf '%%{VERSION}-%%{RELEASE}' kernel-source)
-%define kver_ %(rpm -q --qf '%%{VERSION}_%%{RELEASE}' kernel-source)
-%define arch %(echo %_target_cpu | sed -e 's/i.86/i386/')
-%define flavors_to_build %(sh %_sourcedir/get-kernel-flavors.sh %arch)
-%define kmp_pkg kmp
-%endif
 %endif
 
 %description
@@ -259,12 +252,6 @@
 Summary:        Memory driver for the crash utility
 License:        GPL-2.0-only
 Group:          System/Kernel
-%if 0%{?suse_version} < 920
-Version:        %{version}_%{kver_}
-Release:        0
-
-Requires:       kernel = %kver
-%endif
 
 %description %kmp_pkg
 To run the crash utility on a live system, a memory device must be present.
@@ -309,6 +296,7 @@
 %endif
 %patch25 -p1
 %patch26 -p1
+%patch27 -p1
 %if %{have_snappy}
 %patch15 -p1
 %endif
@@ -385,32 +373,6 @@
      make -C /usr/src/linux-obj/%arch/$flavor modules_install \
        M=$PWD/kbuild/$flavor
 done
-
-# Ugly SLES9-style KMP
-%if 0%{?suse_version} < 920
-set -- $(ls $RPM_BUILD_ROOT/lib/modules)
-KERNELRELEASES=$*
-
-set -- $(find $RPM_BUILD_ROOT/lib/modules -type f -name '*.ko' \
-        | sed -e 's:.*/::' -e 's:\.ko$::' | sort -u)
-MODULES=$*
-
-(   cat <<-EOF
-       # IMPORTANT: Do not change the KERNELRELEASES definition; it will be
-       # replaced during driver reuse!
-       KERNELRELEASES="$KERNELRELEASES"
-       MODULES="$MODULES"
-       EOF
-    cat %_sourcedir/depmod.sh
-    cat %_sourcedir/mkinitrd.sh
-) > post_postun.sh
-
-%post kmp -f post_postun.sh
-
-%postun kmp -f post_postun.sh
-
-%endif
-
 %endif
 
 %clean
@@ -458,13 +420,4 @@
 %doc extensions/README.gcore
 %endif
 
-%if 0%{?build_kmp}
-%if 0%{?suse_version} < 920
-
-%files %kmp_pkg
-%defattr(-,root,root)
-/lib/modules/*
-%endif
-%endif
-
 %changelog

++++++ crash-Define-fallback-PN_XNUM.patch ++++++
From: Petr Tesarik <ptesa...@suse.com>
Subject: Add a fallback PN_XNUM definition
Upstream: never, compatibility with old products

Distributions before SLE11 did not define PN_XNUM in <elf.h>.

Signed-off-by: Petr Tesarik <ptesa...@suse.com>
---
 netdump.h |    4 ++++
 1 file changed, 4 insertions(+)

--- a/netdump.h
+++ b/netdump.h
@@ -19,6 +19,10 @@
 #include <elf.h>
 #include "vmcore.h"
 
+#ifndef PN_XNUM
+#define PN_XNUM                0xffff
+#endif
+
 #define MIN_NETDUMP_ELF32_HEADER_SIZE \
         sizeof(Elf32_Ehdr)+sizeof(Elf32_Phdr)+sizeof(Elf32_Phdr)
 #define MIN_NETDUMP_ELF64_HEADER_SIZE \


Reply via email to