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

Fix --separate-debug-symbols #82

Merged
merged 2 commits into from
Apr 10, 2023

Conversation

drbrain
Copy link
Contributor

@drbrain drbrain commented Apr 6, 2023

Previously cargo-deb attempted to add the files with debug symbols by referencing the stripped executable path. The debug symbols do not live alongside the stripped executables so this always failed.

Now cargo-deb uses the original executable paths to determine the location of the debug symbols.

(There's probably a better way to do this, but I'm not skilled enough to figure out how to use collect() with the parallel iterator.)

Previously cargo-deb attempted to add the files with debug symbols by
referencing the stripped executable path.  The debug symbols do not live
alongside the stripped executables so this always failed.

Now cargo-deb uses the original executable paths to determine the
location of the debug symbols.

(There's probably a better way to do this, but I'm not skilled enough to
figure out how to use collect() with the parallel iterator.)
@kornelski
Copy link
Owner

Is it possible to write a test for it? It's likely I'll break it again otherwise.

@drbrain
Copy link
Contributor Author

drbrain commented Apr 7, 2023

I'll try!

All build the cargo deb the same way, so make it reusable in future
tests.
@kornelski kornelski merged commit 81b619e into kornelski:main Apr 10, 2023
@kornelski
Copy link
Owner

Thank you

@drbrain
Copy link
Contributor Author

drbrain commented Apr 10, 2023

Actual test added in #83, sorry! 🙇🏻‍♂️

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.

None yet

2 participants