This is a continuation of @kencu instructions here: https://forums.macrumors.com/thread...s.2232031/page-45?post=30227761#post-30227761
Macports Guide: https://guide.macports.org/
[The post will keep being updated]
I refactor the post in order to make it easier: you won't need to refer to the earlier thread.
So, what you need to do step-wise:
1. Download Macports source code here: https://distfiles.macports.org/MacPorts/MacPorts-2.7.2.tar.bz2
2. Extract the archive, then:
Code:cd MacPorts-2.7.2/ ./configure make && sudo make install
3. Assuming you have BBEdit installed,
Code:bbedit /opt/local/etc/macports/macports.conf
That opens the config file, add the following lines, save the file:
Last two lines are commented on purpose, you don't need them active normally, but they may happen to be useful occasionally (of course, then you uncomment them temporarily).Code:build_arch ppc universal_archs ppc ppc64 buildfromsource always cxx_stdlib libstdc++ # macosx_deployment_target 10.5 # macosx_sdk_version 10.5 buildmakejobs /NUMBER OF CPU CORES/
The following setting may be useful if you have more than one Xcode installation (relevant for 10.6.8 Rosetta):
Code:developer_dir /Developer
4. Then open this file:
Code:bbedit /opt/local/etc/macports/archive_sites.conf
Uncomment the last line, so that you have:
Code:name macports_archives
5. Open sandbox config:
Code:bbedit /opt/local/libexec/macports/lib/port1.0/portsandbox.tcl
Replace one line (in fact, just a number), save the file:
Code:@@ -121,7 +121,7 @@ foreach dir $allow_dirs { foreach perm $perms { append portsandbox_profile " (allow $perm (" - if {${os.major} > 9} { + if {${os.major} > 10} { append portsandbox_profile "subpath \"${dir}\"))" } else { append portsandbox_profile "regex #\"^${dir}/\"))"
6. Add the following to your PATH:
See here: https://guide.macports.org/#installing.shellCode:PATH=/opt/local/bin:/opt/local/sbin:$PATH
This is needed for the shell (zsh, bash) to recognize "port" command. (Of course you may also run it instead as /opt/local/bin/port.)
7. Run the port sync (will take quite a while):
Code:sudo port -v sync
8. Open this:
Code:bbedit /opt/local/etc/macports/sources.conf
Add #override repo lines, so that in the bottom you have:
Code:# override repo file:///opt/PPCSnowLeopardPorts rsync://rsync.macports.org/macports/release/tarballs/ports.tar [default]
9. Place the extracted PPCSnowLeopardPorts folder in /opt.
10. Run port sync again:
Code:sudo port -v sync
11. Run the following:
Code:sudo mv /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/compilers /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/compilers-moved sudo ln -s /opt/PPCSnowLeopardPorts/_resources/port1.0/compilers /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/compilers
This (11) should be done every time after port sync. (Nothing breaks down if you don't, but Macports gonna try using compilers that are unavailable for 10.6 PPC.)
12. Build whatever you need with "sudo port -v install". More useful info here: https://guide.macports.org/
P. S. The attachment below is the original repo by @kencu
As I glance at these steps and contemplate starting over and trying again, is this something I will be able to do entirely from within the SL-PPC environment?