Skip to content

Update to version 1.95.0. JB#64166 - #27

Open
direc85 wants to merge 1 commit into
masterfrom
rust-1.95
Open

Update to version 1.95.0. JB#64166#27
direc85 wants to merge 1 commit into
masterfrom
rust-1.95

Conversation

@direc85

@direc85 direc85 commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

+ (_, None) | (CompileKindFallback::JustHost, _) => {
+ if let Ok(sb2_tgt) = std::env::var("SB2_RUST_TARGET_TRIPLE") {
+ Ok(vec![CompileKind::Target(CompileTarget::new(&sb2_tgt)?)])
+ Ok(vec![CompileKind::Target(CompileTarget::new(&sb2_tgt, false)?)])

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Here JustHost can end up with a Target CompileKind

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks, will rethink this patch as well! I have a suspicion this is something that has worked by accident earlier...

+ if clear_tmp {
+ env::remove_var("TMP");
+ unsafe {
+ env::remove_var("TMP");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You set TMPDIR earlier then remove TMP, is that right? Apparently Rust 1.95 now creates the linker temporary directory explicitly beside the output using tempdir_in(output.parent()), so changing TMPDIR no longer affects that directory. Seems like this patch might not still be needed at all.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good to hear that from outside! That is the resolution I've been walking towards myself. I haven't been able to reproduce the bug this patch fixed by putting export TMPDIR=/tmp in .spec file, which effectively disables the patch.

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.

2 participants