SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
19
editors/helix/patches/patch-helix-loader_src_lib_rs
Normal file
19
editors/helix/patches/patch-helix-loader_src_lib_rs
Normal file
|
@ -0,0 +1,19 @@
|
|||
Index: helix-loader/src/lib.rs
|
||||
--- helix-loader/src/lib.rs.orig
|
||||
+++ helix-loader/src/lib.rs
|
||||
@@ -56,11 +56,15 @@ fn prioritize_runtime_dirs() -> Vec<PathBuf> {
|
||||
|
||||
// fallback to location of the executable being run
|
||||
// canonicalize the path in case the executable is symlinked
|
||||
+ #[cfg(not(target_os = "openbsd"))]
|
||||
let exe_rt_dir = std::env::current_exe()
|
||||
.ok()
|
||||
.and_then(|path| std::fs::canonicalize(path).ok())
|
||||
.and_then(|path| path.parent().map(|path| path.to_path_buf().join(RT_DIR)))
|
||||
.unwrap();
|
||||
+ #[cfg(target_os = "openbsd")]
|
||||
+ let exe_rt_dir = std::path::PathBuf::from("%%DATADIR%%").join(RT_DIR);
|
||||
+
|
||||
rt_dirs.push(exe_rt_dir);
|
||||
rt_dirs
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue