Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 63826

Summary: Porting: distcc-config
Product: Gentoo Linux Reporter: David Bélanger <dbelan2>
Component: New packagesAssignee: osx porters <osx>
Status: RESOLVED WONTFIX    
Severity: normal CC: dbelan2
Priority: High    
Version: unspecified   
Hardware: PPC   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 65270    
Bug Blocks:    

Description David Bélanger 2004-09-12 13:40:33 UTC
Hi,

I got distcc to work (as a client) but there are a few issues to solve.

distcc-config --install
fails.

bash-2.05a# distcc-config --install
Creating /etc/env.d/02distcc...
Traceback (most recent call last):
  File "/usr/bin/distcc-config", line 135, in ?
    foobar = pwd.getpwnam('distcc')
KeyError: 'getpwnam(): name not found'
bash-2.05a# 

On OS X, useradd is not used for new users:

        if os.WEXITSTATUS(commands.getstatusoutput('/usr/sbin/useradd -u 240
 -g daemon -s /bin/false -d /dev/null -c "distccd" distcc')[0]) == 9:
                os.WEXITSTATUS(commands.getstatusoutput('/usr/sbin/usermod -
g daemon -s /bin/false -d /dev/null -c "distccd" distcc')[0])

        foobar = pwd.getpwnam('distcc')
        user   = foobar[2]
        group  = foobar[3]


Since it fails at that point symlinks are not installed later.

NB: By disabling the parts in the ebuilds that installs distcc server-related files (ex: init script) and by manually creating symlinks in the /usr/lib/distcc/bin directory since it fails because of the problem mentionned above, the distcc client can be used to do distribute compilation.

NB: I don't currently have the knowledge in Python/NetInfo stuff to fix the script.  But I am willing to test it if someone can fix it.


David
Comment 1 Hasan Khalil (RETIRED) gentoo-dev 2005-03-18 05:59:54 UTC
Kito: perhaps you could take a look at this? I think you're pretty much the only one who has sufficient knowledge of the user/group setup on mac os x/netinfo to have a real say in it...
Comment 2 Fabian Groffen gentoo-dev 2007-03-17 23:23:10 UTC
this is outdated now, sorry.