summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2008-01-01 21:43:42 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2008-01-01 21:43:42 +0000
commitd333123bf1855663c371b055f52a987f83f87610 (patch)
tree8df5a87ed7d1f5e377c61a62c83ac6e30c0c8848 /sys-devel/distcc/files/2.18-r1/distcc-config.patch
parentAvahi needs to be compiled with dbus support. (diff)
downloadbetelgeuse-d333123bf1855663c371b055f52a987f83f87610.tar.gz
betelgeuse-d333123bf1855663c371b055f52a987f83f87610.tar.bz2
betelgeuse-d333123bf1855663c371b055f52a987f83f87610.zip
Add init script mods needed for --zeroconf support.
svn path=/; revision=153
Diffstat (limited to 'sys-devel/distcc/files/2.18-r1/distcc-config.patch')
-rw-r--r--sys-devel/distcc/files/2.18-r1/distcc-config.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/sys-devel/distcc/files/2.18-r1/distcc-config.patch b/sys-devel/distcc/files/2.18-r1/distcc-config.patch
new file mode 100644
index 0000000..d06a784
--- /dev/null
+++ b/sys-devel/distcc/files/2.18-r1/distcc-config.patch
@@ -0,0 +1,35 @@
+--- /usr/bin/distcc-config 2005-04-02 16:08:44.000000000 +0100
++++ distcc-config-adq 2005-04-07 14:06:23.000000000 +0100
+@@ -65,7 +65,22 @@
+ def permissions(path,user,group):
+ for file in os.listdir(path):
+ #print 'Configuring',path+file+'...'
+- os.chown(path+file,user,group)
++ os.chmod(path+file,0755)
++
++def installoverrides(chost):
++ for file in ['gcc', 'cc', 'c++', 'g++']:
++ path = '/usr/lib/distcc/bin/'
++ if os.path.exists('/usr/bin/'+chost+'-'+file):
++ if os.path.exists(path+file):
++ os.unlink(path+file)
++ override_cmd = open(path+file, 'w')
++ override_cmd.write('#!/bin/sh\n')
++ override_cmd.write('exec '+chost+'-'+file+' \"$@\"\n');
++ os.chown(path+file,user,group)
++ override_cmd = open(path+'cc', 'w')
++ override_cmd.write('#!/bin/sh\n')
++ override_cmd.write('exec '+chost+'-gcc'+' \"$@\"\n');
++ os.chown(path+'cc',user,group)
+
+ def installlinks(chost=''):
+ for file in ['gcc', 'cc', 'c++', 'g++']:
+@@ -139,7 +154,7 @@
+ makeconf = open('/etc/make.conf', 'r').read()
+ chost = re.compile('CHOST="(.*)"').search(makeconf).group(1)
+ print 'Creating symlinks...'
+- installlinks()
++ installoverrides(chost)
+ installlinks(chost)
+
+ print 'Checking permissions...'