[MacPorts] #35045: Don't warn about missing XCode when only Command Line Tools For XCode are installed

MacPorts noreply at macports.org
Sun Jul 1 10:49:07 PDT 2012


#35045: Don't warn about missing XCode when only Command Line Tools For XCode are
installed
--------------------------------+-------------------------------------------
  Reporter:  schwern@…          |       Owner:  macports-tickets@…                   
      Type:  enhancement        |      Status:  reopened                             
  Priority:  Low                |   Milestone:                                       
 Component:  base               |     Version:  2.1.1                                
Resolution:                     |    Keywords:                                       
      Port:                     |  
--------------------------------+-------------------------------------------

Comment(by schwern@…):

 Replying to [comment:7 cal@…]:
 > There is a a simple way to find out whether a port needs Xcode: Try to
 build them all without, try to build all those that failed with Xcode. The
 set of ports that fail without Xcode and install successfully with Xcode
 is the set that would have to be marked requiring Xcode. Or, you could
 just solve the halting problem, either way is fine with me.

 Thank you, that is singularly unhelpful.  "Let's not even talk about how
 to solve the problem, because the problem is so obviously unsolvable" is a
 great way to have a lot of unsolved problems.  If the best solution you
 can come up with is "brute force", this does not mean somebody else might
 not do better.  Your solution is so unimaginative, that I presume it
 hasn't been given much thought or discussion.

 So please, let's just skip over the part where you try to convince me to
 give up by repeatedly declaring the problem to be impossible.  It just
 wastes everyone's time and energy.  Either usefully reply with
 information, and 40% less drama, or quietly let me (and anyone who wants
 to help) "waste" my own time on finding a solution and get some work done.
 It's ok for somebody to be wrong on the Internet.


 > MacPorts also uses the Xcode version to select different compilers and a
 number of Portfiles have conditionals depending on Xcode version.

 What do those conditionals look like?  Can those be grep'd for or detected
 at runtime when Macports executes the Portfile?

 It was also mentioned earlier that not all ports that need Xcode use the
 xcode portgroup.  I didn't get answers to whether this is by design or an
 oversight.  It would be also be useful to know if all members of the xcode
 portgroup use XCode, as it may be a good first order approximation and
 possibly the rest can be filled in as they fail and are reported.

 There's more than one solution to the problem.  What if the warning was
 only issued once per MacPorts process?  What if it was issued only when a
 build failed?  That's when it really matters, the warning provides a
 possible solution to the problem.  No problem, no need to offer a
 solution.

 Finally, there is the discussion about whether the warning, in its current
 form, is doing more harm than good.  If it's wrong most of the time, maybe
 it should just be turned off?  Do you all even consider the idea of
 MacPorts users not installing all of XCode an idea you want to support?

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


More information about the macports-tickets mailing list