-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
starship: update to 0.50.0 #6501
Conversation
packages/starship/build.sh
Outdated
TERMUX_PKG_SRCURL=https://github.com/starship/starship/archive/v$TERMUX_PKG_VERSION.tar.gz | ||
TERMUX_PKG_SHA256=23e729ace48ec0bf6d8eff5f99003351463841f3b28fe453faceb62e6f99bae6 | ||
TERMUX_PKG_SHA256=d8f4dc9bd266f2a5c34926d361c62fdddb61cd7da4acadba5f9c175eb07602e5 | ||
TERMUX_PKG_DEPENDS="zlib" | ||
TERMUX_PKG_BUILD_IN_SRC=true | ||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--no-default-features" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--no-default-features" | |
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--locked --no-default-features --features http" |
--locked
is required as a temporary workaround for #6432 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vladimyr Thanks for the help! What does --features http
do here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are two (actually three, but the third is irrelevant here) default features defined inside Starship's manifest: battery and HTTP. The battery feature is unsupported but HTTP is so it is reenabled.
https://github.com/starship/starship/blob/v0.50.0/Cargo.toml#L24-L28
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HTTP library is used for Starship's bug reporting CLI command 🙃
Fails with linker error that is super weird:
|
Some environmental variables (LDFLAGS, CC and others) seem to not be set (or ignored), so it tries to compile and link a mix of native and cross-compiled code. Need to dig a bit into that, not sure why it is a problem now suddenly |
BTW, I compiled it locally in release mode and checked out linked libraries:
It seems that it depends on |
That could be the problem. It looks for libcrypto and the others in $PREFIX, fails to find them and falls back to /usr/lib/libcrypto, we'll see what the CI says |
@Grimler91 Just for the record I feel bad for harassing you with never-ending stream of Starship issues and you absolutely rock! 💯 |
@vladimyr thanks for the help, rust and cargo and friends are not my expertise! Seem to still be some cross-compilation issues. Should be solvable though |
You are welcome. Honestly, I was forced to learn a thing or two back in the day when I migrated all Homebrew's Rust formulas to use
I'm not sure how to help you with that one, let me know if there is anything I can do. |
Rust cross-compilation has been a problem for a while, which is why I simply disabled building nushell for x86_64 last year in #5773. |
Folks we have a new release: https://github.com/starship/starship/releases/tag/v0.51.0 🎉 I've just compiled it on my Arch using
Also, I compiled it on actual device too using
In other words @Grimler91 please bump the Starship version and update the checksum. 🤞 |
Following discussion in #6501.
Following discussion in termux#6501.
Following discussion in termux#6501.
No description provided.