Opened 15 years ago

Closed 14 years ago

#17306 closed defect (duplicate)

Python25 won't build universal i386 + x86_64 binaries on Leopard

Reported by: Veence (Vincent) Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: robin@…, ryandesign (Ryan Carsten Schmidt), 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 (8)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to mww@…
Port: python25 added

Assigning to maintainer.

comment:2 Changed 15 years ago by Veence (Vincent)

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 15 years ago by Veence (Vincent)

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?

comment:4 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:5 Changed 15 years ago by robin@…

Cc: robin@… added

Cc Me!

comment:6 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

On Snow Leopard, I like to build all ports x86_64/i386 universal. This bug prevents me from doing this with python25. This prevents me from building other ports this way which depend on python25.

comment:7 Changed 14 years ago by alexoedelman@…

Cc: alexoedelman@… added

Cc Me!

comment:8 Changed 14 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed

We'll track this in #21248.

Note: See TracTickets for help on using tickets.