Files
termux-packages/packages/transmission/fix_paths.patch
termux-pacman-bot 374203afba fix(main/transmission): Fix log library not found error
This fixes ld.lld: error: unable to find library -llog-lib-NOTFOUND
2026-01-28 20:08:55 +00:00

21 lines
613 B
Diff

--- a/libtransmission/platform.cc
+++ b/libtransmission/platform.cc
@@ -308,7 +308,7 @@
{
char const* const pkg = PACKAGE_DATA_DIR;
auto const xdg = tr_env_get_string("XDG_DATA_DIRS"sv);
- auto const buf = fmt::format("{:s}:{:s}:/usr/local/share:/usr/share", pkg, xdg);
+ auto const buf = fmt::format("{:s}:{:s}:@TERMUX_PREFIX@/share", pkg, xdg);
auto sv = std::string_view{ buf };
auto token = std::string_view{};
@@ -340,7 +340,7 @@
{
#ifndef _WIN32
- return std::string{ "/tmp"sv };
+ return std::string{ "@TERMUX_PREFIX@/tmp"sv };
#else