-
Notifications
You must be signed in to change notification settings - Fork 93
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
skip stripping issues #714
skip stripping issues #714
Conversation
Does this break the dbgsym subpackages that are present in the repo, essentially leaving deb users with no ability to debug ROS packages with symbols present? |
Indeed, thanks for the hint. This strips the ELF binaries but does not create the debug packages. |
bc50981
to
2f89cb6
Compare
@cottsay I found a solution that works with the concrete problem I am facing and still creates the |
Can you elaborate a little on this? Does it affect the RPM packages as well? Can you share a job failure URL? Does this approach to making the dbgsym packages optional result in an empty dbgsym package or no dbgsym package at all? |
No. The PR only touches the templates in the
An example is "building" a package with the binary distribution of The actual failure of this job is here: https://github.com/christianrauch/libtorch-ros-deb-builder/actions/runs/7215155524/job/19671508198, but it is easily reproducible locally with This fails with:
I guess so. If you try to install binary files without debug symbols, there is nothing to extract so the dbgsym package would not contain anything useful. |
I don't think that this is appropriate for us to just do generically for all packages because one package is doing something unsupported by the default policy. In this case the libtorch package is not building the binaries following the default build pipeline and (and downloading from an external source which is also discouraged when packaging) and then because of not having binaries built with the default way is failing. So the correct solution for this case is that the package maintainers should patch the debian control file specificallly for this package instead of changing the default behavior of all packages. (Disabling this check for everyone can lead to false negatives on error checking for all potential packages in the future. ) You can change the debian control file for a specific package as described here: http://wiki.ros.org/bloom/Tutorials/ChangeBuildFlags |
A workaround is to strip the binaries manually before it comes to the |
The rules for Debian packages force stripping of the installed binaries. This does not always work, for example, stripping errors may occur for officially distributed binaries from a third party. This ignores stripping errors such that dbgsym packages can still be created even when some files cannot be stripped.