Repository navigation
starship: update to 1.27.0. - #63282
Open
sabbaghpierre wants to merge 1 commit into
Open
sabbaghpierre wants to merge 1 commit into
sabbaghpierre wants to merge 1 commit into
Conversation
Contributor
|
You could work around the cross-compilation problem with the solution below: void-packages/srcpkgs/rustnet/template Lines 18 to 28 in 13e03bb diff --git a/srcpkgs/starship/template b/srcpkgs/starship/template
index 5a404b10c7a..f41a1e338dd 100644
--- a/srcpkgs/starship/template
+++ b/srcpkgs/starship/template
@@ -14,10 +14,31 @@ distfiles="https://github.com/starship/starship/archive/refs/tags/v${version}.ta
checksum=f1887ffa88a7ba437d2932501794047e28d03387996f7d1c364631c053cffc44
make_check_pre="env HOME=${wrksrc}/fake-home"
+_setup_env() {
+ # workaround the cc-rs mixing CFLAGS for host and target.
+ # https://github.com/rust-lang/cc-rs/issues/1469
+ export CFLAGS_${RUST_BUILD//-/_}="${CFLAGS_host}" \
+ CXXFLAGS_${RUST_BUILD//-/_}="${CXXFLAGS_host}" \
+ LDFLAGS_${RUST_BUILD//-/_}="${LDFLAGS_host}" \
+ CFLAGS_${RUST_TARGET//-/_}="${CFLAGS}" \
+ CXXFLAGS_${RUST_TARGET//-/_}="${CXXFLAGS}" \
+ LDFLAGS_${RUST_TARGET//-/_}="${LDFLAGS}" \
+ CFLAGS="" CXXFLAGS="" LDFLAGS=""
+}
+
pre_check() {
+ _setup_env
mkdir -p fake-home
}
+pre_build() {
+ _setup_env
+}
+
+pre_install() {
+ _setup_env
+}
+
post_install() {
for shell in bash fish zsh; do
vtargetrun ${DESTDIR}/usr/bin/starship completions ${shell} > starship.${shell}maintainer ping: @cinerea0 |
sabbaghpierre
force-pushed
the
starship
branch
from
October 31, 2026 14:39
5991b3a to
9220495
Compare
Contributor
Author
|
@slymattz I was looking for solutions regarding this and they all point out to the edits you suggested, thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Testing the changes
Local build testing