Citando Jochen Küpper :
Hey, I thought, so I don't need to port trees on my system (I have a subversion-tree for Portfile maintenance anyway)... I edit /opt/local/etc/macports/sources.conf and that's what I get:
port -dv sync DEBUG: Synchronizing ports tree(s) Synchronizing from file:///Users/jochen/source/macports/dports DEBUG: /opt/local/bin/svn update --non-interactive /Users/jochen/source/macports/dports DEBUG: changing euid/egid - current euid: 957 - current egid: 700 DEBUG: could not set effective gid to -1 while executing "setegid [name_to_gid [file attributes $portdir -group]]" DEBUG: sync failed doing svn update while executing "mportsync" port sync failed: sync failed doing svn update
sudo port -dv sync DEBUG: Synchronizing ports tree(s) Synchronizing from file:///Users/jochen/source/macports/dports DEBUG: /opt/local/bin/svn update --non-interactive /Users/jochen/source/macports/dports DEBUG: changing euid/egid - current euid: 0 - current egid: 0 svn: Kann Datei ?\194?\187/Users/jochen/.subversion/servers?\194?\171 nicht ?\195?\182ffnen: Permission denied DEBUG: shell command "/opt/local/bin/svn update --non-interactive /Users/jochen/source/macports/dports" returned error 1 Command output: svn: Kann Datei ?\194?\187/Users/jochen/.subversion/servers?\194?\171 nicht ?\195?\182ffnen: Permission denied
while executing "system $svn_commandline" DEBUG: sync failed doing svn update while executing "mportsync" port sync failed: sync failed doing svn update
I know how to update that dports tree manually, but it would be nice to have port sync working that way;)
Unfortunately, setegid more or less never works (yes even root cannot set its effective gid to a group that is not its primary group). The way to make things work would be to chown your svn tree to the user:group that will do the svn update/port sync (so probably 957:700). The line
DEBUG: could not set effective gid to -1 is strange. Is this directory belonging to a non-existing group?
Emmanuel
On 05.11.2007, at 17:01, Emmanuel Hainry wrote:
Citando Jochen Küpper :
Hey, I thought, so I don't need to port trees on my system (I have a subversion-tree for Portfile maintenance anyway)... I edit /opt/ local/etc/macports/sources.conf and that's what I get:
port -dv sync DEBUG: Synchronizing ports tree(s) Synchronizing from file:///Users/jochen/source/macports/dports DEBUG: /opt/local/bin/svn update --non-interactive /Users/jochen/source/macports/dports DEBUG: changing euid/egid - current euid: 957 - current egid: 700 DEBUG: could not set effective gid to -1 while executing "setegid [name_to_gid [file attributes $portdir -group]]" DEBUG: sync failed doing svn update while executing "mportsync" port sync failed: sync failed doing svn update
sudo port -dv sync DEBUG: Synchronizing ports tree(s) Synchronizing from file:///Users/jochen/source/macports/dports DEBUG: /opt/local/bin/svn update --non-interactive /Users/jochen/source/macports/dports DEBUG: changing euid/egid - current euid: 0 - current egid: 0 svn: Kann Datei ?\194?\187/Users/jochen/.subversion/servers?\194? \171 nicht ?\195?\182ffnen: Permission denied DEBUG: shell command "/opt/local/bin/svn update --non-interactive /Users/jochen/source/macports/dports" returned error 1 Command output: svn: Kann Datei ?\194?\187/Users/jochen/.subversion/servers?\194?\171 nicht ?\195?\182ffnen: Permission denied
while executing "system $svn_commandline" DEBUG: sync failed doing svn update while executing "mportsync" port sync failed: sync failed doing svn update
I know how to update that dports tree manually, but it would be nice to have port sync working that way;)
Btw., this is on a PPC (G4 mac mini) with 10.4.10 Just tried it on my Intel Mabook (same Mac OS X version), there it works with sudo port sync ! It does not work with port sync on either system, although my normal user owns the complete macports working copy... (I have a uid of 957 and a uid of 700 on both systems, as that is what I have on all our servers (actually all computers I use), and sometimes it is convenient for nfs-mounts and such...)
Unfortunately, setegid more or less never works (yes even root cannot set its effective gid to a group that is not its primary group). The way to make things work would be to chown your svn tree to the user:group that will do the svn update/port sync (so probably 957:700).
Well, it already is...
The line
DEBUG: could not set effective gid to -1 is strange. Is this directory belonging to a non-existing group? ge.org/mailman/listinfo/macports-users
How are groups handled by Mac OS X? /etc/group does not contain any group mp on either system, and "Accounts"-preferences apparently have no notion of groups;) Must be some fancy stuff I don't know...;) Greetings, Jochen -- Einigkeit und Recht und Freiheit http://www.Jochen- Kuepper.de Liberté, Égalité, Fraternité GnuPG key: CC1B0B4D Sex, drugs and rock-n-roll
On Nov 5, 2007, at 4:04 PM, Jochen Küpper wrote:
The line
DEBUG: could not set effective gid to -1 is strange. Is this directory belonging to a non-existing group? ge.org/mailman/listinfo/macports-users
How are groups handled by Mac OS X?
directory services
/etc/group does not contain any group mp on either system, and "Accounts"-preferences apparently have no notion of groups;) Must be some fancy stuff I don't know...;)
dscl . -list groups -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
participants (3)
-
Daniel J. Luke
-
Emmanuel Hainry
-
Jochen Küpper