termux-packages/packages/rustc-nightly/os-tmpdir.patch
muku Takeda 5ec9a796fa
rustc-nightly: Make it possible to build the deb package
This is squashed 6 commits into the first one.

- Fix containing unneccessary files that prevents dpkg install

- Move rustc-nightly from disabled-package to package

- Reduce the amount of disk needed

- Fix using specific version of beta

- Fix wrong PATH value

- Fix how to retrieve LLVM_VERSION
2022-04-27 10:13:22 +02:00

12 lines
481 B
Diff

--- ../rustc-1.29.2-src/src/libstd/sys/unix/os.rs 2018-10-19 14:12:31.000000000 -0700
+++ ./library/std/src/sys/unix/os.rs 2018-10-19 14:11:20.000000000 -0700
@@ -488,7 +488,7 @@
pub fn temp_dir() -> PathBuf {
::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")
}