Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#36156 closed enhancement (fixed)

wxwidgets issue with 10.7 sdk (XCode 4.4)

Reported by: anddam (Andrea D'Amore) Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: lion mountainlion haspatch Cc:
Port: wxwidgets

Description

About #35372 and its duplicates I suggest to notify the user and halt port parsing rather than failing at build.

This affects Lion systems as well since Xcode 4.4 can be installed on those.

Patch attached

Attachments (2)

port-wxwidgets-10.7-patch.sdk (564 bytes) - added by anddam (Andrea D'Amore) 12 years ago.
XcodeLegacy.sh (6.4 KB) - added by devernay (Frédéric Devernay) 12 years ago.
updated the script, and made it available on http://devernay.free.fr/hacks/xcodelegacy/

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by anddam (Andrea D'Amore)

comment:1 Changed 12 years ago by anddam (Andrea D'Amore)

Resolution: fixed
Status: newclosed

Committed r98112, mantainer timeout.

Ticket closed.

Last edited 12 years ago by anddam (Andrea D'Amore) (previous) (diff)

comment:2 in reply to:  1 Changed 12 years ago by devernay (Frédéric Devernay)

wxWidgets-devel is not a viable option (Cocoa version is buggy, and requires source code modifications). Rather that not being able to install with some Xcode version, it would be better to check for the presence of the SDK. Here's what I do on Mountain Lion (BTW, the Portfile doesn't seem to handle Mountain Lion at all, since there's no darwin 12 section):

platform darwin 12 {
	pre-fetch {
		if {![file exists ${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk]} {
			return -code error "\n********************\n${name} requires Mac OS X 10.6 SDK, please get it from XCode 3.2.6\n********************"
		}
	}
    configure.args-append \
        --with-macosx-version-min=10.6 \
        --with-macosx-sdk=${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
}

The SDKs, and other legacy components, can be extracted from Xcode 3.2.6, and installed on XCode >= 4.2, with the attached "XcodeLegacy.sh" script.

Changed 12 years ago by devernay (Frédéric Devernay)

Attachment: XcodeLegacy.sh added

updated the script, and made it available on http://devernay.free.fr/hacks/xcodelegacy/

comment:3 Changed 12 years ago by jyrkiwahlstedt

Ok, if you need it, you are free to modify your own copy, but as this is not a supported development environment, it will not be applied.

Note: See TracTickets for help on using tickets.