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

Bug 57878

Summary: BSD install doesn't support --owner and --group, and Mac OS X doesn't have root gid
Product: Portage Development Reporter: Mamoru KOMACHI (RETIRED) <usata>
Component: Core - Ebuild SupportAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: blocker CC: alexander, ndimiduk, osx
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: dobin.diff
dosbin.diff

Description Mamoru KOMACHI (RETIRED) gentoo-dev 2004-07-21 10:42:37 UTC
Using dobin/dosbin in ebuild on macos, it dies because BSD install doesn't support
--owner and --group, and Mac OS X doesn't have root user (Mac OS X has
wheel for uid 0 instead). 

kent% sudo install --owner root --group root hoge hoge5
Password:
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 file2
       install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 ... fileN directory
       install -d [-v] [-g group] [-m mode] [-o owner] directory ...

kent% sudo install -o root -g root hoge hoge5
install: root: Invalid argument

Both GNU install and BSD install support short options, -o and -g, so
I suggest we change these long options to short ones. Also, we could
either

a) use 0:0 (-o 0 -g 0) instead of root:root
b) use wheel user instead of root if use macos is true
c) force root user creation at bootstrap-macos.sh or somewhere

I'll attach a diff to dobin and dosbin according to a), which I think
reasonable for the moment.
Comment 1 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-07-21 10:48:31 UTC
Created attachment 35896 [details, diff]
dobin.diff
Comment 2 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-07-21 10:49:02 UTC
Created attachment 35897 [details, diff]
dosbin.diff
Comment 3 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-07-21 12:54:30 UTC
Sorry, it's not root user that is missing from Mac OS X but root group.
gid 0 in Mac OS X is wheel. (Just the same as other *BSD) install -o root
-g root and chown root:root fail because no such root group on Mac OS
X system. (It will fail on other *BSD. At least FreeBSD spits error if -g root
is specified. -g 0 works anyway)
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2004-07-23 11:00:35 UTC
Included in cvs in a slightly different way.

All methods use short options now.

Uses group names, but on GNU '$USERLAND' systems it uses root:root
and on others it uses root:wheel.
Comment 5 Erik Swanson (RETIRED) gentoo-dev 2004-07-24 11:34:27 UTC
*** Bug 58212 has been marked as a duplicate of this bug. ***
Comment 6 Brian Harring (RETIRED) gentoo-dev 2004-08-16 11:08:08 UTC
Fixed a while ago...
Comment 7 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-10-17 19:30:00 UTC
*** Bug 67599 has been marked as a duplicate of this bug. ***