r/openbsd • • Nov 07 '22

Does OpenBSD Have binary packages for macppc?

been messing around with an old iMac G4 and tried running FreeBSD on it, but found that I have to build everything myself on macppc, this is a problem since xorg requires mesa which requires llvm and llvm will probably take over a week to build on this thing. 800 MHZ single threaded with 512 MB RAM makes for very slow builds. I left it running for 24 hours and got to 10%. I wanted to know if OpenBSD has prebuilt binary packages for macppc, if not I'll just have to wait, or maybe install MacOS idk.

10 Upvotes

19 comments sorted by

5

u/kmos-ports OpenBSD Developer Nov 07 '22

Yes. You might have been confused because the packages for macppc are "powerpc".

2

u/[deleted] Nov 07 '22

Actually I just didn't look hard enough for the repo lol.

2

u/biglytriptan Nov 07 '22

It does have some, but not all definitely. Even if you want to use ports, there's packages like jdk that specifically won't build on macppc. JDK specifically is a pain because you paradoxically need a build JDK TO BUILD a JDK. I thought it could possibly work out by cross compiling on an amd64 box but I haven't tried it yet. It's also annoying that the only browser available as a binary package is epiphany, but shrug

1

u/[deleted] Nov 07 '22

I know the issues with OpenJDK from when I tried cross compiling it for iOS 5 just to see if I could. Not sure who thought it would be a good idea to make JDK depend on itself. Some googling told me that there used to be tons of JVMs but now all that's left is OpenJDK and OpenJ9. Someone needs to make a new one, since what's the point of a computer if I can't run a Minecraft server on it.

11

u/pstumpf OpenBSD Developer Nov 07 '22

8

u/gumnos Nov 07 '22

Yes, but because of the build times (as you've observed), they tend to lag behind the tier1 architectures' package repos. They used to lag a LONG time (sometimes a month or three), but the macppc folks have broken some bottleneck and they're now usually available within a week or two of the main release.

But yes, I use packages on my iBook G4 running 7.something and the only issues I've encountered are packages that don't support PPC (glares at Firefox & Chromium)

5

u/biglytriptan Nov 08 '22

What browser are you using? I noticed even Seamonkey requires rust, which apparently can't build on macppc (dunno what the limitation is, but the port isn't available for that arch). My mac mini g4 just has Epiphany right now.

3

u/gumnos Nov 08 '22

I'm partial to dillo in the GUI and lynx in the CLI, but otherwise, I just don't do much web stuff on that machine. If I had a decent/modern/supported browser that didn't gobble RAM, I might consider using it more. :-(

1

u/r093rp0llack Feb 03 '24

I have an iBook G4 that I am thinking to install OpenBSD on… I read or heard somewhere that there are issues with the trackpad on the iBook G4 under OpenBSD… what has been yo it experience please? How is the hardware support? Thanks!

2

u/gumnos Feb 03 '24

Depends on what issues you're interested in. The trackpad itself worked when last I booted it into X. Here's an excerpt from the last time I sent a dmesg to NYCBUG

uhidev2 at uhub1 port 2 configuration 1 interface 0 "Apple Computer Apple Internal Trackpad" rev 2.00/0.80 addr 3
uhidev2: iclass 3/1
utpms0 at uhidev2: Geyser Trackpad

as does regular LMB clicking (the button works, but I forget whether I can do tap-to-click). However, I was unable to get it to do a right- or middle-click, so I had to install xkbset and then assign some keys on my keyboard to act as Middle Mouse Button & Right Mouse Button:

$ doas pkg_add xkbset
$ xmodmap - <<EOF
echo keycode 95 = Pointer_Button2
echo keycode 108 = Pointer_Button3
EOF
$ xkbset m

95 (the «F11» key) for the MMB, and 108 (the «enter» key down on the bottom row; I could have used 96 for «F12» but it required Fn+F12 and I'm lazy) for the RMB.

It might be possible to mess around with drivers and synaptic-type settings to identify tapping, possibly identifying multi-finger taps like 2-finger-tap=RMB & 3-finger-tap=MMB, as well as possibly enabling two-finger scrolling. However, because the cable to the screen has a crack preventing the backlight from coming on unless it's at just the right angle, most of the time I boot it into the console without X, and SSH into it.

I do notice that, even with apmd running and apm -A configured, it runs pretty hot, even at idle, so I'm not sure it's being as smart as it could be when it comes to clocking down.

And when I run it, I have it jacked directly via gem0 wired ethernet which works fine. I'm not sure about the bwi0 wireless (which it does say gets identified). I'd have to fire it up again to test that.

The modem doesn't get configured, and there are a few other "not configured" in that dmesg I linked to.

I mostly keep it around to test my C code on a PPC processor to help ensure cross-CPU portability.

1

u/r093rp0llack Feb 03 '24

Thanks! I assume you’re cross compiling on another architecture and the target architecture is PowerPC 32-bit? If so, that is REALLY interesting to me. How are you doing it?  I ask as I have a Mac mini G4 running OpenBSD 7.4 and I would like to use it as a BBS server… I am not seeing any BBS server binary and I may need to compile something to run on the Mac mini G4… when I tried to compile a newer Bash on this same Mac mini G4 (when it was running Mac OS X Leopard) it was taking days… so I am thinking cross compiling is the way to go ha ha 

2

u/gumnos Feb 04 '24

I assume you’re cross compiling on another architecture

I clone my code repos down to the machine and compile locally. Most of my C projects are reasonably small, so they build pretty quickly.

But yeah, if you're building larger stuff, it can take a lot longer. It's also why the macppc packages take longer to freshen after a new release.

1

u/r093rp0llack Feb 06 '24

Thanks for the reply!

2

u/FileWise3921 Nov 07 '22

Based on the installation documentation , yes.

2

u/ping_scm Nov 08 '22

In order to keep my OpenBSD/macppc computer up-to-date, I follow stable and build from source. I agree that it takes a very long time to do this. As some have already said, one can build the source on a faster machine that is a different hardware architecture (cross compiling) and then apply it to their computer running OpenBSD/macppc. That's something that I'd like to do but I haven't taken the time to research how. If someone knows of an online guide that illustrates this, please share.

1

u/crest_ Nov 08 '22

Yeah, but by the build finished its release is EoL. /s

1

u/Alwayshavealwayswill Nov 08 '22

Why am I here?! 😫

2

u/[deleted] Nov 07 '22 edited Nov 08 '22

[removed] — view removed comment

1

u/[deleted] Nov 07 '22

Not sure what distcc is but I tried building via emulation with poudriere on FreeBSD in a vm, and ran into a bug that made the c compiler not work, appearently it's fixed but I gotta wait til 13.2 to use it since idk how to build FreeBSD from source. I tried on 12.3 but ran into problems with gcc11 depending on itself and gave up. if distcc lets me cross compile fbsd ports please tell me more