Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 350763 - net-libs/liblockfile cannot use my group on install (OS X)
Summary: net-libs/liblockfile cannot use my group on install (OS X)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-06 03:01 UTC by François Bissey
Modified: 2012-02-23 21:52 UTC (History)
0 users

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 François Bissey 2011-01-06 03:01:04 UTC
Ok let's be more specific I get the following error:
>>> Install liblockfile-1.08 into /Users/frb15/Desktop/Gentoo/var/tmp/portage/net-libs/liblockfile-1.08/image/Users/frb15/Desktop/Gentoo/ category net-libs
make -j3 ROOT=/Users/frb15/Desktop/Gentoo/var/tmp/portage/net-libs/liblockfile-1.08/image/ install 
install -m 644 lockfile.h maillock.h /Users/frb15/Desktop/Gentoo/var/tmp/portage/net-libs/liblockfile-1.08/image//Users/frb15/Desktop/Gentoo/usr/include
if [ "UOCNT\domain" != "" ]; then\
	  install -g UOCNT\domain -m 2755 dotlockfile /Users/frb15/Desktop/Gentoo/var/tmp/portage/net-libs/liblockfile-1.08/image//Users/frb15/Desktop/Gentoo/usr/bin;\
	else \
	  install -g root -m 755 dotlockfile /Users/frb15/Desktop/Gentoo/var/tmp/portage/net-libs/liblockfile-1.08/image//Users/frb15/Desktop/Gentoo/usr/bin; \
	fi
install: invalid group `UOCNTdomain'

.............
My group on this OS X machine is "UOCNT\domain users", no jokes. In the ebuild we have the following
line in src_configure:

use prefix && grp=$(id -gn)

the "n" bit means id will return a name instead of a code for the group. In my case the funny string above. id -g return the group number, which is also a valid option for configure on this machine.
Replacing id -gn with id -g I can merge the package without problems and the files all belong to the right group.
Comment 1 François Bissey 2012-02-23 21:22:49 UTC
Still get this in 1.09.
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-02-23 21:52:20 UTC
That is probably fine for all.

+  23 Feb 2012; Jeremy Olexa <darkside@gentoo.org> liblockfile-1.09.ebuild:
+  (Gentoo Prefix only) Use id -g instead of id -gn, bug 350763 by Francois
+  Bissey