SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
19
lang/tcl/8.6/patches/patch-library_init_tcl
Normal file
19
lang/tcl/8.6/patches/patch-library_init_tcl
Normal 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 {
|
Loading…
Add table
Add a link
Reference in a new issue