JuliaPackaging / BinaryBuilder.jl

Binary Dependency Builder for Julia
https://binarybuilder.org
Other
387 stars 99 forks source link

The Road to 1.0 #917

Open staticfloat opened 3 years ago

staticfloat commented 3 years ago

This issue will serve as a roadmap of sorts, a kind of grouping of "accepted feature requests" generated by myself, Mosè, and other concerned parties. While BinaryBuilder.jl already does a fantastic job for many pieces of software, there are things that make it unnecessarily difficult to work with, or that limit it in some ways, and we should address these things as best we can.

BinaryBuilder.jl 1.0 should, in my mind, be ready to put virtually all other ways of compiling software out of business. It should work flawlessly for the Julia ecosystem, but also be usable for other groups as well. It should be feature-complete and well-tested, and have as few hidden performance or and usability warts as possible. We're a good ways toward fulfilling this vision, but I see the following areas as needing improvement before we can truly wash our hands and say that this area is solved:

Build Platform

Build API

JLLs

Other

This will be a living document and get updated as more good ideas come to the foreground.

PallHaraldsson commented 3 years ago

For machines that can support it, we should allow emulation of targets within the build environment via qemu-user-static, wine and darling.

Would this be reliable, where e.g. wine supported? Maybe I'm not up-to-speed on BinaryBuilder, and while I might use wine personally, and it's probably even pretty compatible by now, it's not perfect. Would the result be compromized and some virtual machine with real Windows be better?

giordano commented 3 years ago

Would this be reliable, where e.g. wine supported? Maybe I'm not up-to-speed on BinaryBuilder, and while I might use wine personally, and it's probably even pretty compatible by now, it's not perfect.

Wine is certainly not perfect, but right now we can't run foreign executables at all.

Would the result be compromized and some virtual machine with real Windows be better?

The whole point of this framework is to not have to have access to the target platform and instead have a single environment to build for all the desired platforms.

staticfloat commented 3 years ago

Mosè and I are discussing how best to deal with complex build scenarios involving bootstrapping and canadian crosses and whatnot.

We envision a possible future where we have commands such as bb target $triplet which mounts the necessary compiler shards and sets up the environment such that /workspace/destdir is a symlink which now points to /workspace/destdir.d/$triplet, CC=$triplet-cc, etc....

This would allow hot-swapping between multiple different builds at a time, which is very useful, and also for more convenient interactive exploration.