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
[WIP] palemoon: init at 27.0.3 #21726
Conversation
«build fine in a nix-shell» — on non-NixOS Linux, right? |
No, on NixOS. I think it fails when building with nix-build because of sandboxing. |
Oh, nice! I now know what went wrong.
Apparently, Linux kernel sometimes limits the length in case of direct |
The truncated path was somewhat suspicious but I had no idea there was such a limitation.
The file is generated by mach so we can't simply replace the string. Maybe mach can be configured to use a specific python, in that case a symlink with a shorter path will do. |
> Not sure what is the most convenient way of patching this.
The file is generated by mach so we can't simply replace the string. Maybe mach can be configured to use a specific python, in that case a symlink with a shorter path will do.
Maybe we can trim some directory names?
Or patch `mach` somewhere so that it allows us to do something after
script creation. I wonder if we need a `shortbang` tool that serves as
a universal shebang like `env` does; only it reads the second line and
uses it as the true shebang.
|
Found a workaround: I renamed the source directory using the name attribute of fetch*.
|
Just great. |
That works but it requires to copy the entire source (about 1GB unpacked) because the store is read only. |
Well, the source gets copied into the build dir in /tmp/ anyway, so you can |
Thanks for the tips: It build finally. I should just add a desktop entry and tweak a few options now. |
status? |
There's still a small issue to fix but I don't really have time right now. |
Well, if it runnable now, I could merge now and consider further fixes later… |
It's definitely runnable. |
Motivation for this change
See #20693
Things done
./result/bin/
)I could build and run it fine from a nix-shell but the build fails with this error in a clean environment:
There must be something needing to be patched.