diff --git a/_service b/_service new file mode 100644 index 0000000..4ad4181 --- /dev/null +++ b/_service @@ -0,0 +1,16 @@ + + + https://github.com/openSUSE/kdump + git + master + @PARENT_TAG@+git@TAG_OFFSET@.g%h + v([^+]*\+git[1-9].*)|v([^+]*)\+git0.* + \1\2 + + + + *.tar + xz + + + diff --git a/kdump-1.0.2+git8.g51e8c4d.tar.xz b/kdump-1.0.2+git8.g51e8c4d.tar.xz new file mode 100644 index 0000000..0d73fe6 --- /dev/null +++ b/kdump-1.0.2+git8.g51e8c4d.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea75c33fd84dd421ca754a10da8370017ead8762b7d8a5cf9c3c1b06f688fd7c +size 2559100 diff --git a/kdump-1.0.2.tar.bz2 b/kdump-1.0.2.tar.bz2 deleted file mode 100644 index 64390f8..0000000 --- a/kdump-1.0.2.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8fd7176be438b9c98b34f47ad9d8c8056d0050903b0f758675e3ba60d7aaf31a -size 3368675 diff --git a/kdump-calibrate-fix-nic-naming.patch b/kdump-calibrate-fix-nic-naming.patch deleted file mode 100644 index dd2fa67..0000000 --- a/kdump-calibrate-fix-nic-naming.patch +++ /dev/null @@ -1,36 +0,0 @@ -From: Petr Tesarik -Date: Tue Feb 1 22:25:59 2022 +0100 -Subject: calibrate: Fix network interface naming -Upstream: merged -Git-commit: 75a44901b54ba853497d63c01bef77b251436e0a - -The init scripts may rename the network interface unless it is -given an explicit name by MAC address. If that happens, network -initialization fails, because the "eth0" interface is missing. - -Signed-off-by: Petr Tesarik - ---- - calibrate/run-qemu.py | 11 +++++++++-- - 1 file changed, 9 insertions(+), 2 deletions(-) - ---- a/calibrate/run-qemu.py -+++ b/calibrate/run-qemu.py -@@ -217,8 +217,15 @@ def run_qemu(bindir, params, initrd, elf - model = 'virtio' - else: - model = 'e1000e' -- extra_qemu_args.extend(('-nic', 'user,model={}'.format(model))) -- extra_kernel_args.extend(('bootdev=eth0', 'ip=eth0:dhcp')) -+ mac = '12:34:56:78:9A:BC' -+ extra_qemu_args.extend(( -+ '-nic', 'user,mac={},model={}'.format(mac, model) -+ )) -+ extra_kernel_args.extend(( -+ 'ifname=kdump0:{}'.format(mac), -+ 'bootdev=kdump0', -+ 'ip=kdump0:dhcp' -+ )) - - # Other arch-specific arguments - if arch == 'aarch64': diff --git a/kdump-calibrate-include-af_packet.patch b/kdump-calibrate-include-af_packet.patch deleted file mode 100644 index b74c752..0000000 --- a/kdump-calibrate-include-af_packet.patch +++ /dev/null @@ -1,37 +0,0 @@ -From: Petr Tesarik -Date: Tue Feb 1 18:47:25 2022 +0100 -Subject: calibrate: Explicitly include af_packet in the test initrd -Upstream: merged -Git-commit: 00edd1457aa19eebe78c8c36ef013f72af262584 - -DHCP clients need protocol family PF_PACKET. If it is built as a -module, then the dependency is not automatically added by dracut's -kernel-network-modules unless af_packet is loaded in the host. - -This breaks OBS build, because that is done inside a VM with no -network. - -Signed-off-by: Petr Tesarik - ---- - calibrate/run-qemu.py | 7 ++++--- - 1 file changed, 4 insertions(+), 3 deletions(-) - ---- a/calibrate/run-qemu.py -+++ b/calibrate/run-qemu.py -@@ -82,11 +82,12 @@ class build_initrd(object): - '/usr/bin')) - - if params['NET']: -+ netdrivers = [ 'af_packet' ] - if params['ARCH'].startswith('s390'): -- net_driver = 'virtio-net' -+ netdrivers.append('virtio-net') - else: -- net_driver = 'e1000e' -- extra_args = ('--add-drivers', net_driver) -+ netdrivers.append('e1000e') -+ extra_args = ('--add-drivers', ' '.join(netdrivers)) - else: - extra_args = () - args = ( diff --git a/kdump-calibrate.conf-depends-on-kdumptool.patch b/kdump-calibrate.conf-depends-on-kdumptool.patch deleted file mode 100644 index 9ce5490..0000000 --- a/kdump-calibrate.conf-depends-on-kdumptool.patch +++ /dev/null @@ -1,23 +0,0 @@ -From: Petr Tesarik -Date: Tue Feb 1 23:14:01 2022 +0100 -Subject: calibrate.conf: Add dependency on kdumptool -Upstream: merged -Git-commit: 4641d2bc0468fe733c18b6f9c81f1bb6402c520e - -The run-qemu.py script invokes kdumptool to find a suitable kernel, -so kdumptool must be built before this script runs. - -Signed-off-by: Petr Tesarik - -diff --git a/calibrate/CMakeLists.txt b/calibrate/CMakeLists.txt -index 7d8b4fc..57344ae 100644 ---- a/calibrate/CMakeLists.txt -+++ b/calibrate/CMakeLists.txt -@@ -38,6 +38,7 @@ ADD_CUSTOM_COMMAND( - VERBATIM - DEPENDS - ${dracut_targets} -+ kdumptool - dummy.conf - dummy-net.conf - trackrss diff --git a/kdump.changes b/kdump.changes index 0eb8401..b103871 100644 --- a/kdump.changes +++ b/kdump.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Thu Mar 31 15:14:17 UTC 2022 - Jiri Bohac + +- pull sources directly from git using obs_scm +- fix bsc#1190299, bsc#1186272 +- add support for Zstandard compression algorithm +- remove patches included in upstream git: + kdump-calibrate-include-af_packet.patch, + kdump-calibrate-fix-nic-naming.patch, + kdump-calibrate.conf-depends-on-kdumptool.patch + ------------------------------------------------------------------- Tue Feb 8 16:14:52 UTC 2022 - Petr Tesařík diff --git a/kdump.spec b/kdump.spec index 062397a..4419ba4 100644 --- a/kdump.spec +++ b/kdump.spec @@ -49,18 +49,15 @@ %define dracutlibdir %{_prefix}/lib/dracut Name: kdump -Version: 1.0.2 +Version: 1.0.2+git8.g51e8c4d Release: 0 Summary: Script for kdump License: GPL-2.0-or-later Group: System/Kernel URL: https://github.com/openSUSE/kdump -Source: %{name}-%{version}.tar.bz2 +Source: %{name}-%{version}.tar.xz Source1: %{name}-calibrate.tar.bz2 Source2: %{name}-rpmlintrc -Patch1: %{name}-calibrate-include-af_packet.patch -Patch2: %{name}-calibrate-fix-nic-naming.patch -Patch3: %{name}-calibrate.conf-depends-on-kdumptool.patch BuildRequires: asciidoc BuildRequires: cmake >= 3.7 BuildRequires: gcc-c++ @@ -133,9 +130,6 @@ after a crash dump has occured. %prep %setup -q -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 %setup -q -D -T -a 1 %build