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

Do not hardcode /tmp in install script #149

Merged
merged 1 commit into from
Jun 1, 2021

Conversation

blyxxyz
Copy link
Collaborator

@blyxxyz blyxxyz commented Jun 1, 2021

Some systems don't have /tmp at that location.

Additionally, XXXXXX is the maximum number of Xes that busybox's mktemp replaces, so I reduced it to that.

Tested on Debian, Alpine, and Termux. I think it works on macOS, but its -t flag works differently, so it should be tested there too.

(This is not enough to get xh itself working in Termux on my phone, because of dynamic linking. Maybe we should switch to arm-unknown-linux-musleabihf, a binary for that target does run. But even then the DNS is broken.)

@jihchi
Copy link
Contributor

jihchi commented Jun 1, 2021

Ran on macOS Big Sur 11.4:

mktemp -dt xh.XXXXXX
/var/folders/wm/lp071lgd09nb3_mv_9pthcs00000gn/T/xh.XXXXXX.a6efJLUf

@blyxxyz
Copy link
Collaborator Author

blyxxyz commented Jun 1, 2021

Thank you, that looks good. It's a bit weird that it ignores the Xes but that doesn't really matter.

@ducaale ducaale merged commit 9914451 into ducaale:develop Jun 1, 2021
@blyxxyz blyxxyz deleted the flexible-tmp branch June 1, 2021 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants