New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #33472 (closed defect: fixed)

Opened 16 months ago

Last modified 12 months ago

qt4-mac warns about SDK dir not being found with Xcode 4.3

Reported by: cal@… Owned by: michaelld@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: haspatch Cc: sobrespues@…, torstenb@…
Port: qt4-mac

Description

The qt4-mac port warns when built with Xcode 4.3; since the SDK path changed with Xcode 4.3, the warning in line 350 is printed.

The attached patch fixes this.

Attachments

qt4-mac-with-xcode4.3-sdks.patch (678 bytes) - added by cal@… 16 months ago.
patch against the Portfile

Change History

Changed 16 months ago by cal@…

patch against the Portfile

comment:1 Changed 16 months ago by cal@…

  • Summary changed from qt4-mac warns about SDK dir not being found to qt4-mac warns about SDK dir not being found with Xcode 4.3

comment:2 Changed 16 months ago by michaelld@…

In a private email exchange amongst developers, I wrote

[I]t seems like either (1) the ${developer_dir} is not correct -- seems like it could be "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer" instead of just "/Applications/Xcode.app/Contents/Developer".  Or (2) I need to insert an "if" statement that depends on the xcode version when determining the SDK to use.  Any idea which is better?

Your patch is the "if" statement I mention (thanks!). I'm still waiting the decision on which way to go (SNC? JMR?), but my preference would be that the ${developer_dir} be corrected if that is truly the issue.

comment:3 Changed 15 months ago by arne.schmitz@…

Any news on this? This bug also might break other ports. For example I cannot compile pyqt4 currently, because Qt detects Xcode wrongly or not at all.

comment:4 Changed 15 months ago by jmr@…

The patch is correct if what you want to do is make the port do the same thing it's always done when Xcode 4.3 is used. But you really don't need to use an SDK at all unless ${configure.sdkroot} is non-empty. (It will be set correctly for all known Xcode versions.)

comment:5 Changed 15 months ago by sobrespues@…

  • Cc sobrespues@… added

Cc Me!

comment:6 Changed 13 months ago by torstenb@…

  • Cc torstenb@… added

Cc Me!

comment:7 Changed 12 months ago by michaelld@…

  • Status changed from new to closed
  • Resolution set to fixed

This issue should be fIxed in r94241. Please do the following

sudo port clean qt4-mac
sudo port selfupdate

and then try to install or upgrade qt4-mac. I'm closing this ticket, since it now refers to an old version of qt4-mac. Please open a new ticket if this issue persists with the new qt4-mac.

Note: See TracTickets for help on using tickets.