16 ms·
MacOS 10.12.6 Source
- KZeillmann 9y agoI don't follow Apple open source, so I have a lot of questions: What parts of MacOS are open source, and which are not? How is it licensed? Why is this on their website rather than GitHub?
- IMcD23 9y agoMuch of the kernel (XNU), forks of BSD utilities, WebKit, LLVM/Clang, and various other projects are hosted there. This site predates GitHub, but folks have mirrors hosted there of most projects. Apple’s newer open source projects (Swift, ResearchKit, etc) are on GitHub.
- objclxt 9y agoThe WebKit source here is just a snapshot of what when into that version of the OS, the main WebKit repo is hosted separately in WebKit's SVN: https://webkit.org/getting-the-code/ https://webkit.org/getting-the-code/ The same is true for LLVM / Clang: http://llvm.org/docs/GettingStarted.html#checkout http://llvm.org/docs/GettingStarted.html#checkout
- sigjuice 9y agoAny particular reason why it needs to be on GitHub?
- jsjohnst 9y agoHaving it hosted on some kind of revision control system would be very useful and GitHub is the most prominent public place to do that, but otherwise no real reason.
- feld 9y agoI don't think they've ever released code with version history, so it would provide little benefit other than a famliar UX.
- jsjohnst 9y agoTo my knowledge, they haven't either (outside what is on Github already). The point being it would be great if they did.
- turdnagel 9y agoApple's Swift programming language is on GitHub -- the full history AFAIK. https://github.com/apple/swift https://github.com/apple/swift
- epipping 9y agoThat depends. You don’t have any helpful commit logs or even changelogs. But if you arrange e.g. the XNU releases in the form of a reasonable graph and import them into git that way, you can get some telling diffs, on the command line at least. GitHub is not being very helpful here because it does not allow you to diff arbitrary tags and revisions from a repository. But GitHub is still a place where people find and look for code. Those thoughts prompted me to create https://github.com/epipping/xnu-kernel-sources-x86 https://github.com/epipping/xnu-kernel-sources-x86 (and its cousin https://github.com/epipping/xnu-kernel-sources-ppc https://github.com/epipping/xnu-kernel-sources-ppc). Maybe you find it help (please take a look at the wiki)
- dfox 9y agoOver last 10 or so years there were various conflicts between open source projects and Apple that were caused by absence of publicly accessible version history for open source code shipped by Apple as part of OS X. Probably most significant such conflict was around KHTML/WebKit (and I somewhat believe that Chrome was at least partially Google's reaction to that)
- michel-slm 9y ago
- jsjohnst 9y agoSome of their stuff is on Github, but must of their stuff is on the linked website. The stuff that is open sourced here is mainly stuff like the Mach kernel, the BSD base system utilities, etc. For the most part, I didn't find the stuff here very useful, with the exception of an issue with 802.11x back in OS X 10.5 days. Was nice being able to reference the exact line in the code in the Radar I filed that was causing the issue.
- deleted 9y ago[deleted]
- stuaxo 9y agoPretty sure none of the GUI parts are open sourced.
- madeofpalk 9y agoChess.app is open source! https://opensource.apple.com/source/Chess/Chess-318/ https://opensource.apple.com/source/Chess/Chess-318/
- tbodt 9y agoTextEdit, too! You can find it as sample code in the developer documentation.
- S_A_P 9y agoAnd text edit is the only app I had that would open a 6gb csv file I had. I don't have sublime text but I wonder if it would do it.
- abritinthebay 9y agoBased on my experience with large JS files.... I doubt it
- DonaldPShimoda 9y ago? I've used Sublime to open ~10GB files. It's often the only thing that'll open them. They pride themselves on that ability (among others).
- jeffhuys 9y agoYeah, sublime is astonishingly fast. Obviously much better than electron-based editors.
- abritinthebay 9y ago
- 0x4a42 9y agoAs long as my memory is still working, the closed parts were mostly the GUI (Aqua), the network stack, and (of course) all the utilities like mail client, iTunes, etc.
- umanwizard 9y agoDrivers and many KEXTs (equivalent of linux kernel modules) are closed-source.
- raimue 9y agoAs Apple is not developing this software in the public, it would not make sense to put it on GitHub or any other code hosting site. The usual approach is that Apple throws bits over the wall where you can pick them up months after the end-user release. And even these code drops will be thoroughly cleaned before, so that for example kernel sources do not contain any trace of support for ARM or anything else related to the iPhone – all of that is strictly closed source. Software they take in from BSD, other open source projects, or some common Linux tools might also get patched. However, such patches are never actively submitted back to the projects, but only published on this website. The sources published for macOS on this website are mostly licensed any variant of the BSD/MIT licenses, or the Apple Public Source License, or the GPLv2. Apple avoids the GPLv3 for legal reasons due to its patent clause. That is why they often ship only the most recent GPLv2 release and ignore all later updates, for example GNU make 3.81 or bash 3.2. There might also be some other licenses in the mix, such as the Artistic License for Perl and related software.
- eridius 9y ago> Apple avoids the GPLv3 for legal reasons due to its patent clause. The patent clause is bad, but the anti-TiVoization clause is actually worse. According to that, if Apple accidentally ships any GPLv3 on iOS then they'll have to release their root signing keys to the world, which would be disastrous (it would destroy the security model of the OS).
- phh 9y agoNope, GPLv3 doesn't break any security model other than security by obscurity. Android could very well use GPLv3 and have no consequence on its security model. As long as the bootloader is open-able, the Tivo-ization rule of GPLv3 is respected. If Apple uses GPLv3, it will piss them off quite a lot, but it won't impact their security at all.
- eridius 9y agoOf course it will. The iOS security model fundamentally depends on everything from the bootloader up being codesigned. Releasing the root signing keys completely destroys this. Nothing on the system can be trusted anymore if that happens. Edit: Well, I guess the secure enclave can be trusted. But nothing else can be.
- Osmium 9y ago> rather than GitHub? Just to note that Swift is on GitHub[0] and has a very inclusive community. The impression I get is that Apple isn't really interested in soliciting outside contributions for their OS/kernel code, which is why they're just code dumps. [0] https://github.com/apple/swift https://github.com/apple/swift
- barkingcat 9y agoYou had many questions, but source code doesn't need to be on Github to be open source, especially when it's being maintained and developed purely by people hired on the core os team inside apple. You could ask why it's not on a private github repo, and the answer is that Apple's code predates Github by probably up to a decade, and depending on workflow and privacy reasons being on github is probably useless and/or veto'ed by their legal department. There are so many ways to work on open source. Github is just one tool.
- saagarjha 9y agoOnly somewhat related, but it appears that Apple has begun to use GitLab internally: https://twitter.com/_inside/status/907299327340675072 https://twitter.com/_inside/status/907299327340675072
- koko775 9y agolaunchd, which used to be open-source, is no longer open-source, because it was subsumed into XPC, which has never been open-source.
- orionblastar 9y agoApple done lost their minds! I remember when Darwin was binary ISOs, and then it just became source code and you had to hunt all over the Internet for ISOs as Apple didn't make them anymore and then anyone that did you suspect of putting a trojan in the binary. I assume this MacOS Source is the parts of MacOS that go back into BSD Unix that Apple promises to share with the free and open source communities? Anyone tried compiling the source code yet to see if it works and can be made into a binary ISO file?
- IMcD23 9y agoVery little of the components of macOS are open source, except for XNU kernel, WebKit, and compiler. You’d have a hard time taking what’s on opensource.apple.com and making an OS.
- radicaldreamer 9y agoYeah, open source Darwin was fairly useless except in very rare situations or for hobbyist poking around.
- tannhaeuser 9y agoOpen Source Darwin could be useful for Mac OS builds of F/OSS software eg. daemon-like and command-line apps without native GUI.
- badsectoracula 9y agoYou can already do that via cross compiling with osxcross[0], but you need the native SDK (you can copy it from any Mac). I have used it at the past as a part of a (Linux hosted) build process to create OSX binaries for some (GUI) stuff i was working on (the same process created Linux and Win32 binaries too). [0] https://github.com/tpoechtrager/osxcross https://github.com/tpoechtrager/osxcross
- cat199 9y ago
- pstuart 9y agoSure would be nice if they could upgrade bash to 4.x
- saagarjha 9y agoIf I remember correctly it’s because newer versions of Bash use GPLv3 which Apple doesn’t want to have to deal with.
- astrodust 9y agoNeed a BSD or MIT licensed bash work-alike, but that is not a fun project to undertake.
- skrause 9y agoWhy not drop bash completely and make zsh the default shell? Apple has been shipping zsh for a very long time already...
- kruhft 9y agoWhy not just use /bin/ksh which is installed by default on macOS? Better programming, faster and 'set -o emacs' give it readline keybindings.
- kitotik 9y agoIIRC csh was the default pre OS 10.2 days. I previously thought zsh fit the Apple ethos and aesthetic the best with its nice completions and clean(er) syntax. Now I wish they’d start shipping fish as it provides such a nice experience out of the box, and is gplv2
- jolux 9y agofish should be the default shell on macOS, possibly with a cool custom theme. then again it might turn off some of the hardcore bearded UNIX people who use it.
- MurrayHill1980 9y agouucp?
- 0x006A 9y agowhy don't they ship python3?
- Crontab 9y agoPersonally, this is why I would prefer that UNIX vendors/distributions not include advanced languages like Python, Perl, Lua, and Ruby. It seems like it ends up causing more issues than it solves.
- thomastjeffery 9y ago> this is why... The version difference? That's quite easy to work around. Just name your python 3 binary "python3".
- isatty 9y agoPython is a system default at this point, just a matter of which version ships.
- Twirrim 9y agoOpenSSL098-64.50.6 sigh What do we have to do to get Apple to actually update OpenSSL? It's beyond ridiculous. They're shipping the OS with a version of OpenSSL that is completely unsupported, and doesn't support newer security features.
- strmpnk 9y agoI believe Apple has adopted the BoringSSL fork that Google started. I bet this code is there for legacy reasons.
- alwillis 9y agoApple wrote their own SSL/TLS stack a while ago; they haven't used OpenSSL for quite a while: https://developer.apple.com/security/ https://developer.apple.com/security/
- Twirrim 9y agoRight, but things compile against it. Having it on the system is arguably worse than dropping it entirely.
- btgeekboy 9y agoI suspect it's there for backwards compatibility only. OpenSSH on this OS version is compiled against LibreSSL, for example.
- oneplane 9y agoBecause they patched it and they don't use it themselves, it's only for backwards compatibility. On top of that, it is not 'supported' by Apple, all programs for macOS use Objective-C and Swift libraries that abstract crypto to the point where it doesn't matter if under water some OpenSSL/LibreSSl/BoringSSL call is made.
- slrz 9y agoYou are aware that one can write macOS programs in languages different from ObjC and Swift, right?
- InSaneDarwin 9y agoHey, this is Cliff aka InSaneDarwin from PureDarwin Project we have a vm that is coming along nicely if anyone has seen our home page(http://www.puredarwin.org http://www.puredarwin.org). We are looking for some help with our own ACPI/Platform Expert and so I/OKit Drivers if you guys are looking for some fun come join us.
- rnhmjoj 9y agoWhy would you run Darwin over other BSD systems? Does it have some advantages or is it just for fun?
- mattnewton 9y agoThe pure Darwin site says the latter: >>"Why spend time on Darwin? >> >>For learning and fun."
- blauditore 9y agoIf I understand correctly, this should be able to run on any Intel platform, so it's not bound to Apple-labelled hardware, right? I'm asking because publishing cross-platform mobile apps is currently a hassle, as the iOS one can only be done from MacOS, which itself only runs on Apple hardware. As a consequence, I have an old Macbook lying around and dust it off everytime I make a release. A VM running anywhere would come a long way. Also, I'm aware of hackintosh VMs, but it's a hassle to set up (and yeah, borderline legal, but I'm on borderline patience with all that inconvenience by now).
- sigjuice 9y agoThis is not macOS. According to the screenshot of the latest build, it doesn't look like it even boots all the way to a shell. It is unlikely to ever help you with mobile app publishing.
- blauditore 9y agoThat's sad. I hoped due to their similarity, it might be possible to run Xcode and Apploader (or whatever it's called) on PureDarwin.
- ryanbigg 9y agoA little disappointed to see that they're still shipping Ruby 2.0; a version shipped 4 years ago. I would hope that they would update this soon to keep up to date with the language and security patches
- developer2 9y agoNever expect Apple to ship anything recent. Anything outside of their own "core system" that depends on 3rd party packages is likely to be 2, 3, 8 years out of date. Software like brew and macports aren't only popular for "extra" software; they're popular for replacing bundled software that is severely out-of-date. Last time I started from scratch, that included updating git and php from versions so old that it was laughable. Let us be thankful that these alternatives exist.
- DonaldPShimoda 9y agoJust to be clear, though, this isn't because Apple isn't interested in updating things. It's specifically because much of that software moved to GPLv3, and Apple won't include any software with that license. (The internal documentation is very clear about that haha.)
- ufo 9y agoWorse than that is all the GPL-licensed stuff, which are stuck in 2007 because Apple has a vendetta against GPLv3
- andrew_n 9y agoIt’s been a long wait, but High Sierra should ship with ruby 2.3 in under two weeks. An August beta came with ruby 2.3.3p222.
- gsnedders 9y agoThey tend to not ship anything except for security patches for each macOS release, hence it's unsurprising that Sierra is on 2.0.
- donatj 9y agoWhat is the WTF project?
- withzombies 9y agoWebkit's Web Template Framework https://github.com/WebKit/webkit/tree/master/Source/WTF/wtf https://github.com/WebKit/webkit/tree/master/Source/WTF/wtf
- eslaught 9y agoProbably the Webkit Template Framework: https://stackoverflow.com/questions/834179/wtf-is-wtf-in-webkit-code-base https://stackoverflow.com/questions/834179/wtf-is-wtf-in-web...