tree-sitter-grammar: ensure enough space when updating id of shared lib on Darwin#271974
tree-sitter-grammar: ensure enough space when updating id of shared lib on Darwin#271974c4710n wants to merge 1 commit intoNixOS:stagingfrom
Conversation
702e789 to
6d366fa
Compare
There was a problem hiding this comment.
change looks good -- one nit described inline.
a couple of things:
- how do i build this on darwin to reproduce this error?
- i started to run a
nix run .\#nixpkgs-review -- pr 271974from the nixpkgs src root and it seems like this causes 1.4k rebuilds, so the change might need to target the staging branch -- i've never done this but there are some pointers in CONTRIBUTING.md
6d366fa to
4a7cb40
Compare
4a7cb40 to
57f27dc
Compare
|
Hey, @a-n-n-a-l-e-e Thanks for your guidance. I have:
And, I changed the title of PR and commit message to more descriptive ones.
This error won't occur if we use the output directly. But when we want to further process the output, the error will occur. For example, let's build In short, tree-sitter-grammar isn't broken, but it doesn't support changing the identification name of a dynamic shared library to a very long name, which is necessary in my case. This PR is trying to add this kind of support, without effecting others. |
57f27dc to
c790805
Compare
|
i see -- could this be solved by using overrideAttrs to modify the build locally? doing something like ... nix build --impure --expr \
'with import ./. {}; tree-sitter-grammars.tree-sitter-clojure.overrideAttrs(prev: { env = (prev.env or {} ) // { NIX_LDFLAGS = "-headerpad_max_install_names"; };})'or nix build --impure --expr \
'with import <nixpkgs> {}; tree-sitter-grammars.tree-sitter-clojure.overrideAttrs(prev: { env = (prev.env or {} ) // { NIX_LDFLAGS = "-headerpad_max_install_names"; };})'that wouldn't require updating nixpkgs? i am not sure if the migration to staging went well -- it seems like perhaps a bunch of people got pulled and might ask to close the PR (can open a new one). I am not entirely sure as i've never delt with this on nixkgs but this link might be helpful: |
|
Thanks, @a-n-n-a-l-e-e. Your solution works, it's better to scope special code to my own case. I'll close this PR. Thank you, again. |
This PR is trying to fix the error when updating install names on Darwin:
This technique is also used by:
It should be safe to add it. I have tested on x86_64-darwin.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.