-
Notifications
You must be signed in to change notification settings - Fork 15
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
makepkg: strip breaks split debug info files #52
Comments
Compare to msys2-runtime-3.3{,-devel}, where msys-2.0.dbg is 20MB:
|
My theory for msys2/msys2-pacman#52 is that the logic for identifying files that need to be stripped is picking up the .debug files, resulting the the debug info being stripped from them. Try not stripping msys2-runtime-devel to see if the debug info is intact.
Was thinking about this, and testing confirmed it seems to be due to the logic that determines files to strip seeing the
*.debug (and maybe *.dbg if we want to keep the old name for msys-2.0.dbg) added to it?
Also, maybe msys2-pacman/scripts/libmakepkg/tidy/strip.sh.in Lines 176 to 184 in 761a878
whatever.exe.debug.exe files that shouldn't have been there? (I think if *.debug were excluded in the find they would go away too, rather than having to add *.debug to the case statement above to exclude them here)
|
just checking, do you think this is a regression from the recent update/rebase or has always been the case? |
I think this has "always" been the case (the code looks the same on the 5.2.2 branch, anyway) |
This may just be an artifact of my attempt to "cheat" with msys2-runtime and not enable the |
Replicate the objcopy commands that used to work in msys2-runtime build process. also, don't strip msys2-runtime-devel. makepkg's strip mechanism thinks split debug files are binaries that need to be stripped, and debug files with the debug info stripped are pretty useless. msys2/msys2-pacman#52 Fixes msys2#4595
Replicate the objcopy commands that used to work in msys2-runtime build process. also, don't strip msys2-runtime-devel. makepkg's strip mechanism thinks split debug files are binaries that need to be stripped, and debug files with the debug info stripped are pretty useless. msys2/msys2-pacman#52 Fixes msys2#4595
Steps to reproduce:
Expected results:
get debug symbols for msys-2.0.dll, like when they were in msys-2.0.dbg
Actual results:
warning: the debug information found in "/usr/bin/msys-2.0.dll.debug" does not match "/usr/bin/msys-2.0.dll" (CRC mismatch).
The text was updated successfully, but these errors were encountered: