[MacPorts] #40299: wxWidgets-3.0 build fails
MacPorts
noreply at macports.org
Fri Aug 30 06:47:11 PDT 2013
#40299: wxWidgets-3.0 build fails
------------------------+--------------------------------
Reporter: jwhowse4@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.2.0
Keywords: | Port: wxWidgets-3.0
------------------------+--------------------------------
On an Intel Mac running Lion 10.7.5 and XCode 4.6.3 the build of
wxWidgets-3.0 fails with the following error message.
{{{
---> Extracting wxWidgets-3.0
---> Extracting wxWidgets-2.9.5.tar.bz2
---> Applying patches to wxWidgets-3.0
---> Applying patch-configure.diff
patching file configure
---> Applying patch-include-wx-math.h.diff
patching file include/wx/math.h
Hunk #1 FAILED at 62.
1 out of 1 hunk FAILED -- saving rejects to file include/wx/math.h.rej
Command failed: cd
"/opt/macports/var/macports/build/_Volumes_User_Disk_opt_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_wxWidgets-3.0/wxWidgets-3.0/work/wxWidgets-2.9.5/build/.."
&& /usr/bin/patch -p0 <
'/Volumes/User_Disk/opt/macports/var/macports/sources/rsync.macports.org/release/tarballs/ports/graphics/wxWidgets-3.0/files
/patch-include-wx-math.h.diff'
Exit code: 1
Error: org.macports.patch for port wxWidgets-3.0 returned: command
execution failed
}}}
This error began occuring after the file was added to correct use of std::
in wx/math.h. In my distribution of wxWidgets the appropriate part of the
file include/wx/math.h appears to be the following.
{{{
#if defined(__VISUALC__) || defined(__BORLANDC__) || defined(__WATCOMC__)
#include <float.h>
#define wxFinite(x) _finite(x)
#elif defined(__MINGW64__) || defined(__clang__)
/*
add more compilers with C99 support here: using C99 isfinite() is
preferable to using BSD-ish finite()
*/
#if defined(_GLIBCXX_CMATH) || defined(_LIBCPP_CMATH)
// these <cmath> headers #undef isfinite
#define wxFinite(x) std::isfinite(x)
#else
#define wxFinite(x) isfinite(x)
#endif
#elif ( defined(__GNUG__)||defined(__GNUWIN32__)||defined(__DJGPP__)|| \
defined(__SGI_CC__)||defined(__SUNCC__)||defined(__XLC__)|| \
defined(__HPUX__) ) && ( !defined(wxOSX_USE_IPHONE) ||
wxOSX_USE_IPHONE == 0 )
}}}
However this does not appear to match what appears in the patch file.
--
Ticket URL: <https://trac.macports.org/ticket/40299>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list