Skip to content

build(stty): compile on Haiku targets - #15563

Merged
sylvestre merged 1 commit into
uutils:mainfrom
xtqqczze:build/stty-haiku
Oct 21, 2026
Merged

sylvestre merged 1 commit into
uutils:mainfrom
xtqqczze:build/stty-haiku

Conversation

@xtqqczze

@xtqqczze xtqqczze commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

Contributes to #14931.

RUSTC_BOOTSTRAP=1 cargo clippy -q -Zbuild-std=std -p uu_stty --lib --target x86_64-unknown-haiku

``sh
RUSTC_BOOTSTRAP=1 cargo clippy -q -Zbuild-std=std -p uu_stty --lib --target x86_64-unknown-haiku
```
@xtqqczze

Copy link
Copy Markdown
Collaborator Author

@xtqqczze

Copy link
Copy Markdown
Collaborator Author

@xtqqczze
xtqqczze marked this pull request as ready for review October 21, 2026 15:28
@xtqqczze
xtqqczze requested a review from sylvestre October 21, 2026 15:29
@xtqqczze

Copy link
Copy Markdown
Collaborator Author

@oech3 Conflicts with #15299, do you agree this should be merged first?

@oech3

oech3 commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

I don't hope it since haiku is not a major target. But it is maintainer's decision.

Comment thread src/uu/stty/src/stty.rs
.iter()
.copied()
.find_map(|(i, v)| (i == cc_index).then_some(v))
.unwrap_or(u8::from(cc_index == S::VMIN))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about splitting this which does not conflict?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get_sane_control_char doesn't seem to conflict when rebased onto your PR; there's only a minor conflict elsewhere. I just wanted to keep you informed of the conflict.

That said, I think do think it would be preferable to merge this before the more substantial changes in #15299.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where? cfg gate?

@oech3

oech3 commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Is this actually conflicting?

@sylvestre
sylvestre merged commit 2f8b194 into uutils:main Oct 21, 2026
138 of 140 checks passed
Comment thread src/uu/stty/src/flags.rs
Comment on lines 275 to 281
#[cfg(not(any(
target_os = "cygwin",
target_os = "fuchsia",
target_os = "haiku",
target_os = "hurd",
target_os = "redox"
)))]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know what this is. But I'd like to have cfg_aliase for them.

@sylvestre

Copy link
Copy Markdown
Contributor

Thanks for your PR

@xtqqczze
xtqqczze deleted the build/stty-haiku branch October 21, 2026 18:46
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