0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-13 14:09:19 +00:00
termux-packages/x11-packages/octave-x/0001-fix-hardcoded-paths.patch
Chongyun Lee 21a85b908b new package: octave{,-x}
Co-Authored-By: MURAMATSU Atshshi <amura@tomato.sakura.ne.jp>
2023-12-24 13:30:54 +08:00

45 lines
1.0 KiB
Diff

--- a/libinterp/corefcn/sysdep.cc
+++ b/libinterp/corefcn/sysdep.cc
@@ -796,7 +796,7 @@
#else
- return "/tmp";
+ return "@TERMUX_PREFIX@/tmp";
#endif
}
--- a/liboctave/system/oct-env.cc
+++ b/liboctave/system/oct-env.cc
@@ -237,7 +237,7 @@
tempd = P_tmpdir;
#else
if (tempd.empty ())
- tempd = "/tmp";
+ tempd = "@TERMUX_PREFIX@/tmp";
#endif
#endif
--- a/src/mkoctfile.in.cc
+++ b/src/mkoctfile.in.cc
@@ -639,7 +639,7 @@
tempd = P_tmpdir;
#else
if (tempd.empty ())
- tempd = "/tmp";
+ tempd = "@TERMUX_PREFIX@/tmp";
#endif
#endif
--- a/run-octave.in
+++ b/run-octave.in
@@ -127,7 +127,7 @@
## Is there a better way to do this so that we don't fill /tmp
## with junk files? Using /dev/null won't work because asan
## appends the process ID to the file name.
- ASAN_OPTIONS="leak_check_at_exit=0:log_path=/tmp/oct-asan-log:verbosity=0"
+ ASAN_OPTIONS="leak_check_at_exit=0:log_path=@TERMUX_PREFIX@/tmp/oct-asan-log:verbosity=0"
else
ASAN_OPTIONS="$ADDRESS_SANITIZER_OPTIONS"
fi