Ticket #17306 (closed defect: duplicate)
Python25 won't build universal i386 + x86_64 binaries on Leopard
| Reported by: | 10.50@… | Owned by: | mww@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.6.0 |
| Keywords: | Cc: | robin@…, ryandesign@…, alexoedelman@… | |
| Port: | python25 |
Description
The Python25 build script is outdated for Leopard. It references a wrong SDK (10.4 instead of 10.5) and does not seem to build x86_64 binaries, just 32bit archs. This is a bug in the config and config.in scripts.
Then, there are several other issues, most notably with SIZEOF_LONG being fixed to 4 in python.h whereas it is 8 for x86_64 archs.
Python26 builds fine, but then it is impossible to build any py-* or py25-* extensions because of hardcoded dependencies (wrong PortGroup at least).
Is it possible either to upgrade py25 packages to py26 or to correct the python25 package in order for it to build universal Intel files on Leopard?
Thanks.
Change History
comment:1 Changed 5 years ago by macsforever2000@…
- Owner changed from macports-tickets@… to mww@…
- Port set to python25
comment:2 Changed 5 years ago by 10.50@…
Got it. There is a QuickTime dependency in python25 (in the mactoolboxglue.[hc]) file and the QuickTime.h header states clearly that QT is not available to 64-bit clients.
Thus, either one disables QuickTime support in python25 (which can seem reasonnable after all), or ports must duplicate py25-* to py26-* (which is mostly a minor rewrite of most modules) in order to retain compatibility with python 2 API and provide a 64-bit python binary.
That's Leopard: one foot in 32, one foot in 64, and what's inbetween? ;)
comment:3 Changed 5 years ago by 10.50@…
As far as I can tell, the python26 and 25 mactoolboxglue are similar, except that the python26 ones are properly enclosed in #ifndef --LP64-- where needed.
Maybe it would be worth backporting those 26 files on 25 and see what's happening? Or maybe ask upstream if this is sensible?


Assigning to maintainer.