New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #25557 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

lang/python24: incorrect include path in PortGroup

Reported by: danchr@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc: roel@…
Port: python24

Description

The port group for Python 2.4 specifies an incorrect value for ${python.include}, as 2.4 isn't built as a framework. The following trivial patch fixes it:

--- python24-1.0.tcl
+++ python24-1.0.tcl
@@ -37,7 +37,7 @@
 set python.lib	${prefix}/lib/libpython${python.branch}.dylib
 set python.libdir ${frameworks_dir}/Python.framework/Versions/${python.branch}/lib/python${python.branch}
 set python.pkgd	${prefix}/lib/python${python.branch}/site-packages
-set python.include	${frameworks_dir}/Python.framework/Versions/${python.branch}/include/python${python.branch}
+set python.include	${prefix}/include/python${python.branch}
 
 categories		python
 

Attachments

python24.diff (7.4 KB) - added by danchr@… 3 years ago.
python24-1.0.tcl.diff (1.1 KB) - added by jmr@… 3 years ago.

Change History

comment:1 Changed 3 years ago by roel@…

I'll test it and have someone commit the patch. Thanks!

comment:2 Changed 3 years ago by jmr@…

  • Cc openmaintainer@… removed
  • Port set to python24

It is built as a framework sometimes, so this needs to be conditional.

comment:3 Changed 3 years ago by danchr@…

Ah, I see. I just looked at the python24 Portfile and it seems it's this snippet that does it:

…
        # 64-bit, can't build mac-specific stuff
        configure.args-delete --enable-framework=${frameworks_dir}
        configure.args-append --disable-toolbox-glue
        destroot.target       install maninstall
…

What was the reason to not install a framework for 64-bit non-universal builds? It strikes me as a somewhat odd thing to do…

comment:4 Changed 3 years ago by danchr@…

Bump?

comment:5 Changed 3 years ago by roel@…

Sorry, missed the reply somehow :/

It was committed in r69441, but without any reason. jmr@…, would you mind to explain, 'cause I don't understand.

comment:6 Changed 3 years ago by jmr@…

It was actually added in r56584, for the simple reason that it didn't build otherwise. If you can make the framework and toolbox glue build correctly for 64-bit archs, feel free to do so.

Changed 3 years ago by danchr@…

comment:7 Changed 3 years ago by danchr@…

The attachment above solves this in another way: it disables Python 2.4 for 64-bit architectures. The simplest way to work around the fact that it doesn't build as 64-bit, seems to be not to try building it as such…

Changed 3 years ago by jmr@…

comment:8 Changed 3 years ago by jmr@…

Or we could just set the portgroup variables correctly and keep building for the arch that the user has configured.

comment:9 Changed 3 years ago by jmr@…

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.