11 Commits

Author SHA256 Message Date
Petr Tesarik
c8ccbd4f20 Make drgn subpackage depend on the exact version of the module
Any version will not do for the CLI. We need a compatible one.

Signed-off-by: Petr Tesarik <ptesarik@suse.com>
2025-12-18 17:43:56 +01:00
Petr Tesarik
44a63993db Exclude from build on ancient distributions
Use a dummy architecture name ("nothere") to prevent build attempts for
ancient distributions.

Signed-off-by: Petr Tesarik <ptesarik@suse.com>
2025-12-18 17:42:50 +01:00
Petr Tesarik
22af1f16e0 Restore build for older distributions
Some distributions ship with default Python < 3.8, but a newer Python
version is available through a module. The package currently does not
build at all for those distributions, but the build environment provides
a handy macro precisely for this purpose.

As a side note, primary_python is not provided either, breaking
dependencies for the CLI subpackage. Fall back to the first Python
version in %pythons in that case.

Signed-off-by: Petr Tesarik <ptesarik@suse.com>
2025-12-18 16:58:59 +01:00
Petr Tesarik
bba0fbe6f6 Do not build if Python 3.8+ is unavailable
The %{primary_python} macro is defined only for build targets which have
Python 3.8 or newer. Until a better solution is available, use this
trick to make the package unbuildable if Python is too old (rather than
fail the build).

Signed-off-by: Petr Tesarik <ptesarik@suse.com>
2025-11-12 10:48:12 +01:00
Petr Tesarik
39f67b829b Make drgn conflict with old python*-drgn packages
Since the old Python module packages also contain a /usr/bin/drgn file,
installing drgn subpackage also requires upgrading the module package.

Signed-off-by: Petr Tesarik <ptesarik@suse.com>
2025-11-06 14:37:31 +01:00
Petr Tesarik
1f5e145a05 Split off a drgn subpackage
Move /usr/bin/drgn to a separate package. We may need multiple Python
packages with the modules, but there should be only one package with the
CLI binary.

Signed-off-by: Petr Tesarik <ptesarik@suse.com>
2025-11-06 14:16:42 +01:00
Petr Tesarik
a2bfb0beb4 Update to drgn-0.0.33 2025-11-04 20:53:57 +01:00
Petr Tesarik
b8b05b65e4 Fix build for legacy distributions
The readline module is part of Python itself, but it must be required
explicitly on newer distributions (16.0, Factory). However, Python
packages in older distributions (15.x and earlier) do not have the
corresponding Provides. :-(

Solve it by Build-requiring %pythons. Yes, it does bring a lot of
unneded stuff into the build environment...

Signed-off-by: Petr Tesarik <ptesarik@suse.com>
2025-05-28 19:16:27 +02:00
Petr Tesarik
8dc389b576 Update to drgn-0.0.31 2025-04-17 14:42:39 +02:00
Petr Tesarik
3799a42f8b _service: recompress sources with xz 2025-04-17 14:12:28 +02:00
3b1842a5b5 - RPM: move source to obscpio maintained with _service
- RPM: use modern (>=15.4) python macros

OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/python-drgn?expand=0&rev=25
2025-03-11 16:02:21 +00:00