File: 15-fix_pkgIndex.patch

package info (click to toggle)
tix 8.4.3-11
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,088 kB
  • sloc: ansic: 28,082; tcl: 22,774; python: 7,577; makefile: 333; cs: 253; sh: 210; perl: 128
file content (24 lines) | stat: -rw-r--r-- 1,000 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Index: tix-8.4.3/generic/tixInit.c
===================================================================
--- tix-8.4.3.orig/generic/tixInit.c
+++ tix-8.4.3/generic/tixInit.c
@@ -212,7 +212,7 @@ static char initScript[] = "if {[info pr
   proc tixInit {} {\n\
     global tix_library tix_version tix_patchLevel\n\
     rename tixInit {}\n\
-    tcl_findLibrary Tix $tix_patchLevel $tix_patchLevel Init.tcl TIX_LIBRARY tix_library\n\
+    tcl_findLibrary Tix $tix_version $tix_patchLevel Init.tcl TIX_LIBRARY tix_library\n\
   }\n\
 }\n\
 tixInit";
--- tix-8.4.3.orig/Makefile.in
+++ tix-8.4.3/Makefile.in
@@ -296,7 +296,7 @@ pkgIndex.tcl:
 	(\
 	echo 'if {[catch {package require Tcl 8.4}]} return';\
 	echo 'package ifneeded $(PACKAGE_NAME) $(PACKAGE_VERSION) \
-	    [list load [file join $$dir $(PKG_LIB_FILE)] $(PACKAGE_NAME)]'\
+	    [list load [file join ${libdir} $(PKG_LIB_FILE)] $(PACKAGE_NAME)]'\
 	) > pkgIndex.tcl
 
 #========================================================================