On 3/29/12 12:13 PM, Remko Scharroo wrote:

<snip>
> Use of uninitialized value $sdkpath in concatenation (.) or string at 
> /sw/lib/perl5/Fink/VirtPackage.pm line 701.
> Use of uninitialized value $sdkpath in concatenation (.) or string at 
> /sw/lib/perl5/Fink/VirtPackage.pm line 701.
Yup.  I created $sdkpath but didn't deal with the case where it didn't 
get initialized.  That'll be fixed presently.
> OK. I found the culprit: xcode-select
>
> Before I had Xcode.app installed I used
> sudo xcode-select -switch /
> to since that's where the command line tools are.
> But doing so hangs "xcodebuild"
>
> When I installed Xcode.app I changed it to
> sudo xcode-select -switch /Applications/Xcode.app
> and things work
>
> Then after removing Xcode.app I get the warnings above.
>
> Changing it back to
> sudo xcode-select -switch /
> and xcodebuild hangs again (and thus hangs "fink")
>
> Changing it back to /Applications/Xcode.app is not possible since that causes 
> xcode-select to say:
> xcode-select: Error: Path "/Applications/Xcode.app" is not a directory.
>
> Then changing it to
> sudo xcode-select -switch /tmp
> makes xcodebuild run again but with an error, and "fink list" will print the 
> warning above again.
>
> It looks like the "fink" command should either drop the use of xcodebuild or 
> use xcode-select -print-path instead.
>
> Cheers,
> Remko
>
> Regards,
> Remko
>
>
>
fink (specifically VirtPackage.pm) runs "xcodebuild -version -sdk" to 
get information about where the OS X SDKs are installed, and that works 
for _any_ supported OS X version and earlier Xcodes.  To use 
"xcode-select -print-path" to get the same information would be far more 
cumbersome.

And "sudo xcode-select -switch /" appears to produce a pathological case 
where you have /usr/bin/xcodebuild trying to invoke /usr/bin/xcodebuild, 
and thus an endless loop, as opposed to _any other_ path option:

$ sudo xcode-select -switch /sw
$ xcodebuild -version
Error: Can't run /sw/usr/bin/xcodebuild (no such file).

$ sudo xcode-select -switch /
$ xcodebuild -version
<hang>

-- 
Alexander Hansen, Ph.D.
Fink User Liaison
http://finkakh.wordpress.com/2012/02/21/got-job/


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to