On 10/4/12 10:52 AM, Derek Homeier wrote:
> 
>> For Xcode versions before Apple decided that the command line tools
>> should be separate, a versioned dependency on "xcode" generally meant
>> that a package was looking for a fixed command-line element, e.g. a fix
>> to the linker, rather than anything referring to the Xcode app.
>>
>> To be consistent with past practices, we decided that "xcode" should
>> refer to the command-line tools in Xcodes with separate command-line
>> packages.  Admittedly, this can be a little confusing.
>>
>> And unfortunately I'm pretty sure we're not allowed to repackage Xcode
>> and/or the command line tools so that Fink can install them.
> 
> I just ran into a very similar problem after updating to Xcode 4.5. 
> Noting that fink list showed xcode.app as version 4.5.1, while xcode was 
> still at 4.4.0 
> allowed me to realise that the command line tools had not been updated along 
> with 
> the main app (which really is extremely annoying - Apple might have a right 
> to think 
> not everyone using Xcode would want or need the command line tools; but if 
> they 
> ARE already selected and installed, to omit them from the update is just 
> utterly stupid!).
> 
> However even though I had been through the whole process finding my way to go 
> to 
> the preferences and select the right tab etcetc. took a while, and I think 
> one can easily 
> get lost there… Even if fink certainly cannot install the tools on its own, 
> perhaps it 
> would help to include the information given by Martin to xcode.info as 
> something like
> 
> 
> 
> This package represents the C/C++/ObjC developer tools
>  provided by Apple.  If it does not show as installed,
>  you can download Xcode (for OS 10.5, 10.6, and 10.7)
>  or the Command Line Tools For Xcode (OS 10.7 or later)
>  from Apple at:…
> 
> If you have already installed the Xcode toolset (xcode.app), 
> these Tools are also embedded within the Xcode IDE and 
> can be installed using the Downloads pane within the Xcode 
> Preferences. You need to repeat this step after every update 
> of the Xcode toolset.
> 

That could be added, sure.  There's no xcode.info--instead this
information is contained within the VirtPackage.pm module of fink, but
it's the same principle.

> 
> [Ideally, `fink list xcode` should perhaps show xcode as outdated if 
> xcode.app is 
> installed in a newer version, but I don't know how feasible that is… Even 
> after 
> updating the command line tools, xcode still shows up as 4.5.0.0.1…. vs. 
> xcode.app 4.5.1]

Yeah, that would be more difficult.

> 
> Cheers,
>                                               Derek
> 
> 


I don't think Xcode.app provides a convenient way to tell what the most
current version of the CLI tools for that version of the app is.  It is
also possible for people not even to have Xcode.app at all and just use
the command-line tools, at the cost of not being able to build some
packages, so one would need a definition of "outdated" which is
appropriate for that configuration.

In principle, we _could_ have a text file somewhere in the Fink
distribution with mappings of each Xcode.app version to the most current
version of the CLI tools for that (rather than saying xcode is outdated
just because the CLI tools aren't at the *absolute* latest possible
version--in the absence of Xcode.app it would probably be appropriate to
compare with the absolute latest).   One pitfall would be that this file
presumably would have to be updated manually.

An easier option to work with would be to compare just the first two
digits of the versions of Xcode.app and the CLI tools.  Such a
comparison presumes that, for example, that Xcode.app 4.5.1 is
compatible with the command line tools released with Xcode 4.5.0, since
both versions would be 4.5 under such a comparision.   That may be good
enough.

-- 
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to