3 ms·
It's been a hot minute since I had to dig into the code Apple publishes for anything and since then they seem to have moved it all to Github. I don't have my ma
by xmodem 3y ago
It's been a hot minute since I had to dig into the code Apple publishes for anything and since then they seem to have moved it all to Github. I don't have my mac handy to try building it, but I don't see any references to a rootless.h in the code they're publishing. I'm curious to know a bit more about what's missing.
- saagarjha 3y agoThey inlined the code here: https://github.com/apple-oss-distributions/bash/commit/9817a9670495eb01c195f7f24e459db192c5111d https://github.com/apple-oss-distributions/bash/commit/9817a...
- Turing_Machine 3y agoThat would be perfectly legal under the GPL, right? It doesn't say you're not allowed to modify the code, just that you have to distribute the modified code in its entirety. If what Apple is distributing is sufficient to build (their version of) bash, it's perfectly fine.
- saagarjha 3y agoIf the code is what Apple used to build what they're distributing, then yes this is valid. (For this case at least, they have a tendency of doing this a lot and I suspect the change to bash was made just to address this specific complaint while missing every other place they strip out code.)
- m463 3y agoI tried to rebuild bash a while back on macos and couldn't do it because the source code was not available for rootless.h. I guess someones complaint finally got some action from apple. I remember doing macos kernel debugging (in the non-gpl code apple distributes) and it was pretty evident that the code they distribute like xnu is NOT the code that is in the OS. Stack traces had lots of functions apple keeps to itself. Looking in the distributed code shows suspicious blank lines where automated tools must remove apple-only source.
- saagarjha 3y agoYes, XNU is missing a lot of stuff. But it's not (L)GPL, so it's not really required for them to provide that code.