[MacPorts] #44656: wxWidgets-3.0: configure fails on Leopard
#44656: wxWidgets-3.0: configure fails on Leopard -----------------------+--------------------------- Reporter: takeshi@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Keywords: | Port: wxWidgets-3.0 -----------------------+--------------------------- gcc-4.2 on Leopard does not accept -stdlib option. I was able to install wxWidgets-3.0 on Leopard (ppc) if -stdlib is not used in configure- ldflags. {{{ #configure.ldflags-append \ # -stdlib=${configure.cxx_stdlib} }}} -- Ticket URL: <https://trac.macports.org/ticket/44656> MacPorts <http://www.macports.org/> Ports system for OS X
#44656: wxWidgets-3.0: configure fails on Leopard ----------------------------+--------------------- Reporter: takeshi@… | Owner: mojca@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: leopard Port: wxWidgets-3.0 | ----------------------------+--------------------- Changes (by mojca@…): * cc: mojca@… (removed) * cc: jwa@…, jeremyhu@… (added) * keywords: => leopard * version: 2.3.1 => * owner: jwa@… => mojca@… Comment: Dear Jeremy, I would like to ask you for help with this one. I know for a workaround: for example testing whether OS version is at least 10.6, else don't bother adding `-stdlib` to `LDFLAGS`. But what would be the "official"/suggested way to deal with apparently unsupported stdlib flag on old OSes? The existence of the flag is probably related to compiler choice, not so much on OS version? -- Ticket URL: <https://trac.macports.org/ticket/44656#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#44656: wxWidgets-3.0: configure fails on Leopard ----------------------------+--------------------- Reporter: takeshi@… | Owner: mojca@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: leopard Port: wxWidgets-3.0 | ----------------------------+--------------------- Comment (by jeremyhu@…): That's only relevant for clang. Look in other ports for examples. Many such ports do things like: {{{ set cxx_stdlibflags {} if {[string match *clang* ${configure.cxx}]} { set cxx_stdlibflags -stdlib=${configure.cxx_stdlib} } }}} -- Ticket URL: <https://trac.macports.org/ticket/44656#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#44656: wxWidgets-3.0: configure fails on Leopard ----------------------------+--------------------- Reporter: takeshi@… | Owner: mojca@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: leopard Port: wxWidgets-3.0 | ----------------------------+--------------------- Comment (by mojca@…): Thank you very much for the hint. Takeshi, can you please try the attached patch? {{{ #!patch --- Portfile (revision 124076) +++ Portfile (working copy) @@ -110,8 +110,10 @@ --enable-graphics_ctx \ --with-macosx-sdk=no \ --with-macosx-version-min=no -configure.ldflags-append \ +if {[string match *clang* ${configure.cxx}]} { + configure.ldflags-append \ -stdlib=${configure.cxx_stdlib} +} if {${subport} eq "wxPython-3.0"} { set wxpythonsubset wxPython-${wxpython_ver}-MacPorts-subset }}} In case it works for you, feel free to commit it. -- Ticket URL: <https://trac.macports.org/ticket/44656#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#44656: wxWidgets-3.0: configure fails on Leopard ----------------------------+--------------------- Reporter: takeshi@… | Owner: mojca@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: leopard Port: wxWidgets-3.0 | ----------------------------+--------------------- Changes (by takeshi@…): * status: new => closed * resolution: => fixed Comment: Thanks for the patch. Done in r124083. I have a buildbot error for Snow Leopard, but it seems that the binary is created and I don't have configure error on a Snow Leopard machine, I close the ticket. -- Ticket URL: <https://trac.macports.org/ticket/44656#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#44656: wxWidgets-3.0: configure fails on Leopard ----------------------------+--------------------- Reporter: takeshi@… | Owner: mojca@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: leopard Port: wxWidgets-3.0 | ----------------------------+--------------------- Comment (by mojca@…): Oh, don't worry. The failure comes from `wxWidgets-3.0-libcxx` which is just a weird workaround for ports requiring C++11. I should blacklist some compilers based on stdlib choice, but I'm not yet sure which ones (maybe clang is the only acceptable compiler). -- Ticket URL: <https://trac.macports.org/ticket/44656#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#44656: wxWidgets-3.0: configure fails on Leopard ----------------------------+--------------------- Reporter: takeshi@… | Owner: mojca@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: leopard Port: wxWidgets-3.0 | ----------------------------+--------------------- Comment (by mojca@…): Also: the binary wasn't created this time. The binary still comes from an old compilation (binary found, not building again). -- Ticket URL: <https://trac.macports.org/ticket/44656#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts