Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

GNU coreutils are essential on macOS, and Apple should just include it by default. \o/



Um… GNU’s license is incompatible with Apple; that’s why Bash 3.2 is the current version for macOS.


Not incompatible, except with Apple's business model; Apple has been removing GNU software for more than a decade:

https://news.ycombinator.com/item?id=3559990


I should have been more clear: Apple has and continues to ship GPLv2 software but not GPLv3, since one interpretation of that license is that by including GPLv3 code in macOS, they’d be required to make the source code to at least the entire Darwin (the Unix layer underneath the GUI) operating system available, which is something they probably don’t want to do.

Which is why GNU’s core utilities don’t ship in macOS and why the outdated Bash 3.2 (GPLv2) still ships in the latest versions of macOS.

It’s also why ZSH, which uses a variation of the MIT license, is now the default shell when Bash was the default for many years.


> Darwin (the Unix layer underneath the GUI) operating system available, which is something they probably don’t want to do.

Darwin is open source, and Apple did make Darwin available[1][2], but the issues are it takes some skill, experience, and understanding to put it all together and build it, and many parts have become closed source since Apple first released. Also, there are basically no drivers for anything.

At least two projects derived from it, making it far easier to install and boot, OpenDarwin and PureDarwin. PureDarwin[3] had a couple of bootable releases, but I haven't heard much about it since their last release years ago, but their site says they've been working on drivers and a modified XNU to work without Apple's closed source portions.

IIRC, way back during the end of PPC, I was able to install and boot Darwin CLI on an x86 (probably 486 or Pentium something), but without any drivers, I couldn't do anything with it other than boot it and explore the filesystem. I couldn't even get it to network, so I couldn't install MacPorts, lost interest pretty quickly. It looked exactly like booting Mac OS X without Quartz, Apple's pretty command line.

But the PureDarwin release had X11, and by the screenshots, looked pretty neat. I intended to try PureDarwin's Xmas release in a vm back in the late 2000s, but I was jerked around a lot back then with living arrangements and never got back around to it. PureDarwin's later releases had a lot more functionality.

[1] https://opensource.apple.com/source/xnu/xnu-2050.18.24/

[2] https://opensource.apple.com/release/macos-10124.html

[3] http://www.puredarwin.org/


I did say at least Darwin… the rest of macOS would probably have to open sourced if it included GPLv3-licensed code.


This is not true.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: