Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snap: add pykdump to snap #75

Merged
merged 1 commit into from
Aug 1, 2024
Merged

snap: add pykdump to snap #75

merged 1 commit into from
Aug 1, 2024

Conversation

xmkg
Copy link
Contributor

@xmkg xmkg commented Aug 1, 2024

pykdump is a crash plugin that extends the capabilities of crash. it's needed to be built from scratch, together with compatible python version and the targeted crash source. fortunately, we can do all of this while building the snap and bundle the resulting mpykdump.so file so we can let crash use it.

The user guide for pykdump can be found here: https://pykdump.readthedocs.io/en/latest/userdoc/index.html

added "-x" to crash, so it auto-loads the plugins from known plugin directories and directory speficied in CRASH_EXTENSIONS environment variable.

moved mpykdump.so file to $SNAP/usr/lib64/crash/extensions/

set CRASH_EXTENSIONS environment variable to $SNAP/usr/lib64/crash/extensions/ for hotkdump snap app.

pykdump is a crash plugin that extends the capabilities of crash.
it's needed to be built from scratch, together with compatible python
version and the targeted crash source. fortunately, we can do all of
this while building the snap and bundle the resulting mpykdump.so file
so we can let crash use it.

The user guide for pykdump can be found here: https://pykdump.readthedocs.io/en/latest/userdoc/index.html

added "-x" to crash, so it auto-loads the plugins from known plugin
directories and directory speficied in CRASH_EXTENSIONS environment
variable.

moved mpykdump.so file to $SNAP/usr/lib64/crash/extensions/

set CRASH_EXTENSIONS environment variable to $SNAP/usr/lib64/crash/extensions/
for hotkdump snap app.

Signed-off-by: Mustafa Kemal Gilor <mustafa.gilor@canonical.com>
@xmkg xmkg merged commit 46506bf into canonical:main Aug 1, 2024
9 checks passed
@xmkg xmkg deleted the feature/pykdump branch August 1, 2024 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant