SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View 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
}