!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

568 Members
124 Servers

Load older messages


SenderMessageTime
18 Oct 2025
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)I believe postmarketOS just applies patches and leaves it at that12:20:31
@qyliss:fairydust.spaceAlyssa Rosswhy is postmarketOS the point of comparison here?12:20:42
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)Actually pmos is just alpine. What foes alpine fo?12:20:52
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) * 12:21:03
@qyliss:fairydust.spaceAlyssa Rossalpine submits a lot of patches upstream12:21:13
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)Why does their entire package set work on musl?12:21:12
@qyliss:fairydust.spaceAlyssa Rossbecause they test it with musl12:21:22
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) * 12:21:30
@qyliss:fairydust.spaceAlyssa Ross remember lots of the stuff you are trying to fix does work with musl, but not with musl+llvm 12:21:38
@qyliss:fairydust.spaceAlyssa Rosswhich nobody has ever cared about until a month or two ago12:21:44
@qyliss:fairydust.spaceAlyssa Ross(in Nixpkgs)12:21:49
@qyliss:fairydust.spaceAlyssa Rossor it does work with musl, but doesn't work with cross compilation to musl, which again isn't something anybody has generally bothered to test12:22:19
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)Okay but in this case, do you think they're shipping mesa with valgrind?12:22:36
@qyliss:fairydust.spaceAlyssa Rosseasy to find out12:22:53
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)Our mesa is super heavy12:23:05
@qyliss:fairydust.spaceAlyssa Rossbut I suspect probably not because Alpine tries to be small12:23:07
@qyliss:fairydust.spaceAlyssa Rossand that means less optional dependencies enabled by default12:23:18
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)Yes so I think there's a happy balance between conditionals and patches, and that not everything has to be an upstream patch12:23:47
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)like in this case valgrind is pretty heavy and maybe not all platforms should include valgrind12:24:04
@qyliss:fairydust.spaceAlyssa Rossif there's a principled criteria for that, sure12:24:18
@qyliss:fairydust.spaceAlyssa Rossbut there's no fundamental reason we should include valgrind for GCC builds and not LLVM ones12:24:44
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)

Sure, my discovery has highlighted two things:

  1. An issue with valgrind that needs to be fixed upstream
  2. Maybe valgrind is really heavy and we don't need it in mesa for all platforms
12:25:44
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)The reason Alpine has things working with mesa across the board is because they're compiling with less deps in general, so we're probably not going to have working musl for years unless we did the same12:26:24
@qyliss:fairydust.spaceAlyssa Rosswe have a "working musl"12:26:36
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)Not always, I know my issue here is LLVM related only, but I've had similar circumstances 12:26:57
@qyliss:fairydust.spaceAlyssa Rossyes, packages are broken sometimes12:27:21
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)Like let's say we want to compile Blender with Musl, alpine seems to have that working, but we probably won't due to our enablement of every dep and feature12:27:24
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)And it may be that upstream patching is needed, but it's also the case that we could just compile a more minimal blender.12:28:13
@qyliss:fairydust.spaceAlyssa Rosswhich you can do with overrides12:28:31
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)Ah okay that's the solution then12:28:39

Show newer messages


Back to Room ListRoom Version: 6