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

Bug 285720

Summary: groups with backslashes break bootstrap
Product: Gentoo/Alt Reporter: Robert Mohr <gentoo-bugs>
Component: Mac OSXAssignee: Gentoo Prefix <prefix>
Status: RESOLVED NEEDINFO    
Severity: critical CC: msears
Priority: High    
Version: unspecified   
Hardware: All   
OS: OS X   
URL: http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-macos.xml
Whiteboard:
Package list:
Runtime testing required: ---

Description Robert Mohr 2009-09-20 16:35:55 UTC
I'm trying to install portage on a work Macbook Pro joined to a Windows domain.  My primary group is "DOMAIN\domain users" (or "DOMAIN\\domain users", depending on perspective).  On the 'env FEATURES="-collision-protect" emerge --oneshot portage' step (see url), I get this error:

/Users/mohrrw1/.gentoo/usr/bin/install -c -d -m 755 -o "mohrrw1" -g "DOMAINdomain users" /Users/mohrrw1/.gentoo/var/tmp/portage/sys-apps/portage-2.2.00.14200/image//Users/mohrrw1/.gentoo/usr/lib/portage/bin
/Users/mohrrw1/.gentoo/usr/bin/install: invalid group `DOMAINdomain users'
make[1]: *** [install] Error 1

I have changed the name of the domain in my output, but it's otherwise the same.

I tried using newgrp to switch to a group that doesn't have a backslash, but somehow emerge stuck with my default group.

I don't have another machine to verify this with, but I might by the end of the week.
Comment 1 Fabian Groffen gentoo-dev 2009-09-21 18:29:17 UTC
*** Bug 280325 has been marked as a duplicate of this bug. ***
Comment 2 Robert Mohr 2009-09-21 22:14:07 UTC
Shouldn't this be the duplicate of bug 280325 instead of the other way around?
Comment 3 Fabian Groffen gentoo-dev 2009-09-22 08:17:08 UTC
the other one was waiting for input
Comment 4 Robert Mohr 2009-09-23 12:27:17 UTC
I changed PORTAGE_GROUP in make.globals to another group and everything worked.  I did not think to tar up my .gentoo folder before doing this, so I don't have the same situation as before.  However, with PORTAGE_GROUP reset to the group with the backslash, I continue to get the same error on 'emerge portage'.  I also found that if I get it set up so that 'emerge portage' succeeds (single quote, double backslash), 'emerge portage' will reset it to something that doesn't.

I tried editing pym/portage/const_autotool.py as suggested in the bug 280325.  In this file, portagegroup has a double quote and a double backslash.  I tried all combinations of double/single quotes and single/double/quadruple backslashes.  Single and double backslashes compile and run, but give me the initial error.  Quadruple backslashes do not compile.
Comment 5 Fabian Groffen gentoo-dev 2009-10-10 10:51:12 UTC
Please try portage-2.2.00.14555.

Sorry for the long wait.  I cannot reproduce this problem because I'm not allowed to make a group with a backslash in the name (seems I'm protected against stupidities ;))