From 194f7d5446f62787b060cc1baa21c51c304fedcd Mon Sep 17 00:00:00 2001 From: axiom Date: Fri, 7 Mar 2025 20:18:59 +0400 Subject: [PATCH] OPENIDE workaround for rust bug in xplat launcher (cherry picked from commit 90a55b27bf536dac20270e1b089eafa7f7769236) (cherry picked from commit 137e49281d455275900e3e63a0393fa2056d5340) (cherry picked from commit 6129702ed9d9bf76f60f381be04eff182728f1e0) (cherry picked from commit 2fa313830f117f1364e54701f797400cc77c3b32) (cherry picked from commit 032552b72152c3e4871d0e3127a9c1691b1995ee) --- native/XPlatLauncher/build.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/native/XPlatLauncher/build.rs b/native/XPlatLauncher/build.rs index 68df8b03329e..ab175ee0b6a1 100644 --- a/native/XPlatLauncher/build.rs +++ b/native/XPlatLauncher/build.rs @@ -1,4 +1,7 @@ -// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +// +// Modified by Dmitrij Pochepko at 2025 as part of the OpenIDE project (https://openide.ru). +// Any modifications are available on the same license terms as the original source code. use { anyhow::{bail, Context, Result}, @@ -170,6 +173,7 @@ fn extract_tar_bz2(archive: &Path, dest: &Path, extract_marker: &Path) -> Result false => { trace!("Using tar"); Command::new("tar") + .env("_OPENIDE_FOO", "bar") // workaround for rust issue 37519 .arg("-xjvf") .arg(get_non_unc_string(archive)?) .arg("-C")