Skip to content

Commit 58f5937

Browse files
gahrnanorkyo
authored andcommitted
devel/tclreadline: backport two patches
flightaware/tclreadline#41 flightaware/tclreadline#35
1 parent 5ee8fd2 commit 58f5937

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

devel/tclreadline/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PORTNAME= tclreadline
22
PORTVERSION= 2.3.8
33
DISTVERSIONPREFIX= v
4-
PORTREVISION= 1
4+
PORTREVISION= 2
55
CATEGORIES= devel tcl
66

77
MAINTAINER= [email protected]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--- tclreadlineInit.tcl.in.orig 2024-07-08 12:20:49 UTC
2+
+++ tclreadlineInit.tcl.in
3+
@@ -17,8 +17,8 @@ proc ::tclreadline::Init {} {
4+
uplevel #0 {
5+
if {![info exists tclreadline::library]} {
6+
set msg ""
7+
- foreach dirname {@TCLRL_LIBDIR@ [file dirname [info script]]} {
8+
- if {[catch {load [file join $dirname libtclreadline[info sharedlibextension]]} msg] == 0} {
9+
+ foreach dirname [list @TCLRL_LIBDIR@ [file dirname [info script]]] {
10+
+ if {[catch {load [file join $dirname libtclreadline[info sharedlibextension]] tclreadline} msg] == 0} {
11+
set msg ""
12+
break
13+
}

0 commit comments

Comments
 (0)