Skip to content
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

Merge pull request #63447 from jtojnar/sublime-cleanup #63447

Merged
merged 5 commits into from Jun 18, 2019

Conversation

jtojnar
Copy link
Contributor

@jtojnar jtojnar commented Jun 18, 2019

cc @Ma27

@Ma27
Copy link
Member

Ma27 commented Jun 18, 2019

I'm absolutely in favor of dropping Sublime.

Btw does this also fix the problem with saving as root or is my libredirect patch still needed for that?

@jtojnar
Copy link
Contributor Author

jtojnar commented Jun 18, 2019

No, sublime switched to posix_spawnp so we still need the patch.

jtojnar and others added 4 commits June 18, 2019 22:47
No version in the repo uses it anymore
After bumping sublime3 in NixOS#61636 we realized that saving files as root
doesn’t work anymore and somehow the paths weren’t patched by
`libredirect`.

After some debugging it came out that Sublime switched from `posix_spawn(3)`
to `posix_spawnp(3)` to start new processes internally. Since `libredirect`
only handled the former, `/usr/bin/pkexec` stopped being redirected.

Wrapping `posix_spawnp` fixes the problem.
Sublime Merge does not support GTK 2 from build 1092 so we do not need this anymore.

Also brings the expression in sync with Sublime Text.
@Ma27
Copy link
Member

Ma27 commented Jun 18, 2019

No, sublime switched to posix_spawnp so we still need the patch.

Ack. I mainly asked because I didn't test the pkexec case on my PR as mentioned there and I wanted to ensure that this is still relevant then :)

The patch itself seems fine, I'd test my branch with this PR (or master if this gets merged before I get to testing :D) by the end of the week.

@jtojnar
Copy link
Contributor Author

jtojnar commented Jun 18, 2019

Looking at the binaries with objdump they appear to have switched from posix_spawn to posix_spawnp for all programs. I verified that pkexec works so this should be good to merge.

@jtojnar jtojnar mentioned this pull request Jun 18, 2019
10 tasks
@jtojnar jtojnar changed the title sublime3: clean up Merge pull request #63447 from jtojnar/sublime-cleanup Jun 18, 2019
@jtojnar jtojnar merged commit 897d905 into NixOS:master Jun 18, 2019
@jtojnar jtojnar deleted the sublime-cleanup branch June 18, 2019 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants