commit afac8feac81c927d7c21e8f5099b895f165a7c91d96a8693110afa6fa5578a92 Author: Michal Koutný Date: Thu Sep 26 15:40:29 2024 +0000 Update RPM Source: to version that matches pure git archive (pythonhosted tarball is not stable or it confuses factory-auto checker) OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/python-drgn?expand=0&rev=18 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/drgn-0.0.27.tar.gz b/drgn-0.0.27.tar.gz new file mode 100644 index 0000000..7b663ae --- /dev/null +++ b/drgn-0.0.27.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a4bacb51d5f15f9f7e7721b95785b6cf6b4241b1b7a242bd9a5fc293dbd609a +size 784330 diff --git a/python-drgn.changes b/python-drgn.changes new file mode 100644 index 0000000..1e63d1a --- /dev/null +++ b/python-drgn.changes @@ -0,0 +1,100 @@ +------------------------------------------------------------------- +Tue Jul 2 03:32:44 UTC 2024 - Petr Tesařík + +- Update to drgn-0.0.27: + * Linux 6.9 and 6.10 support + * New helpers for interpreting memory + * New scripts in contrib + +------------------------------------------------------------------- +Tue Mar 12 18:14:42 UTC 2024 - Petr Tesařík + +- Update to drgn-0.0.26: + * Linux 6.8 Support + * Python 3.13 Support + * new tool: fsrefs.py + * new Linux helpers: print_dmesg(), idr_for_each_entry(), + stack_depot_fetch(), priority-sorted lists + * support split DWARF package (.dwp) files + +------------------------------------------------------------------- +Mon Dec 4 14:46:37 UTC 2023 - Michal Koutný + +- Cleanup .gitignore'd files from tarball + +------------------------------------------------------------------- +Sat Dec 2 16:59:32 UTC 2023 - Petr Tesařík + +- Update to drgn-0.0.25: + * omitting the prog argument + * running without root privileges + * maple tree helpers + * VMA helpers + * wait queue helpers + * ppc64 radix MMU support + +------------------------------------------------------------------- +Fri Sep 8 19:25:20 UTC 2023 - Petr Tesařík + +- Update to drgn-0.0.24: + * Linked list length helper + * Networking helpers + * C++ lookups + * Split DWARF + * Performance improvements + +------------------------------------------------------------------- +Thu Jun 29 09:48:44 UTC 2023 - Petr Tesařík + +- Update to drgn-0.0.23: + * Support Linux 6.3 and 6.4 + * Full s390x support + * Extend idr helpers for pre-4.11 Linux + * Support GNU-style compressed .zdebug_* sections + * New scripts in contrib + +------------------------------------------------------------------- +Sat Jan 7 20:40:49 UTC 2023 - Petr Tesařík + +- Update to drgn-0.0.22: + * License changed to LGPLv2.1+. + * Linux kernel support was tested up to Linux 6.2-rc2. + * Oldest kernel version officially supported is now 4.9. + * The StackFrame.locals() method was added. + * The StackFrame.sp attribute was added. + * Helpers for XArrays were added. + * The drgn.helpers.linux.slab.get_slab_aliases() helper was added. + * The drgn.helpers.linux.slab.slab_object_info() helper was added. + * The drgn.helpers.common.memory.identify_address() helper now + provide the offset from the beginning of the slab object and + whether it is allocated or free. + * The drgn.helpers.common.stack.print_annotated_stack() helper was + added. + * Support for Linux kernel modules and stack unwinding on s390x. + * Partial support for looking up types with C++ template + arguments. + * Parsing debug info for C++ template parameter packs. + +------------------------------------------------------------------- +Fri Oct 14 16:11:33 UTC 2022 - Petr Tesařík + +- Update to drgn-0.0.21: + * Linux kernel support up to Linux 6.0. + * Helpers for lockless linked lists in the Linux kernel. + * A helper to find the slab cache that a virtual address came. + * A drgn.helpers.common package for helpers that can be used with + any program (which may have program-specific additional + behavior). + * A helper to identify an arbitrary address (e.g., as a symbol or + slab object). + * PageFoo() helpers to check various struct page flags. + * Helpers for working with compound pages. + * A helper to get the CPU that a task last ran on. + * Automatic pretty-printing in IPython/Jupyter. + * drgn.StackTrace.prog was added as a way to get the program that a stack trace came from. + * Bug fixes, documentation, minor API changes. + +------------------------------------------------------------------- +Sun Aug 14 20:51:07 UTC 2022 - Petr Tesařík + +- Initial packaging for openSUSE. diff --git a/python-drgn.spec b/python-drgn.spec new file mode 100644 index 0000000..8e6a4cd --- /dev/null +++ b/python-drgn.spec @@ -0,0 +1,76 @@ +# +# spec file for package python-drgn +# +# 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/ +# + + +%define skip_python2 1 + +%{?!python_module:%define python_module() python3-%{**}} + +Name: python-drgn +Version: 0.0.27 +Release: 0 +Summary: Scriptable debugger library +License: LGPL-2.1-or-later +Group: Development/Tools/Debuggers +URL: https://github.com/osandov/drgn +Source: https://github.com/osandov/drgn/archive/refs/tags/v%{version}.tar.gz#/drgn-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: check-devel +BuildRequires: fdupes +BuildRequires: libdw-devel +BuildRequires: libelf-devel +BuildRequires: libkdumpfile-devel +BuildRequires: libtool +BuildRequires: python-rpm-macros +%python_subpackages + +%description +drgn (pronounced “dragon”) is a debugger with an emphasis on +programmability. drgn exposes the types and variables in a program +for easy, expressive scripting in Python. + +%prep +%setup -q -n drgn-%{version} + +%build +export CFLAGS="%{optflags}" +%python_build + +%install +%python_install +%python_clone -a %{buildroot}%{_bindir}/drgn +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +%python_exec setup.py test + +%post +%python_install_alternative drgn + +%postun +%python_uninstall_alternative drgn + +%files %{python_files} +%doc README.rst +%license COPYING +%python_alternative %{_bindir}/drgn +%{python_sitearch}/* + +%changelog