Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57878 - BSD install doesn't support --owner and --group, and Mac OS X doesn't have root gid
Summary: BSD install doesn't support --owner and --group, and Mac OS X doesn't have ro...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All All
: High blocker
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 58212 67599 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-07-21 10:42 UTC by Mamoru KOMACHI (RETIRED)
Modified: 2004-10-17 19:30 UTC (History)
3 users (show)

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


Attachments
dobin.diff (dobin.diff,327 bytes, patch)
2004-07-21 10:48 UTC, Mamoru KOMACHI (RETIRED)
Details | Diff
dosbin.diff (dosbin.diff,332 bytes, patch)
2004-07-21 10:49 UTC, Mamoru KOMACHI (RETIRED)
Details | Diff

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