Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package kdump for openSUSE:Factory checked in at 2023-12-14 22:02:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kdump (Old) and /work/SRC/openSUSE:Factory/.kdump.new.25432 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kdump" Thu Dec 14 22:02:44 2023 rev:143 rq:1132926 version:2.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/kdump/kdump.changes 2023-11-02 20:20:45.890279051 +0100 +++ /work/SRC/openSUSE:Factory/.kdump.new.25432/kdump.changes 2023-12-14 22:02:44.931219632 +0100 @@ -1,0 +2,9 @@ +Wed Dec 13 16:44:48 UTC 2023 - Jiri Bohac <jbo...@suse.com> + +- upgrade to version 2.0.0 + * add support for riscv64 (bsc#1204214) + * mkdumprd: fix the check for updated SSH keys + * prefer by-path and device-mapper aliases (bsc#1217617) + * udev: don't reload kdump if kernel handles hotplug (jsc#PED-5077) + +------------------------------------------------------------------- Old: ---- kdump-1.9.8.tar.xz New: ---- kdump-2.0.0.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kdump.spec ++++++ --- /var/tmp/diff_new_pack.QS58fm/_old 2023-12-14 22:02:45.751249209 +0100 +++ /var/tmp/diff_new_pack.QS58fm/_new 2023-12-14 22:02:45.751249209 +0100 @@ -44,16 +44,20 @@ %ifarch %power64 %define qemu qemu-ppc %else +%ifarch riscv64 +%define qemu qemu-extra +%else %define qemu qemu-%{_target_cpu} %endif %endif %endif %endif +%endif %define dracutlibdir %{_prefix}/lib/dracut Name: kdump -Version: 1.9.8 +Version: 2.0.0 Release: 0 Summary: Kernel crash dump scripts and utilities License: GPL-2.0-or-later ++++++ kdump-1.9.8.tar.xz -> kdump-2.0.0.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdump-1.9.8/70-kdump.rules.in new/kdump-2.0.0/70-kdump.rules.in --- old/kdump-1.9.8/70-kdump.rules.in 2023-10-31 14:48:03.000000000 +0100 +++ new/kdump-2.0.0/70-kdump.rules.in 2023-12-13 17:34:59.000000000 +0100 @@ -4,13 +4,13 @@ # no kdump udev rules are required. # @else -# + +# Do nothing if kernel itself updates vmcoreinfo on hotplug +SUBSYSTEM=="cpu", ATTRS{crash_hotplug}=="1", GOTO="kdump_end" +SUBSYSTEM=="memory", ATTRS{crash_hotplug}=="1", GOTO="kdump_end" + # Kdump core headers needs to be regnerated if the CPUs or memory changes. # For this, reload kdump. -# -# Novell Bug #389658 -# - SUBSYSTEM=="memory", ACTION=="add|remove", GOTO="kdump_try_restart" @if @ARCH@ ppc ppc64 ppc64le SUBSYSTEM=="cpu", ACTION=="online", GOTO="kdump_try_restart" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdump-1.9.8/NEWS new/kdump-2.0.0/NEWS --- old/kdump-1.9.8/NEWS 2023-10-31 14:48:03.000000000 +0100 +++ new/kdump-2.0.0/NEWS 2023-12-13 17:34:59.000000000 +0100 @@ -1,3 +1,10 @@ +2.0.0 +----- + * add support for riscv64 (bsc#1204214) + * mkdumprd: fix the check for updated SSH keys + * prefer by-path and device-mapper aliases (bsc#1217617) + * udev: don't reload kdump if kernel handles hotplug (jsc#PED-5077) + 1.9.8 ----- * drop obsolete dependency on systemd-sysvinit diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdump-1.9.8/calibrate/mkelfcorehdr.c new/kdump-2.0.0/calibrate/mkelfcorehdr.c --- old/kdump-1.9.8/calibrate/mkelfcorehdr.c 2023-10-31 14:48:03.000000000 +0100 +++ new/kdump-2.0.0/calibrate/mkelfcorehdr.c 2023-12-13 17:34:59.000000000 +0100 @@ -46,6 +46,8 @@ # define ELF_MACHINE EM_ARM #elif defined(__alpha__) # define ELF_MACHINE EM_ALPHA +#elif defined(__riscv) +# define ELF_MACHINE EM_RISCV #else # error "Unimplemented architecture!" #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdump-1.9.8/calibrate/run-qemu.py new/kdump-2.0.0/calibrate/run-qemu.py --- old/kdump-1.9.8/calibrate/run-qemu.py 2023-10-31 14:48:03.000000000 +0100 +++ new/kdump-2.0.0/calibrate/run-qemu.py 2023-12-13 17:34:59.000000000 +0100 @@ -34,7 +34,7 @@ image="vmlinuz" elif arch.startswith("s390"): image="image" -elif arch == "aarch64": +elif arch == "aarch64" or arch == "riscv64": image="Image" else: image="vmlinux" @@ -48,6 +48,9 @@ if params['ARCH'] == 'aarch64': # QEMU defines all RAM at 1G physical for AArch64 ADDR_ELFCOREHDR = (1024 * 1024 * 1024) + (256 * 1024 * 1024) +elif params['ARCH'] == 'riscv64': + # QEMU defines all RAM at 2G physical for RISC-V + ADDR_ELFCOREHDR = 0x80000000 + (256 * 1024 * 1024) else: # For other platforms, the region at 768M should be reasonably safe, # because it is high enough to avoid conflicts with special-purpose @@ -179,6 +182,9 @@ elif arch.startswith('s390'): console = 'sclp0' logdev = '229,0' # hvc0 + elif arch == 'riscv64': + console = 'ttyS1' + logdev = '4,66' # ttyS2 else: console = 'ttyS0' logdev = '4,65' # ttyS1 @@ -197,6 +203,13 @@ '-chardev', 'file,path={},id=hvc0'.format(params['TRACKRSS_LOG']), '-device', 'virtconsole,nr=0,chardev=hvc0', ) + elif arch == 'riscv64': + console_args = ( + '-serial', 'mon:stdio', # one serial port is hardcoded in the virt machine + '-chardev', 'file,path={},id=ttyS1'.format(params['MESSAGES_LOG']), + '-chardev', 'file,path={},id=ttyS2'.format(params['TRACKRSS_LOG']), + '-device', 'pci-serial-2x,chardev1=ttyS1,chardev2=ttyS2', + ) else: console_args = ( '-serial', 'file:' + params['MESSAGES_LOG'], @@ -245,6 +258,10 @@ '-cpu', 'max', '-bios', '/usr/share/qemu/qemu-uefi-aarch64.bin', )) + if arch == 'riscv64': + extra_qemu_args.extend(( + '-machine', 'virt', + )) kernel_args = ( 'panic=1', 'nokaslr', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdump-1.9.8/doc/man/kdump.5.txt.in new/kdump-2.0.0/doc/man/kdump.5.txt.in --- old/kdump-1.9.8/doc/man/kdump.5.txt.in 2023-10-31 14:48:03.000000000 +0100 +++ new/kdump-2.0.0/doc/man/kdump.5.txt.in 2023-12-13 17:34:59.000000000 +0100 @@ -237,6 +237,8 @@ following format will be created: "YYYY-MM-DD-HH-MM". That directory contains the vmcore dump, the dmesg and a README.txt file. +Bind mounts are not supported. + Default: "/var/crash". diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdump-1.9.8/init/mkdumprd new/kdump-2.0.0/init/mkdumprd --- old/kdump-1.9.8/init/mkdumprd 2023-10-31 14:48:03.000000000 +0100 +++ new/kdump-2.0.0/init/mkdumprd 2023-12-13 17:34:59.000000000 +0100 @@ -54,6 +54,18 @@ mkdir -p "${KDUMP_SAVEDIR_REALPATH}" read -r SOURCE TARGET FS OPTIONS < <(findmnt -n -v --raw --target "${KDUMP_SAVEDIR_REALPATH}" --output=source,target,fstype,options) || error "Cannot find mount point for ${KDUMP_SAVEDIR#*://}" + + # get persistent device name for SOURCE + local _symlink + for _symlink in $(udevadm info --root --query=symlink "$SOURCE") + do + case "$_symlink" in + */by-path/*|*/mapper/*) + SOURCE="$_symlink" + break + esac + done + TARGET="${MOUNTPOINT}${TARGET}" KDUMP_DRACUT_MOUNT_OPTION="${SOURCE} ${TARGET} ${FS} ${OPTIONS}" ;; @@ -109,7 +121,8 @@ pushd ~root/.ssh >/dev/null #identity files are relative to this directory [[ -z "${KDUMP_SSH_IDENTITY}" ]] && KDUMP_SSH_IDENTITY="id_rsa id_dsa id_ecdsa id_ed25519" for i in ${KDUMP_SSH_IDENTITY}; do - [[ -f "${i}.pub" ]] && [[ "${i}.pub" -ot "$INITRD" ]] || return 1 + [[ -f "${i}.pub" ]] || continue + [[ "${i}.pub" -ot "$INITRD" ]] || return 1 done popd fi diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdump-1.9.8/kdumptool/calibrate.cc new/kdump-2.0.0/kdumptool/calibrate.cc --- old/kdump-1.9.8/kdumptool/calibrate.cc 2023-10-31 14:48:03.000000000 +0100 +++ new/kdump-2.0.0/kdumptool/calibrate.cc 2023-12-13 17:34:59.000000000 +0100 @@ -106,6 +106,10 @@ # define DEF_RESERVE_KB MB(192) # define CAN_REDUCE_CPUS 1 +#elif defined(__riscv) +# define DEF_RESERVE_KB MB(192) +# define CAN_REDUCE_CPUS 1 + #else # error "No default crashkernel reservation for your architecture!" #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdump-1.9.8/packaging/suse/kdump.spec new/kdump-2.0.0/packaging/suse/kdump.spec --- old/kdump-1.9.8/packaging/suse/kdump.spec 2023-10-31 14:48:03.000000000 +0100 +++ new/kdump-2.0.0/packaging/suse/kdump.spec 2023-12-13 17:34:59.000000000 +0100 @@ -43,10 +43,14 @@ %ifarch %power64 %define qemu qemu-ppc %else +%ifarch riscv64 +%define qemu qemu-extra +%else %define qemu qemu-%{_target_cpu} %endif %endif %endif +%endif %endif %define dracutlibdir %{_prefix}/lib/dracut