Gentoo Archives: gentoo-commits

From: "Julian Ospald (hasufell)" <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-fs/tahoe-lafs/files: tahoe-lafs-1.10.0-ifconfig.patch
Date: Thu, 01 Aug 2013 14:20:38
Message-Id: 20130801142033.A7EC820081@flycatcher.gentoo.org
1 hasufell 13/08/01 14:20:33
2
3 Added: tahoe-lafs-1.10.0-ifconfig.patch
4 Log:
5 fix hardcoded path to /sbin/ifconfig
6
7 (Portage version: 2.2.0_alpha191/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
8
9 Revision Changes Path
10 1.1 net-fs/tahoe-lafs/files/tahoe-lafs-1.10.0-ifconfig.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/tahoe-lafs/files/tahoe-lafs-1.10.0-ifconfig.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/tahoe-lafs/files/tahoe-lafs-1.10.0-ifconfig.patch?rev=1.1&content-type=text/plain
14
15 Index: tahoe-lafs-1.10.0-ifconfig.patch
16 ===================================================================
17 From: Julian Ospald <hasufell@g.o>
18 Date: Thu Aug 1 14:17:10 UTC 2013
19 Subject: don't hardcode ifconfig path
20
21 --- allmydata-tahoe-1.10.0/src/allmydata/util/iputil.py
22 +++ allmydata-tahoe-1.10.0/src/allmydata/util/iputil.py
23 @@ -177,11 +177,11 @@
24 _win32_re = re.compile('^\s*\d+\.\d+\.\d+\.\d+\s.+\s(?P<address>\d+\.\d+\.\d+\.\d+)\s+(?P<metric>\d+)\s*$', flags=re.M|re.I|re.S)
25
26 # These work in Redhat 6.x and Debian 2.2 potato
27 -_linux_path = '/sbin/ifconfig'
28 +_linux_path = 'ifconfig'
29 _linux_re = re.compile('^\s*inet [a-zA-Z]*:?(?P<address>\d+\.\d+\.\d+\.\d+)\s.+$', flags=re.M|re.I|re.S)
30
31 # NetBSD 1.4 (submitted by Rhialto), Darwin, Mac OS X
32 -_netbsd_path = '/sbin/ifconfig'
33 +_netbsd_path = 'ifconfig'
34 _netbsd_args = ('-a',)
35 _netbsd_re = re.compile('^\s+inet [a-zA-Z]*:?(?P<address>\d+\.\d+\.\d+\.\d+)\s.+$', flags=re.M|re.I|re.S)