[MacPorts] #52043: Python27 @2.7.12_1 fails to build +universal on Sierra
#52043: Python27 @2.7.12_1 fails to build +universal on Sierra ---------------------+-------------------------------- Reporter: chris@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: sierra | Port: python27 ---------------------+-------------------------------- I am attempting to install wine, and this package fails to build due to the Mac glue attempting to import Quicktime headers, which no longer exist. -- Ticket URL: <https://trac.macports.org/ticket/52043> MacPorts <https://www.macports.org/> Ports system for OS X
#52043: python27 @2.7.12_1 fails to build +universal on Sierra -----------------------+-------------------- Reporter: chris@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: sierra Port: python27 | -----------------------+-------------------- Changes (by larryv@…): * owner: macports-tickets@… => jwa@… Comment: In future port-related tickets, please Cc the maintainers (e.g., `port info --maintainers python27`), if any. -- Ticket URL: <https://trac.macports.org/ticket/52043#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#52043: python27 @2.7.12_1 fails to build +universal on Sierra -----------------------+-------------------- Reporter: chris@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: sierra Port: python27 | -----------------------+-------------------- Comment (by nad@…): https://bugs.python.org/issue27806 -- Ticket URL: <https://trac.macports.org/ticket/52043#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#52043: python27 @2.7.12_1 fails to build +universal on Sierra; prevents installation of wine -------------------------------------------------+------------------------- Reporter: chris@… | Owner: jwa@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: sierra Port: python27, wine, wine-devel, wine- | haspatch crossover | -------------------------------------------------+------------------------- Changes (by ryandesign@…): * cc: jeremyhu@… (added) * priority: Normal => High * port: python27 => python27, wine, wine-devel, wine-crossover * keywords: sierra => sierra haspatch Comment: There is a [https://bugs.python.org/file44599/issue27806.patch patch] attached to the upstream issue but I don't know if that's the best solution. Jeremy, what do you think? -- Ticket URL: <https://trac.macports.org/ticket/52043#comment:5> MacPorts <https://www.macports.org/> Ports system for macOS
#52043: python27 @2.7.12_1 fails to build +universal on Sierra; prevents installation of wine -------------------------------------------------+------------------------- Reporter: chris@… | Owner: jwa@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: sierra Port: python27, wine, wine-devel, wine- | haspatch crossover | -------------------------------------------------+------------------------- Comment (by jeremyhu@…): AvailabilityMacros.h is super deprecated and should not be used by anything current. Availability.h was added as replacement in 10.5. `__MAC_OS_X_VERSION_MAX_ALLOWED` should be checked instead of `defined (DEPRECATED_IN_MAC_OS_X_VERSION_10_12_AND_LATER)` They should really have a central config and use that instead. Eg: {{{ #include <Availability.h> #define APPLE_SUPPORTS_QUICKTIME (__MAC_OS_X_VERSION_MAX_ALLOWED < 101200) || !__LP64__ }}} -- Ticket URL: <https://trac.macports.org/ticket/52043#comment:6> MacPorts <https://www.macports.org/> Ports system for macOS
#52043: python27 @2.7.12_1 fails to build +universal on Sierra; prevents installation of wine -------------------------------------------------+------------------------- Reporter: chris@… | Owner: jwa@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: sierra Port: python27, wine, wine-devel, wine- | haspatch crossover | -------------------------------------------------+------------------------- Changes (by larryv@…): * cc: nad@… (added) -- Ticket URL: <https://trac.macports.org/ticket/52043#comment:7> MacPorts <https://www.macports.org/> Ports system for macOS
#52043: python27 @2.7.12_1 fails to build +universal on Sierra; prevents installation of wine -------------------------------------------------+------------------------- Reporter: chris@… | Owner: jwa@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: sierra Port: python27, wine, wine-devel, wine- | haspatch crossover | -------------------------------------------------+------------------------- Comment (by ryandesign@…): Replying to [comment:6 jeremyhu@…]:
AvailabilityMacros.h is super deprecated and should not be used by anything current. Availability.h was added as replacement in 10.5.
It would be nice to still be able to build on 10.4... -- Ticket URL: <https://trac.macports.org/ticket/52043#comment:8> MacPorts <https://www.macports.org/> Ports system for macOS
#52043: python27 @2.7.12_1 fails to build +universal on Sierra; prevents installation of wine -------------------------------------------------+------------------------- Reporter: chris@… | Owner: jwa@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: sierra Port: python27, wine, wine-devel, wine- | haspatch crossover | -------------------------------------------------+------------------------- Comment (by jeremyhu@…): Ok, then: {{{ #if __has_include(< Availability.h >) #include <Availability.h> #define APPLE_SUPPORTS_QUICKTIME (__MAC_OS_X_VERSION_MAX_ALLOWED < 101200) || !__LP64__ #else #define APPLE_SUPPORTS_QUICKTIME !__LP64__ #endif }}} -- Ticket URL: <https://trac.macports.org/ticket/52043#comment:9> MacPorts <https://www.macports.org/> Ports system for macOS
#52043: python27 @2.7.12_1 fails to build +universal on Sierra; prevents installation of wine -------------------------------------------------+------------------------- Reporter: chris@… | Owner: jwa@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: sierra Port: python27, wine, wine-devel, wine- | haspatch crossover | -------------------------------------------------+------------------------- Comment (by jeremyhu@…): Please use the v2 version of the upstream patch which incorporates my feedback: http://bugs.python.org/file44693/issue27806_v2.patch -- Ticket URL: <https://trac.macports.org/ticket/52043#comment:10> MacPorts <https://www.macports.org/> Ports system for macOS
#52043: python27 @2.7.12_1 fails to build +universal on Sierra; prevents installation of wine -------------------------------------------------+------------------------- Reporter: chris@… | Owner: jwa@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: sierra Port: python27, wine, wine-devel, wine- | haspatch crossover | -------------------------------------------------+------------------------- Comment (by nad@…): Replying to [comment:8 ryandesign@…]:
It would be nice to still be able to build on 10.4...
There is another, unrelated issue with building Python 3.6 on 10.4. As of 3.6, certain features of the C99 standard are used in C modules; as a result, 3.6 no longer compiles with gcc-4.0, the standard in Xcode 2.5 for 10.4. So you'll probably need to add a dependency on a MacPorts-supplied C compiler (gcc-4.2 is fine). -- Ticket URL: <https://trac.macports.org/ticket/52043#comment:11> MacPorts <https://www.macports.org/> Ports system for macOS
#52043: python27 @2.7.12_1 fails to build +universal on Sierra; prevents installation of wine -------------------------------------------------+------------------------- Reporter: chris@… | Owner: jwa@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: sierra Port: python27, wine, wine-devel, wine- | haspatch crossover | -------------------------------------------------+------------------------- Comment (by ryandesign@…): We changed the default compiler on Tiger to Apple GCC 4.2 (provided by MacPorts) years ago. If there is another issue with Tiger please file a new ticket. -- Ticket URL: <https://trac.macports.org/ticket/52043#comment:12> MacPorts <https://www.macports.org/> Ports system for macOS
#52043: python27 @2.7.12_1 fails to build +universal on Sierra; prevents installation of wine -------------------------------------------------+------------------------- Reporter: chris@… | Owner: jwa@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: sierra Port: python27, wine, wine-devel, wine- | haspatch crossover | -------------------------------------------------+------------------------- Comment (by nad@…): Oh, good. I haven't actually yet tried to install the python36 port on 10.4. One more thing, the v2 patch referred to by Jeremy above needed to be tweaked for gcc-4.2 et al. The final version has been committed here: https://hg.python.org/cpython/rev/4030300fcb18 -- Ticket URL: <https://trac.macports.org/ticket/52043#comment:13> MacPorts <https://www.macports.org/> Ports system for macOS
#52043: python27 @2.7.12_1 fails to build +universal on Sierra; prevents installation of wine -------------------------------------------------+------------------------- Reporter: chris@… | Owner: larryv@… Type: defect | Status: assigned Priority: High | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: sierra Port: python27, wine, wine-devel, wine- | haspatch crossover | -------------------------------------------------+------------------------- Changes (by larryv@…): * status: new => assigned * cc: jwa@… (added) * owner: jwa@… => larryv@… Comment: r152947, maintainer timeout. I applied the upstream patch but don’t have Sierra available to test; can someone verify that +universal works on Sierra now? -- Ticket URL: <https://trac.macports.org/ticket/52043#comment:14> MacPorts <https://www.macports.org/> Ports system for macOS
#52043: python27 @2.7.12_1 fails to build +universal on Sierra; prevents installation of wine -------------------------------------------------+------------------------- Reporter: chris@… | Owner: larryv@… Type: defect | Status: assigned Priority: High | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: sierra Port: python27, wine, wine-devel, wine- | haspatch crossover | -------------------------------------------------+------------------------- Comment (by ryandesign@…): Doing a trial build now: https://build.macports.org/builders/ports-10.12_x86_64-builder/builds/5460 -- Ticket URL: <https://trac.macports.org/ticket/52043#comment:15> MacPorts <https://www.macports.org/> Ports system for macOS
#52043: python27 @2.7.12_1 fails to build +universal on Sierra; prevents installation of wine -------------------------------------------------+------------------------- Reporter: chris@… | Owner: larryv@… Type: defect | Status: assigned Priority: High | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: sierra Port: python27, wine, wine-devel, wine- | haspatch crossover | -------------------------------------------------+------------------------- Comment (by ryandesign@…): That works. Can we apply the same patch to all the other python2x ports, please? (I tested python31 and python36 and they didn't have this problem.) -- Ticket URL: <https://trac.macports.org/ticket/52043#comment:17> MacPorts <https://www.macports.org/> Ports system for macOS
#52043: python27 @2.7.12_1 fails to build +universal on Sierra; prevents installation of wine -------------------------------------------------+------------------------- Reporter: chris@… | Owner: larryv@… Type: defect | Status: assigned Priority: High | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: sierra Port: python27, wine, wine-devel, wine- | haspatch crossover | -------------------------------------------------+------------------------- Comment (by mf2k@…): This works for me now. Can we close this ticket? {{{ $ port -v installed python27 The following ports are currently installed: python27 @2.7.12_1+universal (active) platform='darwin 16' archs='i386 x86_64' date='2016-09-21T20:57:53-0600' }}} -- Ticket URL: <https://trac.macports.org/ticket/52043#comment:23> MacPorts <https://www.macports.org/> Ports system for the Mac operating system
#52043: python27 @2.7.12_1 fails to build +universal on Sierra; prevents installation of wine -------------------------------------------------+------------------------- Reporter: chris@… | Owner: larryv@… Type: defect | Status: assigned Priority: High | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: sierra Port: python27, wine, wine-devel, wine- | haspatch crossover | -------------------------------------------------+------------------------- Comment (by larryv@…): I would like to keep this open to remind myself to fix the other Python 2 ports also, once I actually upgrade my machine to Sierra. -- Ticket URL: <https://trac.macports.org/ticket/52043#comment:24> MacPorts <https://www.macports.org/> Ports system for the Mac operating system
participants (1)
-
MacPorts