Sync from SUSE:SLFO:Main kdump revision c75289e5034b6730bf85eaf695494eb3

This commit is contained in:
Adrian Schröter 2024-05-03 14:10:19 +02:00
commit 958f8587c5
6 changed files with 2559 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

20
_service Normal file
View File

@ -0,0 +1,20 @@
<services>
<service name="obs_scm" mode="manual">
<param name="url">https://github.com/openSUSE/kdump</param>
<param name="scm">git</param>
<param name="revision">master</param>
<param name="versionformat">@PARENT_TAG@+git@TAG_OFFSET@.g%h</param>
<param name="versionrewrite-pattern">v([^+]*\+git[1-9].*)|v([^+]*)\+git0.*</param>
<param name="versionrewrite-replacement">\1\2</param>
</service>
<service name="tar" mode="manual" />
<service name="extract_file" mode="manual">
<param name="archive">*.tar</param>
<param name="files">*/packaging/suse/kdump.spec</param>
</service>
<service name="recompress" mode="manual">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="manual" />
</services>

400
calibrate.conf.all Normal file
View File

@ -0,0 +1,400 @@
alp1600.aarch64:INIT_CACHED=35308
alp1600.aarch64:INIT_CACHED_NET=13196
alp1600.aarch64:INIT_NET=4444
alp1600.aarch64:KERNEL_BASE=93832
alp1600.aarch64:KERNEL_INIT=23264
alp1600.aarch64:PAGESIZE=4096
alp1600.aarch64:PERCPU=152
alp1600.aarch64:SIZEOFPAGE=64
alp1600.aarch64:USER_BASE=12132
alp1600.aarch64:USER_NET=0
alp1600.i386:INIT_CACHED=42804
alp1600.i386:INIT_CACHED_NET=12916
alp1600.i386:INIT_NET=4748
alp1600.i386:KERNEL_BASE=58004
alp1600.i386:KERNEL_INIT=14864
alp1600.i386:PAGESIZE=4096
alp1600.i386:PERCPU=136
alp1600.i386:SIZEOFPAGE=40
alp1600.i386:USER_BASE=13064
alp1600.i386:USER_NET=1868
alp1600.ppc64:INIT_CACHED=92096
alp1600.ppc64:INIT_CACHED_NET=20928
alp1600.ppc64:INIT_NET=5056
alp1600.ppc64:KERNEL_BASE=147840
alp1600.ppc64:KERNEL_INIT=22208
alp1600.ppc64:PAGESIZE=65536
alp1600.ppc64:PERCPU=896
alp1600.ppc64:SIZEOFPAGE=64
alp1600.ppc64:USER_BASE=87552
alp1600.ppc64:USER_NET=4032
alp1600.ppc64le:INIT_CACHED=81216
alp1600.ppc64le:INIT_CACHED_NET=23616
alp1600.ppc64le:INIT_NET=6336
alp1600.ppc64le:KERNEL_BASE=146240
alp1600.ppc64le:KERNEL_INIT=20224
alp1600.ppc64le:PAGESIZE=65536
alp1600.ppc64le:PERCPU=896
alp1600.ppc64le:SIZEOFPAGE=64
alp1600.ppc64le:USER_BASE=40960
alp1600.ppc64le:USER_NET=2112
alp1600.s390x:INIT_CACHED=28560
alp1600.s390x:INIT_CACHED_NET=12480
alp1600.s390x:INIT_NET=4512
alp1600.s390x:KERNEL_BASE=50036
alp1600.s390x:KERNEL_INIT=14624
alp1600.s390x:PAGESIZE=4096
alp1600.s390x:PERCPU=148
alp1600.s390x:SIZEOFPAGE=64
alp1600.s390x:USER_BASE=10280
alp1600.s390x:USER_NET=1352
alp1600.x86_64:INIT_CACHED=37336
alp1600.x86_64:INIT_CACHED_NET=12928
alp1600.x86_64:INIT_NET=5040
alp1600.x86_64:KERNEL_BASE=108796
alp1600.x86_64:KERNEL_INIT=23568
alp1600.x86_64:PAGESIZE=4096
alp1600.x86_64:PERCPU=292
alp1600.x86_64:SIZEOFPAGE=64
alp1600.x86_64:USER_BASE=9232
alp1600.x86_64:USER_NET=14408
leap150300.aarch64:INIT_CACHED=34920
leap150300.aarch64:INIT_CACHED_NET=9524
leap150300.aarch64:INIT_NET=3340
leap150300.aarch64:KERNEL_BASE=58128
leap150300.aarch64:KERNEL_INIT=17380
leap150300.aarch64:PAGESIZE=4096
leap150300.aarch64:PERCPU=140
leap150300.aarch64:SIZEOFPAGE=64
leap150300.aarch64:USER_BASE=15840
leap150300.aarch64:USER_NET=9160
leap150300.ppc64le:INIT_CACHED=73984
leap150300.ppc64le:INIT_CACHED_NET=15488
leap150300.ppc64le:INIT_NET=3904
leap150300.ppc64le:KERNEL_BASE=77120
leap150300.ppc64le:KERNEL_INIT=18240
leap150300.ppc64le:PAGESIZE=65536
leap150300.ppc64le:PERCPU=896
leap150300.ppc64le:SIZEOFPAGE=64
leap150300.ppc64le:USER_BASE=66304
leap150300.ppc64le:USER_NET=0
leap150300.s390x:INIT_CACHED=31132
leap150300.s390x:INIT_CACHED_NET=8876
leap150300.s390x:INIT_NET=2992
leap150300.s390x:KERNEL_BASE=43404
leap150300.s390x:KERNEL_INIT=12964
leap150300.s390x:PAGESIZE=4096
leap150300.s390x:PERCPU=144
leap150300.s390x:SIZEOFPAGE=64
leap150300.s390x:USER_BASE=13688
leap150300.s390x:USER_NET=7172
leap150300.x86_64:INIT_CACHED=32628
leap150300.x86_64:INIT_CACHED_NET=8992
leap150300.x86_64:INIT_NET=3428
leap150300.x86_64:KERNEL_BASE=56404
leap150300.x86_64:KERNEL_INIT=20292
leap150300.x86_64:PAGESIZE=4096
leap150300.x86_64:PERCPU=236
leap150300.x86_64:SIZEOFPAGE=64
leap150300.x86_64:USER_BASE=17076
leap150300.x86_64:USER_NET=4420
leap150500.aarch64:INIT_CACHED=31912
leap150500.aarch64:INIT_CACHED_NET=10384
leap150500.aarch64:INIT_NET=3424
leap150500.aarch64:KERNEL_BASE=75432
leap150500.aarch64:KERNEL_INIT=17340
leap150500.aarch64:PAGESIZE=4096
leap150500.aarch64:PERCPU=144
leap150500.aarch64:SIZEOFPAGE=64
leap150500.aarch64:USER_BASE=14516
leap150500.aarch64:USER_NET=7040
leap150500.ppc64le:INIT_CACHED=72960
leap150500.ppc64le:INIT_CACHED_NET=17216
leap150500.ppc64le:INIT_NET=3968
leap150500.ppc64le:KERNEL_BASE=183360
leap150500.ppc64le:KERNEL_INIT=16960
leap150500.ppc64le:PAGESIZE=65536
leap150500.ppc64le:PERCPU=896
leap150500.ppc64le:SIZEOFPAGE=64
leap150500.ppc64le:USER_BASE=62336
leap150500.ppc64le:USER_NET=4864
leap150500.s390x:INIT_CACHED=28264
leap150500.s390x:INIT_CACHED_NET=9596
leap150500.s390x:INIT_NET=3112
leap150500.s390x:KERNEL_BASE=45020
leap150500.s390x:KERNEL_INIT=12728
leap150500.s390x:PAGESIZE=4096
leap150500.s390x:PERCPU=140
leap150500.s390x:SIZEOFPAGE=64
leap150500.s390x:USER_BASE=21256
leap150500.s390x:USER_NET=1212
leap150500.x86_64:INIT_CACHED=31084
leap150500.x86_64:INIT_CACHED_NET=9700
leap150500.x86_64:INIT_NET=3672
leap150500.x86_64:KERNEL_BASE=87692
leap150500.x86_64:KERNEL_INIT=20032
leap150500.x86_64:PAGESIZE=4096
leap150500.x86_64:PERCPU=264
leap150500.x86_64:SIZEOFPAGE=64
leap150500.x86_64:USER_BASE=17948
leap150500.x86_64:USER_NET=4508
sle150200.aarch64:INIT_CACHED=29848
sle150200.aarch64:INIT_CACHED_NET=14368
sle150200.aarch64:INIT_NET=4628
sle150200.aarch64:KERNEL_BASE=59120
sle150200.aarch64:KERNEL_INIT=13832
sle150200.aarch64:PAGESIZE=4096
sle150200.aarch64:PERCPU=140
sle150200.aarch64:SIZEOFPAGE=64
sle150200.aarch64:USER_BASE=6696
sle150200.aarch64:USER_NET=8028
sle150200.ppc64le:INIT_CACHED=63424
sle150200.ppc64le:INIT_CACHED_NET=21888
sle150200.ppc64le:INIT_NET=5312
sle150200.ppc64le:KERNEL_BASE=76096
sle150200.ppc64le:KERNEL_INIT=13824
sle150200.ppc64le:PAGESIZE=65536
sle150200.ppc64le:PERCPU=896
sle150200.ppc64le:SIZEOFPAGE=64
sle150200.ppc64le:USER_BASE=37760
sle150200.ppc64le:USER_NET=1024
sle150200.x86_64:INIT_CACHED=30020
sle150200.x86_64:INIT_CACHED_NET=13292
sle150200.x86_64:INIT_NET=4736
sle150200.x86_64:KERNEL_BASE=55968
sle150200.x86_64:KERNEL_INIT=17068
sle150200.x86_64:PAGESIZE=4096
sle150200.x86_64:PERCPU=236
sle150200.x86_64:SIZEOFPAGE=64
sle150200.x86_64:USER_BASE=11176
sle150200.x86_64:USER_NET=2372
sle150300.aarch64:INIT_CACHED=28572
sle150300.aarch64:INIT_CACHED_NET=10940
sle150300.aarch64:INIT_NET=3528
sle150300.aarch64:KERNEL_BASE=58452
sle150300.aarch64:KERNEL_INIT=15536
sle150300.aarch64:PAGESIZE=4096
sle150300.aarch64:PERCPU=140
sle150300.aarch64:SIZEOFPAGE=64
sle150300.aarch64:USER_BASE=16168
sle150300.aarch64:USER_NET=7636
sle150300.ppc64le:INIT_CACHED=64000
sle150300.ppc64le:INIT_CACHED_NET=17472
sle150300.ppc64le:INIT_NET=4032
sle150300.ppc64le:KERNEL_BASE=77632
sle150300.ppc64le:KERNEL_INIT=16192
sle150300.ppc64le:PAGESIZE=65536
sle150300.ppc64le:PERCPU=896
sle150300.ppc64le:SIZEOFPAGE=64
sle150300.ppc64le:USER_BASE=62592
sle150300.ppc64le:USER_NET=6336
sle150300.s390x:INIT_CACHED=25308
sle150300.s390x:INIT_CACHED_NET=10080
sle150300.s390x:INIT_NET=3224
sle150300.s390x:KERNEL_BASE=42888
sle150300.s390x:KERNEL_INIT=11216
sle150300.s390x:PAGESIZE=4096
sle150300.s390x:PERCPU=144
sle150300.s390x:SIZEOFPAGE=64
sle150300.s390x:USER_BASE=7140
sle150300.s390x:USER_NET=15608
sle150300.x86_64:INIT_CACHED=27012
sle150300.x86_64:INIT_CACHED_NET=9820
sle150300.x86_64:INIT_NET=3560
sle150300.x86_64:KERNEL_BASE=55852
sle150300.x86_64:KERNEL_INIT=18440
sle150300.x86_64:PAGESIZE=4096
sle150300.x86_64:PERCPU=236
sle150300.x86_64:SIZEOFPAGE=64
sle150300.x86_64:USER_BASE=18524
sle150300.x86_64:USER_NET=3052
sle150400.aarch64:INIT_CACHED=31584
sle150400.aarch64:INIT_CACHED_NET=10284
sle150400.aarch64:INIT_NET=3396
sle150400.aarch64:KERNEL_BASE=84716
sle150400.aarch64:KERNEL_INIT=16996
sle150400.aarch64:PAGESIZE=4096
sle150400.aarch64:PERCPU=144
sle150400.aarch64:SIZEOFPAGE=64
sle150400.aarch64:USER_BASE=13812
sle150400.aarch64:USER_NET=8340
sle150400.ppc64le:INIT_CACHED=72320
sle150400.ppc64le:INIT_CACHED_NET=17216
sle150400.ppc64le:INIT_NET=3904
sle150400.ppc64le:KERNEL_BASE=188096
sle150400.ppc64le:KERNEL_INIT=16640
sle150400.ppc64le:PAGESIZE=65536
sle150400.ppc64le:PERCPU=896
sle150400.ppc64le:SIZEOFPAGE=64
sle150400.ppc64le:USER_BASE=63552
sle150400.ppc64le:USER_NET=2368
sle150400.s390x:INIT_CACHED=28020
sle150400.s390x:INIT_CACHED_NET=9560
sle150400.s390x:INIT_NET=3100
sle150400.s390x:KERNEL_BASE=49792
sle150400.s390x:KERNEL_INIT=12488
sle150400.s390x:PAGESIZE=4096
sle150400.s390x:PERCPU=140
sle150400.s390x:SIZEOFPAGE=64
sle150400.s390x:USER_BASE=7408
sle150400.s390x:USER_NET=1884
sle150400.x86_64:INIT_CACHED=30556
sle150400.x86_64:INIT_CACHED_NET=9624
sle150400.x86_64:INIT_NET=3624
sle150400.x86_64:KERNEL_BASE=89536
sle150400.x86_64:KERNEL_INIT=19504
sle150400.x86_64:PAGESIZE=4096
sle150400.x86_64:PERCPU=264
sle150400.x86_64:SIZEOFPAGE=64
sle150400.x86_64:USER_BASE=17456
sle150400.x86_64:USER_NET=7164
sle150500.aarch64:INIT_CACHED=31912
sle150500.aarch64:INIT_CACHED_NET=10384
sle150500.aarch64:INIT_NET=3424
sle150500.aarch64:KERNEL_BASE=83044
sle150500.aarch64:KERNEL_INIT=17340
sle150500.aarch64:PAGESIZE=4096
sle150500.aarch64:PERCPU=144
sle150500.aarch64:SIZEOFPAGE=64
sle150500.aarch64:USER_BASE=13728
sle150500.aarch64:USER_NET=9900
sle150500.ppc64le:INIT_CACHED=72960
sle150500.ppc64le:INIT_CACHED_NET=17216
sle150500.ppc64le:INIT_NET=3968
sle150500.ppc64le:KERNEL_BASE=185088
sle150500.ppc64le:KERNEL_INIT=16960
sle150500.ppc64le:PAGESIZE=65536
sle150500.ppc64le:PERCPU=896
sle150500.ppc64le:SIZEOFPAGE=64
sle150500.ppc64le:USER_BASE=57984
sle150500.ppc64le:USER_NET=8576
sle150500.s390x:INIT_CACHED=28264
sle150500.s390x:INIT_CACHED_NET=9596
sle150500.s390x:INIT_NET=3112
sle150500.s390x:KERNEL_BASE=46024
sle150500.s390x:KERNEL_INIT=12728
sle150500.s390x:PAGESIZE=4096
sle150500.s390x:PERCPU=140
sle150500.s390x:SIZEOFPAGE=64
sle150500.s390x:USER_BASE=21676
sle150500.s390x:USER_NET=0
sle150500.x86_64:INIT_CACHED=31084
sle150500.x86_64:INIT_CACHED_NET=9700
sle150500.x86_64:INIT_NET=3668
sle150500.x86_64:KERNEL_BASE=87376
sle150500.x86_64:KERNEL_INIT=20036
sle150500.x86_64:PAGESIZE=4096
sle150500.x86_64:PERCPU=264
sle150500.x86_64:SIZEOFPAGE=64
sle150500.x86_64:USER_BASE=18320
sle150500.x86_64:USER_NET=4216
sle150600.aarch64:INIT_CACHED=31832
sle150600.aarch64:INIT_CACHED_NET=10384
sle150600.aarch64:INIT_NET=3424
sle150600.aarch64:KERNEL_BASE=82592
sle150600.aarch64:KERNEL_INIT=17340
sle150600.aarch64:PAGESIZE=4096
sle150600.aarch64:PERCPU=144
sle150600.aarch64:SIZEOFPAGE=64
sle150600.aarch64:USER_BASE=13620
sle150600.aarch64:USER_NET=7968
sle150600.ppc64le:INIT_CACHED=72832
sle150600.ppc64le:INIT_CACHED_NET=17216
sle150600.ppc64le:INIT_NET=3968
sle150600.ppc64le:KERNEL_BASE=119744
sle150600.ppc64le:KERNEL_INIT=16960
sle150600.ppc64le:PAGESIZE=65536
sle150600.ppc64le:PERCPU=896
sle150600.ppc64le:SIZEOFPAGE=64
sle150600.ppc64le:USER_BASE=62848
sle150600.ppc64le:USER_NET=3136
sle150600.s390x:INIT_CACHED=28240
sle150600.s390x:INIT_CACHED_NET=9600
sle150600.s390x:INIT_NET=3112
sle150600.s390x:KERNEL_BASE=44856
sle150600.s390x:KERNEL_INIT=12728
sle150600.s390x:PAGESIZE=4096
sle150600.s390x:PERCPU=140
sle150600.s390x:SIZEOFPAGE=64
sle150600.s390x:USER_BASE=7568
sle150600.s390x:USER_NET=12524
sle150600.x86_64:INIT_CACHED=31096
sle150600.x86_64:INIT_CACHED_NET=9704
sle150600.x86_64:INIT_NET=3672
sle150600.x86_64:KERNEL_BASE=97668
sle150600.x86_64:KERNEL_INIT=17996
sle150600.x86_64:PAGESIZE=4096
sle150600.x86_64:PERCPU=264
sle150600.x86_64:SIZEOFPAGE=64
sle150600.x86_64:USER_BASE=18624
sle150600.x86_64:USER_NET=3424
tumbleweed.aarch64:INIT_CACHED=35996
tumbleweed.aarch64:INIT_CACHED_NET=13316
tumbleweed.aarch64:INIT_NET=4608
tumbleweed.aarch64:KERNEL_BASE=80040
tumbleweed.aarch64:KERNEL_INIT=23512
tumbleweed.aarch64:PAGESIZE=4096
tumbleweed.aarch64:PERCPU=152
tumbleweed.aarch64:SIZEOFPAGE=64
tumbleweed.aarch64:USER_BASE=12900
tumbleweed.aarch64:USER_NET=0
tumbleweed.i386:INIT_CACHED=42804
tumbleweed.i386:INIT_CACHED_NET=12916
tumbleweed.i386:INIT_NET=4748
tumbleweed.i386:KERNEL_BASE=58004
tumbleweed.i386:KERNEL_INIT=14864
tumbleweed.i386:PAGESIZE=4096
tumbleweed.i386:PERCPU=136
tumbleweed.i386:SIZEOFPAGE=40
tumbleweed.i386:USER_BASE=13064
tumbleweed.i386:USER_NET=1868
tumbleweed.ppc64:INIT_CACHED=85312
tumbleweed.ppc64:INIT_CACHED_NET=21056
tumbleweed.ppc64:INIT_NET=5184
tumbleweed.ppc64:KERNEL_BASE=149184
tumbleweed.ppc64:KERNEL_INIT=20544
tumbleweed.ppc64:PAGESIZE=65536
tumbleweed.ppc64:PERCPU=896
tumbleweed.ppc64:SIZEOFPAGE=64
tumbleweed.ppc64:USER_BASE=47552
tumbleweed.ppc64:USER_NET=1536
tumbleweed.ppc64le:INIT_CACHED=84800
tumbleweed.ppc64le:INIT_CACHED_NET=23872
tumbleweed.ppc64le:INIT_NET=6464
tumbleweed.ppc64le:KERNEL_BASE=145600
tumbleweed.ppc64le:KERNEL_INIT=20736
tumbleweed.ppc64le:PAGESIZE=65536
tumbleweed.ppc64le:PERCPU=896
tumbleweed.ppc64le:SIZEOFPAGE=64
tumbleweed.ppc64le:USER_BASE=40832
tumbleweed.ppc64le:USER_NET=5184
tumbleweed.riscv64:INIT_CACHED=32504
tumbleweed.riscv64:INIT_CACHED_NET=11580
tumbleweed.riscv64:INIT_NET=5320
tumbleweed.riscv64:KERNEL_BASE=107252
tumbleweed.riscv64:KERNEL_INIT=23588
tumbleweed.riscv64:PAGESIZE=4096
tumbleweed.riscv64:PERCPU=144
tumbleweed.riscv64:SIZEOFPAGE=64
tumbleweed.riscv64:USER_BASE=12092
tumbleweed.riscv64:USER_NET=1928
tumbleweed.s390x:INIT_CACHED=28560
tumbleweed.s390x:INIT_CACHED_NET=12480
tumbleweed.s390x:INIT_NET=4512
tumbleweed.s390x:KERNEL_BASE=50036
tumbleweed.s390x:KERNEL_INIT=14624
tumbleweed.s390x:PAGESIZE=4096
tumbleweed.s390x:PERCPU=148
tumbleweed.s390x:SIZEOFPAGE=64
tumbleweed.s390x:USER_BASE=10280
tumbleweed.s390x:USER_NET=1352
tumbleweed.x86_64:INIT_CACHED=37336
tumbleweed.x86_64:INIT_CACHED_NET=12928
tumbleweed.x86_64:INIT_NET=5040
tumbleweed.x86_64:KERNEL_BASE=108796
tumbleweed.x86_64:KERNEL_INIT=23568
tumbleweed.x86_64:PAGESIZE=4096
tumbleweed.x86_64:PERCPU=292
tumbleweed.x86_64:SIZEOFPAGE=64
tumbleweed.x86_64:USER_BASE=9232
tumbleweed.x86_64:USER_NET=14408

BIN
kdump-2.0.1.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

1858
kdump.changes Normal file

File diff suppressed because it is too large Load Diff

255
kdump.spec Normal file
View File

@ -0,0 +1,255 @@
#
# spec file for package kdump
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%bcond_with calibrate
%if 0%{?is_opensuse}
%if 0%{suse_version} > 1500
%define distro_prefix tumbleweed.%{_arch}
%else
%define distro_prefix leap%{sle_version}.%{_arch}
%endif
%else
%if 0%{suse_version} >= 1600
%define distro_prefix alp%{suse_version}.%{_arch}
%else
%define distro_prefix sle%{sle_version}.%{_arch}
%endif
%endif
%ifarch aarch64
%define qemu qemu-arm qemu-uefi-aarch64
%else
%ifarch %arm
%define qemu qemu-arm
%else
%ifarch %ix86 x86_64
%define qemu qemu-x86
%else
%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: 2.0.1
Release: 0
Summary: Kernel crash dump scripts and utilities
License: GPL-2.0-or-later
Group: System/Kernel
URL: https://github.com/openSUSE/kdump
Source: %{name}-%{version}.tar.xz
Source1: calibrate.conf.all
BuildRequires: asciidoc
BuildRequires: cmake >= 3.7
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: util-linux-systemd
BuildRequires: pkgconfig(systemd)
BuildRequires: pkgconfig(udev)
#!BuildIgnore: fop
%if %{with calibrate}
BuildRequires: %qemu
BuildRequires: dhcp-client
BuildRequires: dracut >= 047
BuildRequires: iputils
BuildRequires: kernel-default
BuildRequires: lftp
BuildRequires: makedumpfile
BuildRequires: openssh-clients
BuildRequires: pciutils
BuildRequires: procps
BuildRequires: python3
%ifnarch s390x
BuildRequires: qemu-ipxe
BuildRequires: qemu-vgabios
%endif
BuildRequires: systemd-sysvinit
BuildRequires: util-linux-systemd
%endif
Requires: /usr/bin/sed
Requires: dracut >= 047
Requires: kexec-tools
Requires: makedumpfile
%ifarch ppc64 ppc64le
Requires: servicelog
BuildRequires: servicelog
%endif
# FIXME: use proper Requires(pre/post/preun/...)
PreReq: %fillup_prereq
PreReq: /usr/bin/mkdir
PreReq: /usr/bin/rm
PreReq: /usr/bin/touch
Recommends: cifs-utils
Recommends: lftp
Recommends: nfs-client
Recommends: openssh-clients
Suggests: mailx
# update should detect the split-off from kexec-tools
Provides: kexec-tools:%{_initddir}/kdump
ExcludeArch: s390 ppc %arm32
%if 0%{?sle_version}
ExcludeArch: %ix86
%endif
%{?systemd_ordering}
%description
kdump is a package that includes several scripts for kdump, including
the kdump service and configuration files
The kernel package and this package are all that are required for a
crash dump to occur. However, if you wish to debug the crash dump
yourself you will need several debugging packages installed for each
kernel flavor and release you wish to debug.
For example, if you are debugging kernel-default, you will need:
- kernel-default-debuginfo
- kernel-default-devel
- kernel-default-devel-debuginfo
These packages are not needed to create the dump and can be installed
after a crash dump has occured.
%prep
%setup -q
cp %{SOURCE1} calibrate.conf.all
%build
export CXXFLAGS="%{optflags} -std=c++11"
%cmake \
%if %{with calibrate}
-DCALIBRATE=ON
%else
-DCALIBRATE=OFF
%endif
# run make directly instead of cmake_build, which would run make in parallel
# and try to group output, preventing any debugging output from qemu if it
# fails to exit
make VERBOSE=1
%check
%ctest
%install
%cmake_install
# empty directory
mkdir -p %{buildroot}%{_localstatedir}/crash
mkdir -p %{buildroot}%{_localstatedir}/lib/kdump
%if !%{with calibrate}
# get distro_prefix-prefixed lines from calibrate.conf.all
grep "^%distro_prefix:" calibrate.conf.all | cut -f 2- -d: > %{buildroot}/usr/lib/kdump/calibrate.conf
if ! test -s %{buildroot}/usr/lib/kdump/calibrate.conf; then
echo "no calibration data for %distro_prefix in calibrate.conf.all, see packaging/suse/calibrate/README"
false
fi
%else
# save the distro_prefix
echo "GENERATED_ON=%{distro_prefix}" >> %{buildroot}/usr/lib/kdump/calibrate.conf
echo "generated calibrate.conf:"
cat %{buildroot}/usr/lib/kdump/calibrate.conf
%endif
# symlink for init script
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rckdump
%pre
%service_add_pre kdump.service
%service_add_pre kdump-early.service
%service_add_pre kdump-notify.service
%post
# change only permission if the file exists before /etc/sysconfig/kdump
# has been created from %%{_fillupdir}/sysconfig.kdump
change_permission=0
if [ ! -f %{_sysconfdir}/sysconfig/kdump ] ; then
change_permission=1
fi
%{fillup_only -n kdump}
%service_add_post kdump.service
%service_add_post kdump-early.service
%service_add_post kdump-notify.service
# ensure newly added kdump-*.service is-enabled matches prior state
if [ -x %{_bindir}/systemctl ] && %{_bindir}/systemctl is-enabled kdump.service &>/dev/null ; then
%{_bindir}/systemctl reenable kdump.service || :
fi
if [ "$change_permission" = 1 ]; then
chmod 0600 %{_sysconfdir}/sysconfig/kdump
fi
# if /var/log/dump is empty, make it a symlink to /var/crash
if test -d %{_localstatedir}/log/dump && rmdir %{_localstatedir}/log/dump >/dev/null 2>&1 ||
! test -d %{_localstatedir}/log/dump ; then
ln -snf %{_localstatedir}/crash %{_localstatedir}/log/dump
fi
%ifarch ppc64 ppc64le
servicelog_notify --remove --command=/usr/lib/kdump/kdump-migrate-action.sh
servicelog_notify --add --command=/usr/lib/kdump/kdump-migrate-action.sh --match='refcode="#MIGRATE" and serviceable=0' --type=EVENT --method=pairs_stdin
%endif
%preun
%ifarch ppc64 ppc64le
servicelog_notify --remove --command=/usr/lib/kdump/kdump-migrate-action.sh
%endif
echo "Stopping kdump ..."
%service_del_preun kdump.service
%service_del_preun kdump-early.service
%service_del_preun kdump-notify.service
%postun
# force regeneration of kdumprd
touch %{_sysconfdir}/sysconfig/kdump
# delete symbolic link
rm %{_localstatedir}/log/dump >/dev/null 2>&1 || true
%service_del_postun kdump.service
%service_del_postun kdump-early.service
%service_del_postun kdump-notify.service
%files
%defattr(-,root,root)
%license COPYING
%doc README NEWS
%{_sbindir}/kdumptool
%{_sbindir}/mkdumprd
%{_mandir}/man5/kdump.5%{?ext_man}
%{_mandir}/man7/kdump.7%{?ext_man}
%{_mandir}/man8/mkdumprd.8%{?ext_man}
%{_fillupdir}/sysconfig.kdump
%dir %{dracutlibdir}
%dir %{dracutlibdir}/modules.d
%{dracutlibdir}/modules.d/*
%dir /usr/lib/kdump
/usr/lib/kdump/*
%{_unitdir}/kdump.service
%{_unitdir}/kdump-early.service
%{_unitdir}/kdump-notify.service
%{_sbindir}/rckdump
%dir /var/lib/kdump
%changelog