Opened 12 years ago

Closed 12 years ago

#33472 closed defect (fixed)

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

Reported by: neverpanic (Clemens Lang) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: haspatch Cc: sobrespues@…, 3add3287 (3add3287)
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 (1)

qt4-mac-with-xcode4.3-sdks.patch (678 bytes) - added by neverpanic (Clemens Lang) 12 years ago.
patch against the Portfile

Download all attachments as: .zip

Change History (8)

Changed 12 years ago by neverpanic (Clemens Lang)

patch against the Portfile

comment:1 Changed 12 years ago by neverpanic (Clemens Lang)

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

comment:2 Changed 12 years ago by michaelld (Michael Dickens)

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 12 years ago by root42

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 12 years ago by jmroot (Joshua Root)

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 12 years ago by sobrespues@…

Cc: sobrespues@… added

Cc Me!

comment:6 Changed 12 years ago by 3add3287 (3add3287)

Cc: torstenb@… added

Cc Me!

comment:7 Changed 12 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: newclosed

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.