Skip to content

Conversation

@th0ma7
Copy link
Contributor

@th0ma7 th0ma7 commented Jan 22, 2026

Description

Rust toolchain and target availability were previously evaluated using Makefile conditionals (ifeq), which are resolved at parse time and do not reflect runtime changes made by rustup commands.

This caused incorrect behavior for non-standard Rust toolchains (e.g. qoriq), where the default rustup toolchain does not support the requested target (powerpc-unknown-linux-gnuspe), yet the Make logic still attempted to add it.

The logic has been corrected by performing rustup toolchain and target availability checks at runtime in the shell, ensuring that targets are only added when supported by the selected Rust toolchain and avoiding invalid rustup invocations.

Follows-up #6877
Discovered at #6914

Checklist

  • Build rule all-supported completed successfully
  • New installation of package completed successfully
  • Package upgrade completed successfully (Manually install the package again)
  • Package functionality was tested
  • Any needed documentation is updated/created

Type of change

  • Bug fix
  • New Package
  • Package update
  • Includes small framework changes
  • This change requires a documentation update (e.g. Wiki)

Rust toolchain and target availability were previously evaluated using
Makefile conditionals (ifeq), which are resolved at parse time and do not
reflect runtime changes made by rustup commands.

This caused incorrect behavior for non-standard Rust toolchains (e.g. qoriq),
where the default rustup toolchain does not support the requested target
(powerpc-unknown-linux-gnuspe), yet the Make logic still attempted to add it.

The logic has been corrected by performing rustup toolchain and target
availability checks at runtime in the shell, ensuring that targets are only
added when supported by the selected Rust toolchain and avoiding invalid
rustup invocations.
@th0ma7 th0ma7 self-assigned this Jan 22, 2026
@th0ma7 th0ma7 merged commit 773d1ea into SynoCommunity:master Jan 22, 2026
1 check passed
@th0ma7 th0ma7 deleted the rust-toolchain-fix branch January 22, 2026 01:13
@hgy59 hgy59 added framework build/rust-qoriq related to rust target powerpc-unknown-linux-gnuspe (instead of powerpc-unknown-linux-gnu) labels Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build/rust-qoriq related to rust target powerpc-unknown-linux-gnuspe (instead of powerpc-unknown-linux-gnu) framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants