If you run into any trouble, the distilled version of what you need to do is all in the readme with this repo:
a local repository of MacPorts that are configured for an installation of Snow Leopard for PPC and shadow newer incompatible versions of ports - GitHub - kencu/PPCSnowLeopardPorts: a local reposito...
github.com
If you do run into troubles, we should be able to get you up and running pretty easily. You will certainly run into some ports that don't build and that I didn't fix in that repo (yet, at least) but the basic toolchain is intact and a lot of things did build when I tried it last.
And indeed, right now there is some kind of an issue with the ssl certificates that showed up and is causing havoc with a whole bunch of servers including some of the distfile servers that MacPorts uses. The fellow in charge of that is trying to straighten it out, however that is to be done.
Most ports have built, however I cannot go past ninja.
Here is a part of output:
:debug:configure configure phase started at Wed Oct 6 12:18:16 CST 2021
:notice:configure ---> Configuring ninja
:debug:configure Preferred compilers: gcc-4.2 llvm-gcc-4.2 gcc-4.0 macports-gcc$
:debug:configure Using compiler 'Xcode GCC 4.2'
:debug:configure Executing org.macports.configure (ninja)
:debug:configure Environment:
:debug:configure CC='/usr/bin/gcc-4.2'
:debug:configure CC_PRINT_OPTIONS='YES'
:debug:configure CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_loca$
:debug:configure CFLAGS='-pipe -Os -arch ppc'
:debug:configure CPATH='/opt/local/include'
:debug:configure CPPFLAGS='-I/opt/local/include'
:debug:configure CXX='/usr/bin/g++-4.2'
:debug:configure CXXFLAGS='-pipe -Os -arch ppc'
:debug:configure DEVELOPER_DIR='/Developer'
:debug:configure F90FLAGS='-pipe -Os -m32'
:debug:configure FCFLAGS='-pipe -Os -m32'
:debug:configure F90FLAGS='-pipe -Os -m32'
:debug:configure FCFLAGS='-pipe -Os -m32'
:debug:configure FFLAGS='-pipe -Os -m32'
:debug:configure INSTALL='/usr/bin/install -c'
:debug:configure LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -ar$
:debug:configure LIBRARY_PATH='/opt/local/lib'
:debug:configure MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:configure OBJC='/usr/bin/gcc-4.2'
:debug:configure OBJCFLAGS='-pipe -Os -arch ppc'
:debug:configure OBJCXX='/usr/bin/g++-4.2'
:debug:configure OBJCXXFLAGS='-pipe -Os -arch ppc'
:debug:configure PYTHON='/usr/bin/python'
:info:configure Executing: cd "/opt/local/var/macports/build/_opt_local_var_ma$
:debug:configure system: cd "/opt/local/var/macports/build/_opt_local_var_macp$
:info:configure File "configure.py", line 91
:info:configure return b'/FS' in out
:info:configure ^
:info:configure SyntaxError: invalid syntax
:info:configure Command failed: cd "/opt/local/var/mac
info:configure SyntaxError: invalid syntax
:info:configure Command failed: cd "/opt/local/var/macports/build/_opt_local_v$
:info:configure Exit code: 1
:error:configure Failed to configure ninja: configure failure: command executio$
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
:debug:configure while executing
:debug:configure "$procedure $targetname"
:error:configure See /opt/local/var/macports/logs/_opt_local_var_macports_sourc$
version:1
:debug:main Starting logging for ninja @1.10.2_1
:debug:sysinfo Mac OS X 10.6 (darwin/10.0.0d2) arch powerpc
:debug:sysinfo MacPorts 2.7.1
:debug:sysinfo Xcode 3.2
:debug:sysinfo SDK 10.6
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 10.6
:warn:main configured user/group macports does not exist, will build as root
:debug:main Executing org.macports.main (ninja)
:debug:archivefetch archivefetch phase started at Wed Oct 6 12:31:57 CST 2021
ports/build/_opt_local_v$
debug:configure CPATH='/opt/local/include'
:debug:configure CPPFLAGS='-I/opt/local/include'
:debug:configure CXX='/usr/bin/g++-4.2'
:debug:configure CXXFLAGS='-pipe -Os -arch ppc'
:debug:configure DEVELOPER_DIR='/Developer'
:debug:configure F90FLAGS='-pipe -Os -m32'
:debug:configure FCFLAGS='-pipe -Os -m32'
:debug:configure FFLAGS='-pipe -Os -m32'
:debug:configure INSTALL='/usr/bin/install -c'
:debug:configure LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -ar$
:debug:configure LIBRARY_PATH='/opt/local/lib'
:debug:configure MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:configure OBJC='/usr/bin/gcc-4.2'
:debug:configure OBJCFLAGS='-pipe -Os -arch ppc'
:debug:configure OBJCXX='/usr/bin/g++-4.2'
:debug:configure OBJCXXFLAGS='-pipe -Os -arch ppc'
:debug:configure PYTHON='/usr/bin/python'
:info:configure Executing: cd "/opt/local/var/macports/build/_opt_local_var_ma$
:debug:configure system: cd "/opt/local/var/macports/build/_opt_local_var_macp$
:error:configure Failed to configure ninja: configure failure: command executio$
:info:configure Exit code: 1
:error:configure Failed to configure ninja: configure failure: command executio$
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
:debug:configure while executing
:debug:configure "$procedure $targetname"
:error:configure See /opt/local/var/macports/logs/_opt_local_var_macports_sourc$
I tried port clean and the use verbose mode:
Verifying checksums for ninja
---> Checksumming ninja-1.10.2.tar.gz
---> Extracting ninja
---> Extracting ninja-1.10.2.tar.gz
Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ninja/ninja/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/ninja/ninja-1.10.2.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -
---> Applying patches to ninja
---> Applying patch-configure.py-bootstrap-only.diff
Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ninja/ninja/work/ninja-1.10.2" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/devel/ninja/files/patch-configure.py-bootstrap-only.diff'
patching file configure.py
Hunk #1 succeeded at 687 (offset 5 lines).
---> Applying patch-ninja-configure.py-remove-mmd.diff
Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ninja/ninja/work/ninja-1.10.2" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/devel/ninja/files/patch-ninja-configure.py-remove-mmd.diff'
patching file configure.py
---> Configuring ninja
Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ninja/ninja/work/ninja-1.10.2" && /usr/bin/python configure.py --with-python=/usr/bin/python --bootstrap --verbose
File "configure.py", line 91
return b'/FS' in out
^
SyntaxError: invalid syntax
Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ninja/ninja/work/ninja-1.10.2" && /usr/bin/python configure.py --with-python=/usr/bin/python --bootstrap --verbose
Exit code: 1
Error: Failed to configure ninja: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ninja/ninja/main.log for details.
Error: Follow
https://guide.macports.org/#project.tickets if you believe there is a
bug.
Error: Processing of port ninja failed
Configure file has this in said place:
def msvc_needs_fs(self):
popen = subprocess.Popen(['cl', '/nologo', '/?'],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
out, err = popen.communicate()
return b'/FS' in out
What should I try to fix that?