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: library/init.tcl
--- library/init.tcl.orig
+++ library/init.tcl
@@ -57,9 +57,14 @@ namespace eval tcl {
lappend ::auto_path $Dir
}
}
+
+ # OpenBSD layout.
+ # Tcl extensions shouldn't be installed in ${LOCALBASE}/lib.
+ # Don't add ${LOCALBASE}/lib to the auto_path.
+
set Dir [file join [file dirname [file dirname \
[info nameofexecutable]]] lib]
- if {$Dir ni $::auto_path} {
+ if {$Dir ne {${LOCALBASE}/lib} && $Dir ni $::auto_path} {
lappend ::auto_path $Dir
}
if {[info exists ::tcl_pkgPath]} { catch {