[33591] branches/release_1_6/base/portmgr/dmg/postflight

Ryan Schmidt ryandesign at macports.org
Thu Jan 31 09:39:12 PST 2008


On Jan 31, 2008, at 11:35, Daniel J. Luke wrote:

> On Jan 31, 2008, at 12:04 PM, Ryan Schmidt wrote:
>
>>> As an added bonus, dscl will work on 10.4 even if the user's  
>>> information isn't stored in netinfo (whereas nicl won't).
>>
>> Does dscl exist and work on 10.3 and earlier too?
>
> I'm not certain (I think so, given 2 below), but there are two  
> points I would make here.
>
> 1. Officially we support the current and previous release of Mac OS  
> X, so 10.3 isn't really a target anymore (and having the automatic  
> path setup not work on 10.3 isn't enough to block usage there -  
> people can still set up $PATH manually like they had to with older  
> releases).
>
> 2. MacPorts base already uses dscl (see portutil.tcl)

Chris tested on 10.3 and it works:


On Jan 31, 2008, at 11:06, Chris Janton wrote:

> face at x:face:122 $ sw_vers
> ProductName:    Mac OS X Server
> ProductVersion: 10.3.9
> BuildVersion:   7W98
> face at x:face:123 $ dscl . -read /users/$USER shell
> shell: /bin/bash
> face at x:face:124 $ which dscl
> /usr/bin/dscl
> face at x:face:125 $


If we can support 10.3 without too much additional effort, we should.  
In this case, we can use dscl on 10.3, 10.4 and 10.5 so no additional  
effort is required.




More information about the macports-dev mailing list