News for hackers. Stuff that matters.
Re:Homebrew 2.0.0 released by _em6m on Saturday February 02, 2019 @10:13AM (#19063359)
Maybe ask the question the other way around. Why should they keep compiling everything from source? What are the benefits?
Re:Homebrew 2.0.0 released by bobwaycott on Saturday February 02, 2019 @10:33AM (#19063473)
Well, for one, as a longtime brew user, changing to binary packages alters the trust model.
Re:Homebrew 2.0.0 released by devzer0 on Thursday February 07, 2019 @11:52PM (#19111645)
Binaries are built on CI infra with logs that are publicly available and with all the source code doing the builds publicly available. Effectively the same process as local, from source builds. The bottle DSL ensures that the SHA binaries are not tampered with between when they were built (and the source code sha checked) and when they are delivered.

I know this is still a different trust model, but, IMO, not too different.

I know reproducible builds are on the radar for Homebrew in the future, and that should ease some of your concerns too.

For a good thread on Homebrew security checkout https://twitter.com/c_pellegrino/status/1093195802871246848

Re:Homebrew 2.0.0 released by bobwaycott on Friday February 08, 2019 @12:09AM (#19111722)
Hey! Thanks for the reply. I’ll definitely check that link out. It’s really nice to know more about the process behind delivering binaries.
Re:Homebrew 2.0.0 released by eslaught on Saturday February 02, 2019 @10:42AM (#19063528)
Compare to e.g. conda, where you get binary packages and no option to build from source at all. This basically means you get support for x86 and very limited support for PPC. Need ARM? Nope, no can do. Or any other slightly exotic architecture.

It also means, though this is only a problem with third party channels, that it's possible to get into a situation where you can't even build from source at all. I was working with one of our custom packages, where for the life of me I could not figure out how to get the build to work. Turns out it had been hardcoded to run on a very specific machine, and assumed access to a very specific network file system, and I wasted about a week of my life trying to untangle those assumptions before giving up. If that software had been designed from the beginning with the idea that it ought to be possible to build from source from anywhere, we'd presumably be in a different situation now.

Re:Homebrew 2.0.0 released by kalefranz on Saturday February 02, 2019 @11:02AM (#19063646)
Conda has support for armv7 via berryconda.
Re:Homebrew 2.0.0 released by eslaught on Saturday February 02, 2019 @04:24PM (#19065806)
Interesting, good to know. I'm guessing third party channel support is probably close to nil though, so for my use case it probably wouldn't get me very far.
Re:Homebrew 2.0.0 released by black-tea on Saturday February 02, 2019 @10:29AM (#19063456)
You get native binaries, can choose optional features and dependencies and you can easily apply your own choice of patches. That's my view as a gentoo user anyway; I don't know how much of that homebrew actually supports.
Re:Homebrew 2.0.0 released by saagarjha on Saturday February 02, 2019 @10:32AM (#19063471)
Homebrew used to support optional features, but is now moving away from this to become a binary package manager.
Re:Homebrew 2.0.0 released by h1d on Sunday February 03, 2019 @10:55AM (#19070244)
At least it should no longer take a night to compile some GUI app like back in the days.
Re:Homebrew 2.0.0 released by ninkendo on Saturday February 02, 2019 @11:36AM (#19063878)
What does “native binary” mean?
Re:Homebrew 2.0.0 released by black-tea on Sunday February 03, 2019 @03:24AM (#19068438)
Compilers like GCC can produce code specifically for your CPU such that it uses all of the special features you might have like SSE, AVX etc. When binaries are made for general use they have to be compiled with a generic feature set so might not make best use of your CPU.
Re:Homebrew 2.0.0 released by ninkendo on Sunday February 03, 2019 @06:04AM (#19068945)
So can a cross compiler, no?
Re:Homebrew 2.0.0 released by black-tea on Monday February 04, 2019 @09:15AM (#19076482)
If you know the exact flags for your CPU then you can compile for it on any other CPU using a cross compiler line GCC, yes. But that doesn't help because in practice you'll just find one binary per architecture, not per CPU.
Re:Homebrew 2.0.0 released by michaericalribo on Saturday February 02, 2019 @02:38PM (#19065139)
Compiled locally, so (posssibly) optimized for better performance than a generic binary compiled for your architecture.