/[gentoo-alt]/trunk/overlay/sys-devel/distcc/files/2.18/distcc-config.patch
Gentoo

Contents of /trunk/overlay/sys-devel/distcc/files/2.18/distcc-config.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 832 - (show annotations) (download)
Sat Oct 15 14:32:27 2005 UTC (9 years, 2 months ago) by flameeyes
File size: 1200 byte(s)
Added distcc that does not check for useradd to work on Gentoo/FreeBSD. Also remove shadow dependency.
1 --- /usr/bin/distcc-config 2005-04-02 16:08:44.000000000 +0100
2 +++ distcc-config-adq 2005-04-07 14:06:23.000000000 +0100
3 @@ -65,7 +65,22 @@
4 def permissions(path,user,group):
5 for file in os.listdir(path):
6 #print 'Configuring',path+file+'...'
7 - os.chown(path+file,user,group)
8 + os.chmod(path+file,0755)
9 +
10 +def installoverrides(chost):
11 + for file in ['gcc', 'cc', 'c++', 'g++']:
12 + path = '/usr/lib/distcc/bin/'
13 + if os.path.exists('/usr/bin/'+chost+'-'+file):
14 + if os.path.exists(path+file):
15 + os.unlink(path+file)
16 + override_cmd = open(path+file, 'w')
17 + override_cmd.write('#!/bin/sh\n')
18 + override_cmd.write('exec '+chost+'-'+file+' \"$@\"\n');
19 + os.chown(path+file,user,group)
20 + override_cmd = open(path+'cc', 'w')
21 + override_cmd.write('#!/bin/sh\n')
22 + override_cmd.write('exec '+chost+'-gcc'+' \"$@\"\n');
23 + os.chown(path+'cc',user,group)
24
25 def installlinks(chost=''):
26 for file in ['gcc', 'cc', 'c++', 'g++']:
27 @@ -139,7 +154,7 @@
28 makeconf = open('/etc/make.conf', 'r').read()
29 chost = re.compile('CHOST="(.*)"').search(makeconf).group(1)
30 print 'Creating symlinks...'
31 - installlinks()
32 + installoverrides(chost)
33 installlinks(chost)
34
35 print 'Checking permissions...'

  ViewVC Help
Powered by ViewVC 1.1.20