by cglong · 3y ago · 0 comments
Warning: You are using macOS 11.
We (and Apple) do not provide support for this old version.
It is expected behaviour that some formulae will fail to build in this old version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.Also, if you are not going along in the upgrade rabbit race, homebrew gets really annoying and actually in your way at some point.
I see myself moving to macports soon, if brew gets worse and the stability of my setup is compromised (lots of php versions with valet for example).
I guess brew is now more targeted at “prosumers” now since it is imposing unnecessary limits on what “pro” users want and need.
Its more nuanced than that.
As a dev, i like a stable environment and i dont like to do big updates all the time, since that means i have to spend hours updating my setup again. Everytime i run brew im scared it will hose my PHP versions, etc, since it auto updates everything.
To install old PHP versions one needs to hack the install files to make it work.
If you bring up any of these issues you are screamed down by the devs as “you should always be on the latest versions anyway bla bla”… but that is just not a realistic scenario in the real world. Legacy code is everywhere.
In the end brew is not really for pro users, but, as i said, maybe for people using it to install youtube-dl or whatever.
Once the pain of reinstalling and hacking it to make it work becomes too big then i will switch.
The homebrew team seems incredibly burnt-out, to the point of hostility. I've really enjoyed the nixpkgs community so far and encourage others to check it out; it hasn't replaced homebrew entirely for me (yet), but it's getting closer every day.
And that's not even getting into the "waaa?" from `du -hs /nix` although I am open to that being a misleading number due to hardlinks and other trickery that du may not correctly surface
Nope, du counts hardlinks correctly when it encounters the same inode multiple times in the course of fulfilling a single invocation.
per https://ss64.com/osx/du.html :
> Files having multiple hard links are counted (and displayed) a single time per du execution.
Nix's disk usage profile is pretty similar to Flatpak's, or to a collection of closely related Docker containers. The difference between no Nix install and having one isn't huge. But your first installed Nix package will pull in very low level common dependencies— on Linux, everything between whatever application and the kernel (and on macOS, a bit less). Your next application will come with a smaller increase. Once you have a handful of programs installed, you no longer have big downloads for individual additions. When you have a lot installed, the difference isn't that huge, proportionally.
Over time, your Nixpkgs version will rotate and you can end up with deps from old versions of Nixpkgs, which can take up a lot of extra space. But that's easy enough to manage by pinning Nixpkgs.
If you ever uninstall programs, Homebrew's broken uninstallation functionality can very quickly make a Homebrew installation much (up to several times) larger than the equivalent Nix one once you have more than a handful of packages installed.
Though it does tend to get clobbered on macOS updates.
The default installer is not idempotent yet (and my work on trying to resolve that has stalled, unfortunately, see https://github.com/NixOS/nix/pull/7603), so trying to run it again to fix this issue will result in errors.
Are you running garbage collection? It gets out of hand if you keep all versions, but you don't need to do that
Maintainers get requests to do things they have no interest in, like maintaining software for OSes past a certain date. That doesn’t sound so bad, but there are a lot, and they can even be mean. The maintainer can block these users individually, but it’s different users all the time, so that doesn’t stop it.
So, the maintainer addresses the user base, the whole crowd all at once. The problem is most of these users haven’t seen these interactions, so the message seems hostile. Having someone say “I owe you nothing.” seems really weird when you’ve never asked them for anything. Or, if they list of all the ways and reasons for you to not contact them it looks hostile. The users don’t see the fan next to them throwing a beer can at the center fielder.
Max Howell (founder of homebrew) went to interview at Google, shoved a coding exercise back in their faces, made a snotty comment about how all the engineers at Google using Macs use his code and how dare they blah blah greatest engineer in the world blah blah, and walked out the door.
That coding exercise was likely given to him precisely because all the google engineers had a lot of experience using brew, or they did it as ego check to see if he'd be insufferable to work with.
Howell failed to realize that and instead went and bragged about it on twitter, almost certainly confirming for the hiring committee that things had worked exactly as designed.
Whole lot of fucking sass from a man who either didn't care or didn't know about the security implications of making a directory in the default path user-writeable, thus making probably hundreds of thousands of developer's systems less secure:
https://infotoast.org/site/index.php/2021/05/30/homebrew-is-...
Macos 12 will run on most Macs from 2015 and later.
8 year old hardware isn't Earth shattering, but it's also not a "hostile" period of time for a non-commercial open source project to support. And it's certainly not "new hardware every year".
Old Macs are often perfectly usable in terms of hardware, but macOS security updates have left them behind.
As of today, it's likely that the 2016 Mac I'm writing this on (which can run Monterey but not Ventura or Sonoma) is out of support.
Of course the Mac apocalypse will be when x86 support is dropped, possibly starting in the next macOS release.
macOS could be a modular rolling release, but you need to milk the peasants from time to time
You can build Nix with a custom store prefix and run it that way if you're willing to build from source.
In practice, Linux users don't really have to contend with that tradeoff because you can relocate a Nix store wholesale using a bind mount, or a user namespace (unprivileged chroot), or various fakeroot tricks to run a Nix store in your homedir as if it lives in /nix. Unfortunately macOS just doesn't have any of those mechanisms.
If macOS some day gets first-class container support and, consequently, relevant user-facing primitives for user-mode chroot, then unprivileged, cache-friendly Nix installation methods for macOS will doubtless follow. I hope both happen!
Agreed, but it's at least possible. My usual install is just cloning Homebrew to ~/homebrew and setting up a symlink. It's far from ideal, due to the number of packages I need to build from source, but it works, and it's allowed me to function normally in tightly controlled environments.
As far as I can tell, the initial installation for Nix doesn't allow this, though iFreilicht pointed out some options that I haven't seen before, so I may be wrong.
I remember seeing SBCL builds broken on Darwin/ppc for a long while, and eventually SBCL decided to drop support for Darwin/ppc altogether. Still, these ports maintainers did not give up and eventually found a way to fix SBCL builds on PPC: https://trac.macports.org/ticket/65484
I recall seeing some work to bring back PPC support upstream, but I am not sure what the progress on that is. It's still cool seeing downstream users fix builds that simply didn't work (and to the point where upstream decides to remove support entirely since they couldn't build it anyway).
same could be said for pkgsrc I guess. I've used that on other *nix systems; haven't tried it on MacOS yet but the fact it's an option is huge
I’ve also dabbled in this area http://leopard.sh/
there are a lot of scripts out there to mitigate this but the boot-strapping is always a bit of a bother. like the script i wrote, my first instruction was "So... you go download chrome for 10.x for PPC... you can find it here in the old forgotten wasteland of google on a deserted old site that might not exist much longer... and by the way this is not secure at all"
like, you just cannot do this securely. cellularmitosis has made leopard.sh linked below, of course the first step is to download from an http site.
its kind of one of those things that have changed about the web, the cultural shock.... nowdays basically so much is based on an account, or at the very least ssl. back then nobody gave a **.
so to actually use a g5 on the modern web, like ... can you log into a video site to watch a video? well only if you dont care about being hacked when you type in your user id and password to the video site. can you shop? only if you dont care about being hacked. same.. can you browse literally anything? google will constantly harass you into logging in. so will basically everything else. and if you dont your experience will suck.
can you... write code for a g5 and try to back port modern algorithms to it? sure just log in to .. .github... on your.. insecure machine that could easily be hacked. and lose your github account to hackers. then you can cry about it after you login to social media. on your hacked account. so maybe not. then you can post about it on hacker news... where of course your account has been hacked by a keylogger.
if your machine doesnt crash because someone installed a bitcoin miner into it, or a tor node, or bittorrent or god knows what that could get you arrested.
the modern web is just such a pile of degenerate criminality and scammers and thieves and robbers, not to mention the spy agencies of various governments, that basically that is the main thing driving old systems off of it. its not that its not possible to optimize code or write new code for old platforms. its that the basic machine running an old OS is compromised at a fundamental level, open to the world for exploitation if you dare to type anything into it that is the least bit private or confidential, and its connected online.
It’s better suited for a multiuser system (and I share my desktop with my wife who has a different login) and is more stable, too.
port is the standard macOS package manager! port is the standard macOS package manager! port is the standard macOS package manager!
Then I used macports. What a nice experience. Provided what I’m after is listen on there!
The tone with which they write that stuff actually makes me not use it - not because it’s not good (it generally is), I just get annoyed reading it.
All I see is, they protect themself from each and every script kiddy that runs to reddit or github when something doesn't work because of their own config issues.
Tcl made some sense ~20 years ago but it’s 2023 and the only time I ever touch it anymore is for MacPorts itself.
[1] https://dortania.github.io/OpenCore-Legacy-Patcher/INSTALLER...
My only advice for someone new to OCLP/unfamiliar with Mac boot loader in general (like me one week ago) is that the OCLP boot screen during setup looks very similar to the native MacOS boot picker and went through four different flash drives trying to follow the instructions thinking it wasn't booting properly from the drive. Look closely at the instruction screenshot to distinguish them.
I run:
$ sudo bash
# port selfupdate && port -u -c upgrade outdated && port reclaim
once a week.
When I upgraded to Ventura (from Big Sur), I followed the instructions for an OS upgrade and everything moved across cleanly.
It installs itself in /opt
It works with MacOS's Frameworks for stuff like python and java.
It allows you to run multiple versions with "port select".
Why would I want to run anything else?
export HOMEBREW_NO_ANALYTICS=1 ./configure && make && sudo make installThere are likely to be more issues related to Apple's switch to the `prime` linker.
(I’m a port contributor and am on macports-users where this issue has come up twice. There is what I think is excessive concern about the macOS beta NDA preventing the creation of a package installer until after GA when it no longer applies. A bigger problem is the availability of sufficient build hardware as they have a smallish Mac mini multi-booting into 11, 12, and 13.)
For instance, installing ripgrep now requires building the latest version of Rust from source, which takes three hours per Rust version; installing Pandoc requires building and storing the whole GHC; etc.
why pay for work when it would've been done for free and apple gets to reap the financial benefits?
I for one, am shocked.
Maintainers of popular free, open source community tool are tired of being asked to support out of date OS.
Colour me even more surprised!
It reminds me of my boss emailing gnu.org to tell them one of their mirrors was down and got a nastygram back that said "It's spelled GNU/Linux" and the mirror went unfixed.
They don't maintain the mirrors themselves. These are maintained by third party who decide to hosts the mirrors so there is that.
Also, Homebrew attempting to nuke /usr/local on uninstall left a quite bad taste in my mouth. I had installed MacTeX before Homebrew, and thankfully MacTeX had proper file permissions set up, so my TeX installation was left in-tact. Still scary knowing that this is just done in the background without warning (unless the operation fails with errors).
I'm sure someone will start a macOS package manager based on python and yum to signal the waning days of those technologies.
But it is unmaintained (it seems its author has moved on to Nix).
Its being in ruby is a strike against it, for me. I use it anyway. It’s probably my favorite package manager, all things considered, and I’ve used a lot.
As for why Homebrew packages seemed to be broken less often, I can only speculate. At least one big benefit it had was being on GitHub. A lot of folks were already familiar with how to cut a PR. Not so with how to submit a Portfile patch to the MacPorts Trac.
But Homebrew's fundamental tradeoff w/r/t purity was also a huge boost to installation speed at a time when most package managers for macOS still required you to build most things from source.
That and the slick, user-friendly UI were probably the biggest factors for Homebrew's success when it came out.
If I could switch entirely to MacPorts, I would.
…Like I said, language X developers want all their tools to be written in language X, and their package systems too.