termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
13.34k stars 3.07k forks source link

fix(main/just): fix recipe shebangs #22293

Closed TomJo2000 closed 2 days ago

TomJo2000 commented 5 days ago

I don't know enough Rust to even begin to reason about why this patch doesn't work.

If someone else could look into it that would be appreciated. This is intended to solve the shebang incompatibility I found as part of #22291. It should be as simple as prepending the @TERMUX_PREFIX@ path to the interpreter. But I have a headache and apparently negative knowledge of Rust.

TomJo2000 commented 4 days ago

This doesn't seem to quite fix the XDG_RUNTIME_DIR problem yet. But the shebang fix seems to be working already.

TomJo2000 commented 4 days ago

Nvm it works, my dotfiles were broken. Just the shebangs that needed fixing.

TomJo2000 commented 4 days ago

Already verified it on-device just waiting for the CI.

TomJo2000 commented 4 days ago

It'd be appreciated if someone could double check this to make sure I didn't make any obvious mistake.

Either @flipee as the maintainer, or @truboxl or @licy183 as frequent contributors to rust packages would be my choices off the top of my head.

Anyone else is of course welcome to leave a review or comment.

The source location for the patch is at https://github.com/casey/just/blob/1.36.0/src/recipe.rs#L358
TomJo2000 commented 2 days ago

From what testing I have done the patch seems to be working as intended.

I would like to get this merged soon, if there is no further comment in the next 24 hours I will merge this PR, and we can deal with any potential follow up issues if and when they arise.