[Pkg-tcltk-commits] r1827 - in tcllib/trunk/debian: . patches

sgolovan at alioth.debian.org sgolovan at alioth.debian.org
Tue Apr 26 14:29:13 UTC 2016


Author: sgolovan
Date: 2016-04-26 14:29:13 +0000 (Tue, 26 Apr 2016)
New Revision: 1827

Added:
   tcllib/trunk/debian/patches/nettool.patch
Modified:
   tcllib/trunk/debian/changelog
   tcllib/trunk/debian/control
   tcllib/trunk/debian/patches/series
Log:
[tcllib]
  * Fixed the nettool module which executes arp and ifconfig and can't find
    them if /usr/sbin and /sbin aren't in the user's PATH (closes: #822293).


Modified: tcllib/trunk/debian/changelog
===================================================================
--- tcllib/trunk/debian/changelog	2016-04-06 19:53:00 UTC (rev 1826)
+++ tcllib/trunk/debian/changelog	2016-04-26 14:29:13 UTC (rev 1827)
@@ -1,8 +1,9 @@
-tcllib (1.18-dfsg-3) UNRELEASED; urgency=medium
+tcllib (1.18-dfsg-3) unstable; urgency=medium
 
-  * NOT RELEASED YET
+  * Fixed the nettool module which executes arp and ifconfig and can't find
+    them if /usr/sbin and /sbin aren't in the user's PATH (closes: #822293).
 
- -- Sergei Golovan <sgolovan at debian.org>  Wed, 06 Apr 2016 22:52:59 +0300
+ -- Sergei Golovan <sgolovan at debian.org>  Tue, 26 Apr 2016 17:28:09 +0300
 
 tcllib (1.18-dfsg-2) unstable; urgency=medium
 

Modified: tcllib/trunk/debian/control
===================================================================
--- tcllib/trunk/debian/control	2016-04-06 19:53:00 UTC (rev 1826)
+++ tcllib/trunk/debian/control	2016-04-26 14:29:13 UTC (rev 1827)
@@ -13,6 +13,7 @@
 Priority: optional
 Architecture: all
 Depends: ${tclsh:Depends}, ${misc:Depends}
+Recommends: net-tools
 Suggests: tcllib-critcl
 Description: Standard Tcl Library
  Tcllib, the standard Tcl library, is a collection of common utility

Added: tcllib/trunk/debian/patches/nettool.patch
===================================================================
--- tcllib/trunk/debian/patches/nettool.patch	                        (rev 0)
+++ tcllib/trunk/debian/patches/nettool.patch	2016-04-26 14:29:13 UTC (rev 1827)
@@ -0,0 +1,29 @@
+Author: Sergei Golovan
+Description: Patch hardcodes arp and ifconfig paths for the case when /sbin
+ or /usr/sbin isn't in the user's PATH.
+Last-Modified: Tue, 26 Apr 2016 17:24:52 +0300
+Debian-Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=822293
+Bug: https://core.tcl.tk/tcllib/tktview?name=d879576438
+
+--- a/modules/nettool/platform_unix.tcl
++++ b/modules/nettool/platform_unix.tcl
+@@ -11,7 +11,7 @@
+ ###
+ proc ::nettool::arp_table {} {
+   set result {}
+-  set dat [exec arp -a]
++  set dat [exec /usr/sbin/arp -a]
+   foreach line [split $dat \n] {
+     set host [lindex $line 0]
+     set ip [lindex $line 1]
+--- a/modules/nettool/platform_unix_linux.tcl
++++ b/modules/nettool/platform_unix_linux.tcl
+@@ -92,7 +92,7 @@
+ # description: Dump interfaces
+ ###
+ proc ::nettool::dump {} {
+-  set data [exec ifconfig]
++  set data [exec /sbin/ifconfig]
+   set iface {}
+   set result {}
+   foreach line [split $data \n] {

Modified: tcllib/trunk/debian/patches/series
===================================================================
--- tcllib/trunk/debian/patches/series	2016-04-06 19:53:00 UTC (rev 1826)
+++ tcllib/trunk/debian/patches/series	2016-04-26 14:29:13 UTC (rev 1827)
@@ -1 +1 @@
-#
+nettool.patch




More information about the Pkg-tcltk-commits mailing list