[MacPorts] #34221: sw_vers hangs during a build
MacPorts
noreply at macports.org
Tue Oct 23 13:08:14 PDT 2012
#34221: sw_vers hangs during a build
--------------------------------+--------------------------
Reporter: richard.t.lloyd@… | Owner: jeremyhu@…
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.0.4
Resolution: | Keywords: mountainlion
Port: gettext |
--------------------------------+--------------------------
Comment (by ryandesign@…):
Replying to [comment:50 jeremyhu@…]:
> {{{
> $ sudo -s
> $ su macports -c "sw_vers -productVersion"
> }}}
This is the one that produces no output for me.
> {{{
> $ id macports
> $ id <numerical uid for the macports user>
> $ dscl localhost -read /Search/Users/macports
> }}}
{{{
$ id macports
uid=501(macports) gid=528(macports)
groups=528(macports),12(everyone),61(localaccounts)
$ id 501
uid=501(macports) gid=528(macports)
groups=528(macports),12(everyone),61(localaccounts)
$ dscl localhost -read /Search/Users/macports
dsAttrTypeNative:_writers_hint: macports
dsAttrTypeNative:_writers_jpegphoto: macports
dsAttrTypeNative:_writers_picture: macports
AppleMetaNodeLocation: /Local/Default
GeneratedUID: 653CB7F3-71DE-44A7-A342-F60304D3A91D
NFSHomeDirectory: /opt/local/var/macports/home
Password: *
PrimaryGroupID: 528
RealName: MacPorts
RecordName: macports
RecordType: dsRecTypeStandard:Users
UniqueID: 501
UserShell: /usr/bin/false
$
}}}
> {{{
> $ sudo -s
> $ su macports -c "launchctl list"
> }}}
No output.
Presumably this is because `su ... -c` tries to launch the user's shell,
which is `false`?
--
Ticket URL: <https://trac.macports.org/ticket/34221#comment:57>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list