They've done more than deprecate it. They've been waving enormous flags that you have to get off the train. They removed enscript in Catalina. And groff/troff in Monterey.
CUPS changed its default job file format to PDF in 2012.
This thread has gotten me curious about what Apple is doing and became a little side research project. Not because I need the results but because it was interesting to get a clearer view of some Apple product decisions/investments especially around macOS (or MacOS X as I still prefer):
What I've found is:
- Apple is still advancing the UNIX side of macOS
- Apple hates GPLv3 -- they never incorporated any software licensed as such, they deferred updating the software that adopted it, and they've switched packages when they found alternatives
- Apple deprecates software less than you think (or at least I thought) but they also do so without much warning or explanation
I admit I haven't been keeping up with macOS releases because they do seem to drop things without much warning and I often don't have time for the distraction. As such, I don't have first-hand with Ventura and Sonoma nor did I jump on Big Sur. I only recently noticed a few things on my Monterey system that apparently happened in Big Sur.
However, they have been doing tweaking a lot o the UNIX stuff and this can be seen in their public source code that they snuck on Github a few years ago. If you look at their open source landing page (
https://opensource.apple.com) you'd think it's all basically WebKit and Swift and a few more things listed under Projects.
But if you go their Releases page they nicely summarize and make avaialble every open source UNIX tool included in every release:
opensource.apple.com
Then it's easy to go to the linked GitHub page to see the original version of the source software for each case along with Apple's patches. What I found was pretty much everything GNU (Bash, GNU bc, GNU Diff, GNU ROFF, Gunzip, etc) came to a halt after the GPLv3 release (typically 2009-2011). In some cases Apple continued tweaking the last GPLv2 code years afterwards.
In other cases, they switched to alternatives when they could find them. For example "mandoc" to replace GNU ROFF. GROPDF wasn't included in GROFF until the GPLv3 (circa 2009) which Apple wouldn't touch so left us with no ability to directly create PDF versions of man pages. However, it looks like with Ventura they jetisoned "groff" for "mandoc" (which is special-purposesd for man pages rather than generic ROFF files), and in exchange we got the option for PDF output without going through PostScript.
The other thing I noticed is there is still a ton of what I'd consider niche UNIX software still included even in Sonoma. uuencode? Haven't used that in years. I don't recall "rs" from any other commercial system I used and surprised we're still carrying that around. It's been a long time since I've seen anyone use "finger". Ditto modem controls and postfix SMTP.
Then while I agree PDF has been the future since Apple went Quartz/PDF instead of DisplayPostScript, it wasn't clear PostScript support would be dropped until it was. Others who keep up with every release thought the same:
For the last 39 years, PostScript has been at the heart of the Mac, bringing desktop publishing, fonts, and the LaserWriter and other printers. It has been removed from Sonoma.
eclecticlight.co
It's true CUPS switched to PDF along time ago but it wasn't clear to me that meant dropping Postscript support elsewhere in the system given that PostScript was the de facto API for printing under UNIX for decades and a foundational technology for Apple's graphic design base. Apple dropped Enscript after Lion (my guess based on the above is due to GPLv3 rather than dropping PostScript) but kept pstopdf and related PostScript rendering code around through Monterey. On the flip side, Apple didn't include generation of PDF versions of man pages until Ventura or Sonoma.
In the meantime, here are some commands to go direct to PDF on Sonoma (and possibly Ventura) for two types of that the UNIX-minded are likely to want:
mandoc -T pdf -O paper=letter $(man -w ls) | open -fa "Preview"
cupsfilter -o prettyprint -o landscape -i text/plain test.c | open -fa "Preview"
What would have been nice during these transitions is if Apple included notes about changes around this in release notes and then listed workaround such as the above (and ideally made things "just work" -- man -T pdf should do the same as the first item). Clearly from questions by different people here and on the internet, it wasn't clear to everyone what Apple was doing and the alternative options available to them. And no one would fault them if they enhanced VIM with the option to output PDF rather than just PS.