Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Majoris

macrumors newbie
Original poster
May 11, 2016
28
11
DC
So, having a true unix under the hood has it's perks. Which is why a G5 can still be a good workstation.
Well now there is pkgsrc binaries for our G4/G5 https://pkgsrc.geeklan.co.uk/reports/current/Darwin-8/20160312.0432/ . There is over 9,000+ up to date packages to choose from. https://mail-index.netbsd.org/pkgsrc-bulk/2015/11/07/msg012171.html Instruction for those who don't mind hitting the termial are here http://ppcluddite.blogspot.com/2015/01/getting-started-with-pkgsrc.html The mirror(binary) is down at the moment. I email the person who build the bulk package. For the adventurous you can compile pkgsrc on mac. Get the pkgsrc here http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc.tar.bz2 tar xvjf *.tar.bz2 && cd /pkgsrc/bootstrap | sudo ./bootstrap --binary-macpkg --abi=32 powerpc, gcc
Takes a while to build.
Don't forget to export PATH=/usr/pkg/sbin:/usr/pkg/bin:$PATH (or how ever you like it in your path)
MANPATH=/usr/pkg/man

If you have pkgsrc in a different location. You can add it to the path.


If your running a G5 you can use a 64bit abi. I don't use it though.

checking if the linker (/usr/libexec/gcc/powerpc-apple-darwin9/4.0.1/ld) is GNU ld... no
Your going to need Xcode 3.1.4 installed. As this uses the gcc to bootstrap.
 
Spent all weekend tinkering around with pkgsrc. Was able to get some great stuff installed. Including youtube-dl. Right now I'm working on getting wireshark build with qt5.
 
Rene Rebe of T2SDE has many current packages built for PowerPC Linux also if anyone wants to look over his patches.

From what I understand, Darwin was implied here, and on Darwin ppc getting Qt5 is anything but trivial. I won’t say impossible, but AFAIK nobody did it so far.

I will probably try pkgsrc; while I expect most of the stuff to be broken there (simply because having ports working requires a constant effort, even if it amounts to copying existing patches from MacPorts), it seems to claim to be able to build GHC 7.10.3 for Darwin ppc, which never worked via MacPorts for me.
 
  • Like
Reactions: ChrisCharman
From what I understand, Darwin was implied here, and on Darwin ppc getting Qt5 is anything but trivial. I won’t say impossible, but AFAIK nobody did it so far.

I will probably try pkgsrc; while I expect most of the stuff to be broken there (simply because having ports working requires a constant effort, even if it amounts to copying existing patches from MacPorts), it seems to claim to be able to build GHC 7.10.3 for Darwin ppc, which never worked via MacPorts for me.

T2SDE is a distribution build environment as well as a Linux based distribution. Rene targets a large range of architectures and environments - even Darwin. He has source for GHC 9.8.2 for Darwin on aarch64 and x86_64. You’d have to look through his repository to see if there’s anything useful for you but he does support PowerPC 32 and 64 with a lot of modern packages. A cursory browse revealed ghc-6.8.2-darwin-ppc-leopard-bootstrap at least.

Edit: nevermind @barracuda, i see you have already been working on bootstrapping 7.x GHC for a couple of years now.
 
Last edited:
Well, no, GHC 7 in pkgsrc is broken, failing already at installation of bootstrap compiler (pre-built one!):
Code:
"mv" "/Users/svacchanda/Dev/pkgsrc/lang/ghc7/work/.tools/lib/ghc-7.6.3/ghc-stage2" "/Users/svacchanda/Dev/pkgsrc/lang/ghc7/work/.tools/lib/ghc-7.6.3/ghc"
/Users/svacchanda/Dev/pkgsrc/lang/ghc7/work/.tools/bin/install -c -m 755 -d "/Users/svacchanda/Dev/pkgsrc/lang/ghc7/work/.tools/lib/ghc-7.6.3"
"rm" -rf "/Users/svacchanda/Dev/pkgsrc/lang/ghc7/work/.tools/lib/ghc-7.6.3/package.conf.d"  
/Users/svacchanda/Dev/pkgsrc/lang/ghc7/work/.tools/bin/install -c -m 755 -d "/Users/svacchanda/Dev/pkgsrc/lang/ghc7/work/.tools/lib/ghc-7.6.3/package.conf.d"
"/Users/svacchanda/Dev/pkgsrc/lang/ghc7/work/.tools/lib/ghc-7.6.3/ghc-pkg" --force --global-package-db "/Users/svacchanda/Dev/pkgsrc/lang/ghc7/work/.tools/lib/ghc-7.6.3/package.conf.d" update rts/package.conf.install
Reading package info from "rts/package.conf.install" ... done.
CROSS_COMPILE="" "utils/ghc-cabal/dist-install/build/tmp/ghc-cabal" install "/Users/svacchanda/Dev/pkgsrc/lang/ghc7/work/.tools/lib/ghc-7.6.3/ghc" "/Users/svacchanda/Dev/pkgsrc/lang/ghc7/work/.tools/lib/ghc-7.6.3/ghc-pkg" "strip" "/Users/svacchanda/Dev/pkgsrc/lang/ghc7/work/.tools/lib/ghc-7.6.3" libraries/ghc-prim dist-install '' '/Users/svacchanda/Dev/pkgsrc/lang/ghc7/work/.tools' '/Users/svacchanda/Dev/pkgsrc/lang/ghc7/work/.tools/lib/ghc-7.6.3' '/Users/svacchanda/Dev/pkgsrc/lang/ghc7/work/.tools/share/doc/ghc/html/libraries' NO  
Installing library in
/Users/svacchanda/Dev/pkgsrc/lang/ghc7/work/.tools/lib/ghc-7.6.3/ghc-prim-0.3.0.0
gmake[1]: *** [ghc.mk:918: install_packages] Error 127
gmake: *** [Makefile:24: install] Error 2
*** Error code 2

Stop.
bmake[1]: stopped making "all" in /Users/svacchanda/Dev/pkgsrc/lang/ghc7
*** Error code 1

What can I say, pathetic LOL. My build of 7.10.3 was failing at the end of stage1 compiler.

Also, pkgsrc itself has issues at the moment: trivial, but breaking. If anyone will want to try using it, at least these are required:
https://github.com/NetBSD/pkgsrc/issues/158 (here just trash the patch from the folder)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.