summaryrefslogtreecommitdiff
path: root/uhd-4.2.0.0-imagepath-fix.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-08-05 10:50:33 +0000
committerCoprDistGit <infra@openeuler.org>2025-08-05 10:50:33 +0000
commitc2724e24bcce35e992bb81cc61a5a55e9ecbaa63 (patch)
treef3c6aa26c277dad14f9356eae8f48b7db1720dd7 /uhd-4.2.0.0-imagepath-fix.patch
parentcf9a2a425e855b1a693bb121feedeafcf0f90965 (diff)
automatic import of uhdopeneuler24.09
Diffstat (limited to 'uhd-4.2.0.0-imagepath-fix.patch')
-rw-r--r--uhd-4.2.0.0-imagepath-fix.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/uhd-4.2.0.0-imagepath-fix.patch b/uhd-4.2.0.0-imagepath-fix.patch
new file mode 100644
index 0000000..7230a92
--- /dev/null
+++ b/uhd-4.2.0.0-imagepath-fix.patch
@@ -0,0 +1,13 @@
+diff --git a/host/lib/utils/paths.cpp b/host/lib/utils/paths.cpp
+index 73b4cc2..a122c9d 100644
+--- a/host/lib/utils/paths.cpp
++++ b/host/lib/utils/paths.cpp
+@@ -290,7 +290,7 @@ std::string uhd::get_pkg_path(void)
+
+ std::string uhd::get_lib_path(void)
+ {
+- fs::path runtime_libfile_path = boost::dll::this_line_location();
++ fs::path runtime_libfile_path = "/usr" / boost::dll::this_line_location();
+ // Normalize before decomposing path so result is reliable
+ fs::path lib_path = runtime_libfile_path.lexically_normal().parent_path();
+ return lib_path.string();