[MacPorts] #30096: MacPorts 2.0.0-beta3: fails to create the user 'macports' properly. (on Mac OS X 10.5)

MacPorts noreply at macports.org
Fri Jul 8 18:00:21 PDT 2011


#30096: MacPorts 2.0.0-beta3: fails to create the user 'macports' properly. (on Mac
OS X 10.5)
-------------------------------------------+--------------------------------
 Reporter:  takanori@…                     |       Owner:  jmr@…           
     Type:  defect                         |      Status:  new             
 Priority:  High                           |   Milestone:  MacPorts 2.0.0  
Component:  base                           |     Version:                  
 Keywords:  MacPorts 2.0.0-beta3 haspatch  |        Port:                  
-------------------------------------------+--------------------------------
 On Mac OS X 10.5, during the install process of MacPorts, user 'macports'
 isn't created properly.

 (As the result of the following example, user 'macports' is created, but
 it doesn't have PrimaryGroupID.)

 {{{
  Mac OS X 10.5:
  $ sudo make install
  ...
  [ ! -f /opt/local/etc/macports/mp_version ] || rm -vf
 /opt/local/etc/macports/mp_version
  /usr/bin/install -c -o root -g admin -m 444 setupenv.bash
 /opt/local/share/macports/
  /usr/bin/install -c -o root -g admin -m 444 macports-pubkey.pem
 /opt/local/share/macports/
  Creating user "macports"
  <dscl_cmd> DS Error: -14136 (eDSRecordNotFound)
  *** Uncaught Exception: <NSInvalidArgumentException> ([DSoDataNode
 initWithDir:value:] value i
  s not a valid NSString nor NSData)
  /usr/bin/tclsh src/upgrade_sources_conf_default.tcl "/opt/local"
  /usr/bin/tclsh src/images_to_archives.tcl "/opt/local/share/macports/Tcl"
  ...
 }}}

 This is because 10.5's dseditgroup command doesn't return any error code
 even if the group doesn't exist.

 {{{
  Mac OS X 10.5:
  $ dseditgroup -o read foobar && echo "non-exist"
  non-exist
 }}}

 {{{
  Mac OS X 10.6:
  $ dseditgroup -o read foobar && echo "non-exist"
  Group not found.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/30096>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list