#31444: MacPorts Python decimal module broken; Python installed from source works correctly ---------------------------------+------------------------------------------ Reporter: josharian@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: python27 ---------------------------------+------------------------------------------ Comment(by josharian@…):
Since dluke@ reports 10.7's build works fine (which uses clang) and apparently Xcode 4.0 & 4.1 cause MacPorts to default to llvm-gcc-4.2, perhaps avoiding llvm is the answer. If you try setting {{{ configure.compiler gcc-4.2 }}} in python27's Portfile, then install again, see if that one works.
Awesome! Thanks, that did it. (FYI, I wasn't sure where precisely to put it in the Portfile, so I added it as a variant and used that variant.) Fix confirmed!
If that's the answer we'd probably want to copy how [browser:trunk/dports/devel/gmp/Portfile gmp does this] since that'll limit it to just where llvm is used.
I trust I can leave this to someone who actually knows what they're doing? :) -- Ticket URL: <https://trac.macports.org/ticket/31444#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS