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
Sublime Text tries to use /bin/bash when executing commands for build systems #12011
Comments
The following changes work well for me when I use them in |
I agree, that patch looks good. Should be pretty easy to apply to the Sublime build. Any takers? On phone, sorry for brevity… |
I tried to fix this in on my repo with this commit mogria@e6dccbc The derivation builds successfully and replaces the instances of Now when I start a build with a simple Makefile like this:
The following error appears in the Sublime-Text console:
|
exec.py in Default.package-sublime calls /bin/bash with subprocess. See Issue NixOS#12011. Because of this builds could not be started from withtin Sublime Text.
That sounds like it's trying to link to the wrong libc somehow. |
Without the wrapped version of bash (a symlink to $bash/bin/bash) with LD_PRELOAD to glibc an relocation error occurs when trying to run builds from within Sublime Text 3. See Issue NixOS#12011.
…ystems (#23561) * sublime3: replace hardcoded /bin/bash with /usr/bin/env exec.py in Default.package-sublime calls /bin/bash with subprocess. See Issue #12011. Because of this builds could not be started from withtin Sublime Text. * sublime3: use wrapped of bash to fix internal build system Without the wrapped version of bash (a symlink to $bash/bin/bash) with LD_PRELOAD to glibc an relocation error occurs when trying to run builds from within Sublime Text 3. See Issue #12011.
…ystems (#23561) * sublime3: replace hardcoded /bin/bash with /usr/bin/env exec.py in Default.package-sublime calls /bin/bash with subprocess. See Issue #12011. Because of this builds could not be started from withtin Sublime Text. * sublime3: use wrapped of bash to fix internal build system Without the wrapped version of bash (a symlink to $bash/bin/bash) with LD_PRELOAD to glibc an relocation error occurs when trying to run builds from within Sublime Text 3. See Issue #12011. (cherry picked from commit 1893ed5)
…ystems (NixOS#23561) * sublime3: replace hardcoded /bin/bash with /usr/bin/env exec.py in Default.package-sublime calls /bin/bash with subprocess. See Issue NixOS#12011. Because of this builds could not be started from withtin Sublime Text. * sublime3: use wrapped of bash to fix internal build system Without the wrapped version of bash (a symlink to $bash/bin/bash) with LD_PRELOAD to glibc an relocation error occurs when trying to run builds from within Sublime Text 3. See Issue NixOS#12011.
…ystems (#23561) * sublime3: replace hardcoded /bin/bash with /usr/bin/env exec.py in Default.package-sublime calls /bin/bash with subprocess. See Issue #12011. Because of this builds could not be started from withtin Sublime Text. * sublime3: use wrapped of bash to fix internal build system Without the wrapped version of bash (a symlink to $bash/bin/bash) with LD_PRELOAD to glibc an relocation error occurs when trying to run builds from within Sublime Text 3. See Issue #12011. (cherry picked from commit 1893ed5)
See line 66 of
exec.py
in/nix/store/*-sublimetext3-3083-bin/Packages/Default.sublime-package
I assume this applies to any shell command, not just those for build systems, but building is where it's particularly noticeable.
Default.sublime-package
is a zip file, so it will need to be unpacked, patched and repacked.The text was updated successfully, but these errors were encountered: