5 ms·
hmmm I suspect this is because it is GPLv2 which doesn't require the freedom to RUN the program (which apple doesn't give you) apple seems to ship software wit
by m463 3y ago
hmmm I suspect this is because it is GPLv2 which doesn't require the freedom to RUN the program (which apple doesn't give you)
apple seems to ship software with gplv2 (old bash, etc) but no GPLv3 software.
...even though they are technically in violation of the GPL by modifying and shipping bash binaries without full source - it is missing rootless.h (not the X11 file)
- rafram 3y agoGPLv3’s anti-Tivoization clause specifically targets software bundled with a device, which this is not. There’s plenty of GPLv3 software distributed by its developers on the App Store and nothing in the text of the GPL forbids distribution in a proprietary marketplace.
- gunapologist99 3y agoIn that case, I wonder why Google is so highly allergic to GPLv3 in its GCP marketplace.
- jraph 3y agoIs it GPLv3 or AGPL? Their reasons (their excuses? At this point I'm not convinced at all) to ban AGPL are documented at [1]. [1] https://opensource.google/documentation/reference/using/agpl-policy https://opensource.google/documentation/reference/using/agpl...
- orangecat 3y agoWhat doesn't make sense? They don't want AGPL code to accidentally end up anywhere that's publicly accessible, and a lot of the code in their monolith is used across many different products, so a blanket ban seems entirely reasonable. What motivation do you think they have to lie about this?
- jraph 3y agoNot speaking about code, they ban use of AGPL software. This does not make sense to me. Software you use does not magically [1] end up in your code base, or you are doing something horribly wrong, I can't even begin to imagine how. Like, "Whoops, I downloaded and executed this AGPL-licensed binary, and now this Google process running on my laptop (or phone!) has automatically fetched its source code and put it to prod and linked it to our software, and now oh no, all our code are belong to GNU!". This is ridiculous. This is some massive, solid bullshit we have here. You can use AGPL software for any purpose within the law, no strings attached. You never need to touch the code, and if you do, you never need to link your product to it. It does not take a lawyer to understand this simple concept. Proprietary software have more restrictions than that, you'd better not have third party proprietary code ending up in your product, although it's not banned at Google. I hope they do check license compliance on their code base anyway, there are automatic scanners for this. So the chances of some AGPL code ending in their repositories seem vanishingly small. As for why Google would be dishonest, of course we have no proof and we can't know for sure AFAIK. By default I side with Drew DeVault [2], to me this is anti-AGPL propaganda and their goal is to discourage people from licensing their software under AGPL so they have a bigger pool of open source projects they can potentially reuse without having to contribute back, and it works because now people are afraid to license their stuff under AGPL because "businesses" "often" have an AGPL ban. I know of exactly two companies banning AGPL: Google and Apple. Apple already did that with GPLv3 (AGPLv3 being GPLv3 + a clause). Again, does please the big company (and come on, outdated bash and GNU tools on Mac does not make any kind of sense, the GPL never restricted stuff at the process level interface). I'm sure there are smaller businesses thinking that if Google and Apple ban those licenses, they must be bad and they should do too to be safe, while not having a business model where it even makes sense, playing Google and Apple's game. If I'm to license software under AGPL, I'm giving Google the right to use this software. That they don't want to use it is their loss. They are doing this to themselves. [1] https://en.wikipedia.org/wiki/Magical_thinking https://en.wikipedia.org/wiki/Magical_thinking [2] https://drewdevault.com/2020/07/27/Anti-AGPL-propaganda.html https://drewdevault.com/2020/07/27/Anti-AGPL-propaganda.html > they want to discourage people from using the AGPL, because they cannot productize such software effectively [...] > By discouraging the use of AGPL in the broader community, Google hopes to create a larger set of free- and open-source software that they can take for their own needs without any obligations to upstream
- m463 3y agohmmm. I thought that software loaded on an apple device is DRM'd, meaning it cannot be installed or run without an apple id (basically you must ask apple permission to run the program). GPLv2 didn't prevent this, but I thought GPLv3 conferred additional rights to the user. I remember RMS saying, "I realized I had to explicitly say the freedom to RUN the program" I believe about revising GPLv2 to GPLv3
- jraph 3y ago> GPLv2 which doesn't require the freedom to RUN the program It does. This is the first freedom of free software. I'm not sure the issues with distributing GPL software on the App store are specific to the GPLv3. I don't fully understand things on this, but [1] seems to be a good entry point. > apple seems to ship software with gplv2 (old bash, etc) but no GPLv3 software. This is an Apple policy / a choice that they make. They could decide to distribute GPLv3 software with Mac legally, but chose not to. > by modifying and shipping bash binaries without full source - it is missing rootless.h (not the X11 file) I would be interested in knowing more about this. I'm surprised they've not been already sued if they violate bash's license. [1] https://opensource.stackexchange.com/questions/9500/is-apple-allowed-to-distribute-gplv3-licensed-software-through-its-ios-app-store https://opensource.stackexchange.com/questions/9500/is-apple...
- saagarjha 3y agoSued by whom? The bash people seem like they have better things to do than sue Apple.
- jraph 3y agoThe Free Software Foundation. Bash is part of the GNU project. As a consequence, I believe contributors assign their copyright to the FSF. I downloaded a random release of bash 3 (3.0.16) and opened a random C file from it and it is indeed "Copyright (C) 1993-2004 Free Software Foundation, Inc." I appreciate that individual developers might not have the time & energy to engage in a lawsuit against Apple, but the FSF is bigger, and has all the incentive to be firm with the terms of the GPL licenses for the licenses to look strong. Developers can also certainly request help from the Software Freedom Conservancy [1] or the Software Freedom Law Center [2] (which has helped BusyBox win several lawsuits) for this kind of stuff. Apparently the SFLC has helped the FSF in the past, against Cisco, if I'm to believe [2]. [1] https://sfconservancy.org/ https://sfconservancy.org/ [2] https://en.wikipedia.org/wiki/Software_Freedom_Law_Center https://en.wikipedia.org/wiki/Software_Freedom_Law_Center
- shagie 3y agoshagie@Mac-Pro ~ % bash --version GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin23) Copyright (C) 2007 Free Software Foundation, Inc. I will note that is an interesting date as version 3 of the GPL was released on 29 June 2007 -- https://www.gnu.org/licenses/gpl-3.0.html https://www.gnu.org/licenses/gpl-3.0.html https://ftp.gnu.org/gnu/bash/ https://ftp.gnu.org/gnu/bash/ has version 3.2.57. Opening up the 'COPYING' file from that distribution: GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Apple is scrupulous at ensuring that they only distribute GPL Version 2 software, if at all (they've made efforts to switch to using BSD licensed software wherever possible). There's no reason for bash people or FSF to sue Apple as they are strictly following the license.
- xmodem 3y agoIt'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.
- turquoisevar 3y ago> ...even though they are technically in violation of the GPL by modifying and shipping bash binaries without full source - it is missing rootless.h (not the X11 file) They're not. They've covered this in two main ways: 1) By listing all their source code on https://opensource.apple.com/ https://opensource.apple.com/ (which links to their GitHub with all the source code) 2) By offering a complete machine-readable copy of the source code upon request as per GPLv2 (3)(b). This offer is made both in the license agreement[0] you agree to when booting up your Mac for the first time, updating it, etc., as well as in an Acknowledgements.rtf[1] file that is located on your drive at multiple locations (e.g., /Library/Documentation) and linked to from within certain apps (e.g., about section, acknowledgment section under Help, EULA agreement prompt, etc.). That covers the bash part. rootless.h isn't part of bash and is part of libSystem.dylib, so that would fall under the OS exception in GPLv2[2]: > However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. That said, it probably won't be long before they stop shipping bash altogether, they've already switched to Zsh a while ago and seem to have moved to a "bring your own tool" philosophy for anything they don't support by default (see Python removal and future Ruby and Perl removal notice). 0: https://www.apple.com/legal/sla/docs/macOSSonoma.pdf https://www.apple.com/legal/sla/docs/macOSSonoma.pdf (see §15) 1: https://opensource.apple.com/source/files/files-553/Library/Documentation/Acknowledgements.rtf https://opensource.apple.com/source/files/files-553/Library/... 2: https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html