[MacPorts] #54296: wxWidgets-3.0: fix issues after update to 3.0.3.1
MacPorts
noreply at macports.org
Sat Nov 4 19:48:30 UTC 2017
#54296: wxWidgets-3.0: fix issues after update to 3.0.3.1
-------------------------------------------------+-------------------------
Reporter: mojca | Owner: mojca
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: wxWidgets-3.0 wxgtk-3.0 p5-alien- |
wxwidgets p5-wx |
-------------------------------------------------+-------------------------
Comment (by kencu):
wxWidgets-3.2 will not link cleanly on 10.6.8. I can get it to build by
forcing it to use the 10.7SDK (like we do in libsdl2), but then it errors
out in the link at the end, due to one moved framework and one missing
framework on 10.6. It might or might not be possible to fix that, but I'm
not up for sorting it out just now.
Here's what I did, for future prospectors who might be interested in
taking this further. I added this to the wxWidgets-3.2 portfile, just
after the configure args:
{{{
###### wxwidgets-3.2 - try to build on 10.6.8
platform macosx {
if {${os.major} <= 10} {
# Build requires at least 10.7.3 SDK, even when targeting 10.6
set lion_sdkpath ${developer_dir}/SDKs/MacOSX10.7.sdk
if {[file exists $lion_sdkpath]} {
configure.sdkroot $lion_sdkpath
configure.args-replace --with-macosx-sdk=no --with-macosx-
sdk=$lion_sdkpath
configure.args-replace --with-macosx-version-min=no --with-
macosx-version-min=10.6
} else {
pre-fetch {
error "Building $name @${version} on Mac OS X 10.6
requires the MacOSX10.7.sdk to be present in ${developer_dir}/SDKs/"
}
}
}
}
}}}
and here are the link errors in the end, caused by differences between the
10.6 and 10.7 SDK:
{{{
---> Cleaning wxWidgets-3.2
---> Removing work directory for wxWidgets-3.2
---> Updating database of binaries
---> Scanning binaries for linking errors
Could not open
/System/Library/Frameworks/CoreMedia.framework/Versions/A/CoreMedia: Error
opening or reading file (referenced from
/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.1/lib/libwx_osx_cocoau_media-3.1.1.0.0.dylib)
Could not open
/System/Library/Frameworks/AVFoundation.framework/Versions/A/AVFoundation:
Error opening or reading file (referenced from
/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.1/lib/libwx_osx_cocoau_media-3.1.1.0.0.dylib)
---> Found 2 broken files, matching files to ports
---> Found 1 broken port, determining rebuild order
You can always run 'port rev-upgrade' again to fix errors.
The following ports will be rebuilt: wxWidgets-3.2 @3.1.0-git-20171103
}}}
So we'll leave wxWidgets-3.2 as unbuildable on < 10.7, as it currently is
noted to be.
--
Ticket URL: <https://trac.macports.org/ticket/54296#comment:12>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list