-
-
Notifications
You must be signed in to change notification settings - Fork 17.2k
setup-hooks/separate-debug-info.sh: don't inhibit strip hook #185537
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
Conversation
Before the change separate-debug-info.sh did the stripping itself. This scheme has a few problems: 1. Stripping happens only on ELF files. *.a and *.o files are skipped. Derivations have to do it manually. Usually incorrectly as they don't run $RANLIB (true for `glibc` and `musl`). 2. Stripping happens on all paths. Ideally only `stripDebugList` paths should be considered. 3. Host strip is called on Target files. This change offloads stripping logic to strip hook. This strips more files for `glibc` and `musl`. Now we can remove most $STRIP calls from individual derivations. Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
14cf4ae to
b3b672d
Compare
|
@oxalica PTAL at the firefox common.nix change. |
|
See #164520 |
|
Sorry let me expand on that - specifically https://github.com/NixOS/nixpkgs/pull/164520/files#r846774388. It would be really good to handle |
Note that this PR drops I started writing this change as I noticed that |
|
Less stripping hacks sounds like a good idea to me. I looked through the PR and didn't see any obvious issues, but haven't tested a build myself. |
|
I tested a few cross-compilers and native compilers: Let's give it a try. Worst case we can revert it. |
Before the change separate-debug-info.sh did the stripping itself.
This scheme has a few problems:
Derivations have to do it manually. Usually incorrectly
as they don't run $RANLIB (true for
glibcandmusl).stripDebugListpathsshould be considered.
This change offloads stripping logic to strip hook. This strips more
files for
glibcandmusl. Now we can remove most $STRIP callsfrom individual derivations.
To avoid strip hook from stomping on results of separate-debug-info
hook we skip lib/debug directory from stripping.
Description of changes
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes