New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #16863 (closed enhancement: fixed)

Opened 5 years ago

Last modified 2 months ago

python25 2.5.2 puredarwin variant

Reported by: afb@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: probono@…, egall@…
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

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

Change History

comment:1 Changed 5 years ago by probono@…

  • Cc probono@… added

Cc Me!

comment:2 Changed 5 years ago by macsforever2000@…

  • Owner changed from macports-tickets@… to mww@…
  • Type changed from defect to enhancement
  • Port set to python25

comment:3 Changed 5 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 5 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 5 years ago by afb@…

Changed 5 years ago by afb@…

comment:5 Changed 5 years ago by afb@…

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

Changed 5 years ago by afb@…

comment:6 Changed 5 years ago by afb@…

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

comment:7 Changed 5 years ago by probono@…

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

comment:8 Changed 4 years ago by afb@…

  • Status changed from new to closed
  • Resolution set to fixed

Fixed, r44827 and r44827.

Maintainer timeout (3 months)

comment:9 Changed 4 years ago by afb@…

Duh, r44827 and r44828.

comment:10 Changed 4 years ago by anonymous

  • Milestone Port Enhancements deleted

Milestone Port Enhancements deleted

comment:11 Changed 2 months ago by egall@…

  • Cc egall@… added
Last edited 2 months ago by egall@… (previous) (diff)

comment:12 Changed 2 months ago by egall@…

  • Cc egall@… removed
Last edited 2 months ago by egall@… (previous) (diff)

comment:13 Changed 2 months ago by egall@…

  • Cc egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.