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

Implement debug symbol generation during the build process for Linux - DEB #2871

Closed
tdrauncieal opened this issue Mar 7, 2024 · 0 comments · Fixed by #2875
Closed

Implement debug symbol generation during the build process for Linux - DEB #2871

tdrauncieal opened this issue Mar 7, 2024 · 0 comments · Fixed by #2875
Assignees
Labels
level/subtask Task issue type/enhancement Enhancement issue

Comments

@tdrauncieal
Copy link
Contributor

tdrauncieal commented Mar 7, 2024

Related issue
#21372

Description

Currently, the RPM and DEB packages generated do not include debug symbols, which can hinder debugging efforts when issues arise. This issue aims to implement the necessary steps to generate packages with debug symbols for both RPM and DEB packages.

Proposed Solution

  1. Update Packaging Scripts:
    • Modify the scripts responsible for generating RPM and DEB packages to incorporate the inclusion of debug symbols.
    • Implement any necessary logic to ensure that debug symbols are correctly packaged and included.

DEB
1- set dh_strip in the 'rules' file

override_dh_strip:
    dh_strip --dbg-package=wazuh-agent-dbg

2- Add this segment in the 'control' file

Package: wazuh-agent-dbg / wazuh-manager-dbg
Section: debug
Priority: optional
Architecture: any
Depends: wazuh-agent / wazuh-manager
Description: Debug symbols for [wazuh-agent / wazuh-manager]
 This package contains debug symbols for debugging [wazuh-agent / wazuh-manager].

3- Copy dbg the file with build.sh from the docker container to the host machine.

Impact

  • Enhanced Debugging: Including debug symbols in the packages facilitates easier debugging and troubleshooting of issues encountered by users.
  • Improved Developer Experience: Developers benefit from having access to debug symbols when investigating issues reported by users.

Definition of Done

  • The packaging process is updated to incorporate the inclusion of debug symbols.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/subtask Task issue type/enhancement Enhancement issue
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants