Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285720 - groups with backslashes break bootstrap
Summary: groups with backslashes break bootstrap
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: All OS X
: High critical (vote)
Assignee: Gentoo Prefix
URL: http://www.gentoo.org/proj/en/gentoo-...
Whiteboard:
Keywords:
: 280325 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-20 16:35 UTC by Robert Mohr
Modified: 2010-12-11 10:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ;))