Closed kapfab closed 8 months ago
Updated the README-related commit, let me know if it’s OK for you.
Are you expecting further changes to merge this PR? I plan to create an Homebrew formula for plptools and I’d prefer to make it use the master branch of this official repo rather than my fork. Let me know if I can help.
Are you expecting further changes to merge this PR?
It looks from my last comment that I was, as I mention "a couple of minor style improvements", but I can't see any specific improvements, so I just read through the text changes again and commented on what leapt out at me.
Unless I missed something, all of your comments were addressed and I made the macOS-specific instructions as short as possible. Let me know if you see anything else.
Sorry, I wasn't clear. I meant, I have just now made one new comment (see above).
Reloaded the page but I can’t see it.
Reloaded the page but I can’t see it.
Sorry, I think that was because I hadn't submitted my review; now done.
Many thanks, I'll make a release shortly.
1.0.16 released; many thanks for your work, and happy brew-ing!
Thank you! I’m glad so little changes were needed to make it work with macOS after all these years.
Yes! Looking at the changes, the additions to the Makefiles are strictly speaking bug fixes, not macOS-specific, while the changes to the code owe more to the unportability of serial code circa 2000.
I don't propose to change anything now, but just out of interest I looked into how much is standardized by POSIX. The main problem seems to be hardware flow control (CRTSCTS), which is not covered (and as you probably noticed, has a completely different API on AIX and HP/UX). Still, I think the code could be simplified were it likely to need to change.
Yeah, POSIX is great but it’s not a panacea. Anyway, all the serial-related code for plptools is isolated in a single dedicated file which is not very complicated to amend when needed. I don’t think there are (m)any people still using plptools on Solaris, AIX, HP/UX or SGI, but who knows…
I made a few changes to allow plptools to build and run on macOS.
ncpd
,plpftp
,plpprint
andsisinstall
work fine. I didn’t testplpfuse
as making MacFuse/OSXFuse work on recent macOS releases is a mess (kernel extensions being deprecated), but it can compile successfully.These changes have been tested on macOS Ventura (13.6.1) on an Apple Silicon (M1) Mac, they should also work on Intel Macs as they’re not architecture-specific. Building under Linux is still OK with these changes.