0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-24 02:36:16 +00:00
termux-packages/disabled-packages/kphp/compiler-compiler.cpp.patch
Tee KOBAYASHI 1bbe66e98a kphp: Disabled
Incompatible with latest libuber-h3. A whole bunch of patches are quite
unmaintainable.

kphp-timelib is also disabled as only kphp depends on it.
2022-11-17 18:08:03 +00:00

12 lines
442 B
Diff

--- a/compiler/compiler.cpp
+++ b/compiler/compiler.cpp
@@ -119,7 +119,7 @@
std::string dest_path = G->settings().dest_dir.get();
std::stringstream ss;
- ss << "/tmp/" << std::hex << vk::std_hash(dest_path) << "_kphp_temp_lock";
+ ss << "@TERMUX_PREFIX@/tmp/" << std::hex << vk::std_hash(dest_path) << "_kphp_temp_lock";
locked_filename_ = ss.str();
fd_ = open(locked_filename_.c_str(), O_RDWR | O_CREAT, 0666);