Opened 16 years ago

Closed 15 years ago

Last modified 11 years ago

#16863 closed enhancement (fixed)

python25 2.5.2 puredarwin variant

Reported by: afb@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: probono@…, cooljeanius (Eric Gallager)
Port: python25

Description

Patch to include a +puredarwin variant so that the resulting binary can run on PureDarwin, where proprietary frameworks and libraries are not available

Attachments (3)

python25.diff (1.7 KB) - added by afb@… 16 years ago.
python25-thin.diff (880 bytes) - added by afb@… 16 years ago.
python24.diff (1.7 KB) - added by afb@… 16 years ago.

Download all attachments as: .zip

Change History (16)

comment:1 Changed 16 years ago by probono@…

Cc: probono@… added

Cc Me!

comment:2 Changed 16 years ago by mf2k (Frank Schima)

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

comment:3 Changed 16 years ago by probono@…

Close, but somehow it still wants to run frameworkinstallapps...

/usr/bin/install -s ../python.exe "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python25/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python"
DYLD_FRAMEWORK_PATH=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python25/work/Python-2.5.2: ../python.exe ./scripts/BuildApplet.py \
		--destroot "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python25/work/destroot" \
		--python /opt/local/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python \
		--output "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python25/work/destroot/Applications/MacPorts/MacPython 2.5/Build Applet.app" \
		./scripts/BuildApplet.py
Traceback (most recent call last):
  File "./scripts/BuildApplet.py", line 14, in <module>
    import MacOS
ImportError: No module named MacOS
make[1]: *** [install_BuildApplet] Error 1
make: *** [frameworkinstallapps] Error 2

comment:4 Changed 16 years ago by afb@…

Switching back to the regular "lib" structure is probably for the best ?

platform puredarwin {
    configure.args-delete   --enable-framework=${prefix}/Library/Frameworks
    configure.args-append   --disable-toolbox-glue --disable-framework
    destroot.target     install maninstall
}

Changed 16 years ago by afb@…

Attachment: python25.diff added

Changed 16 years ago by afb@…

Attachment: python25-thin.diff added

comment:5 Changed 16 years ago by afb@…

Added a small patch to make sure that libpython2.5.dylib is built the same as libpython2.5.a

Changed 16 years ago by afb@…

Attachment: python24.diff added

comment:6 Changed 16 years ago by afb@…

Added a similar variant for python24 too, since that's currently used by the rpm port.

comment:7 Changed 16 years ago by probono@…

+puredarwin -macosx worked very well for me, thanks afb.

comment:8 Changed 15 years ago by afb@…

Resolution: fixed
Status: newclosed

Fixed, r44827 and r44827.

Maintainer timeout (3 months)

comment:9 Changed 15 years ago by afb@…

Duh, r44827 and r44828.

comment:10 Changed 15 years ago by (none)

Milestone: Port Enhancements

Milestone Port Enhancements deleted

comment:11 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added
Last edited 11 years ago by cooljeanius (Eric Gallager) (previous) (diff)

comment:12 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… removed
Last edited 11 years ago by cooljeanius (Eric Gallager) (previous) (diff)

comment:13 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.