termux-packages/packages/rust/os-tmpdir.patch
Tee KOBAYASHI e1e7edb8b9 rust: Update to 1.58.1
Co-authored-by: sk0kanik <37567788+sk0kanik@users.noreply.github.com>
2022-01-30 04:05:51 +09:00

13 lines
617 B
Diff

diff -uNr rustc-1.57.0-src/library/std/src/sys/unix/os.rs rustc-1.57.0-src.mod/library/std/src/sys/unix/os.rs
--- rustc-1.57.0-src/library/std/src/sys/unix/os.rs 2021-11-29 20:27:11.000000000 +0100
+++ rustc-1.57.0-src.mod/library/std/src/sys/unix/os.rs 2021-12-04 09:04:53.000000000 +0100
@@ -570,7 +570,7 @@
pub fn temp_dir() -> PathBuf {
crate::env::var_os("TMPDIR").map(PathBuf::from).unwrap_or_else(|| {
if cfg!(target_os = "android") {
- PathBuf::from("/data/local/tmp")
+ PathBuf::from("@TERMUX_PREFIX@/tmp")
} else {
PathBuf::from("/tmp")
}