File: package_require_rm_exact.diff

package info (click to toggle)
tclcl 1.20-14
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 976 kB
  • sloc: sh: 3,726; cpp: 2,154; tcl: 1,414; ansic: 264; makefile: 162; perl: 49
file content (25 lines) | stat: -rw-r--r-- 1,092 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: remove -exact from package require for tcl and tk
 Debian is using strict libraries version policy (ie: tcl 8.5/8.6)
 so, the exact is not needed here.
Bug: http://mailman.isi.edu/pipermail/ns-users/2011-June/070597.html
Author: YunQiang Su <wzssyqa@gmail.com>
Last-Update: 2011-06-30
Index: tclcl/Makefile.in
===================================================================
--- tclcl.orig/Makefile.in	2011-06-30 20:02:36.405690862 +0800
+++ tclcl/Makefile.in	2011-06-30 20:03:41.870015477 +0800
@@ -169,10 +169,14 @@
 embedded-tcl.cc: $(TCL_LIBRARY_FILES) $(TCL2C)
 	$(RM) $@
 	$(TCL2C) et_tcl $(TCL_LIBRARY_FILES) > $@
+	sed -i -e "s/package require -exact Tk/package require Tk/g" $@
+	sed -i -e "s/package require -exact Tcl/package require Tcl/g" $@
 
 embedded-tk.cc: $(TK_LIBRARY_FILES) $(TCL2C)
 	$(RM) $@
 	$(TCL2C) et_tk $(TK_LIBRARY_FILES) > $@
+	sed -i -e "s/package require -exact Tk/package require Tk/g" $@
+	sed -i -e "s/package require -exact Tcl/package require Tcl/g" $@
 
 embedded-tclobj.cc: tcl-object.tcl tcl-import.tcl tcl-http.tcl $(TCL2C)
 	$(RM) $@