23 Aug 2024 |
aktaboot | thanks I guess rust-overlay fits what I am looking for :) | 17:59:20 |
damccull | If I cargo build on a nixos system, I'm getting an exe with the wrong interpreter for a regular system...I think...how do I tell nix build to build it for a regular system so I can copy over to one of those? | 22:04:13 |
24 Aug 2024 |
K900 | You can't really | 03:35:48 |
K900 | And it's not guaranteed to work properly anyway because of glibc symbol versioning nonsense | 03:36:04 |
K900 | If you want a portable binary, build it fully static with musl | 03:36:19 |
| cafkafk changed their profile picture. | 07:02:12 |
Ralith | does musl have dlopen these days? | 19:49:52 |
K900 | It does but why | 19:50:35 |
Ralith | I guess more importantly, what happens when you dlopen something that links the host libc? | 19:52:00 |
K900 | Kaboom | 19:53:03 |
Ralith | aw :( | 19:53:09 |
K900 | As expected | 19:53:10 |
Alyssa Ross | It doesn't work | 19:53:10 |
Ralith | still no graphics in static binaries then | 19:53:18 |
emily | cough libcapsule | 19:53:54 |
Ralith | spicy | 19:58:09 |
Ralith | (the libcapsule README is a pretty good in-depth answer to "but why", if anyone is still confused) | 19:58:53 |
emily | I genuinely think we should use libcapsule to obsolete nixGL. | 20:17:42 |
emily | and maybe even also to fix the whole running graphical programs from an old NixOS thing. | 20:17:56 |
emily | I just sort of bring it up periodically to try and nerd-snipe someone who isn't me into trying it. | 20:18:30 |
K900 | libcapsule is hard for arbitrary things | 20:24:15 |
emily | I did see that it apparently claims it doesn't handle separate libcs? | 20:38:18 |
emily | which is pretty sad. | 20:38:21 |
emily | (…couldn't we just load the host GPU drivers in a separate process and carry the glvnd ABI across IPC?) | 20:39:27 |
emily | (I guess it'd require a good amount of bookkeeping to share the right bits of memory) | 20:39:44 |
Ralith | feasible in principle | 23:40:33 |
Ralith | a custom vulkan loader, too | 23:41:23 |
emily | how hard can it be | 23:43:48 |
Ralith | mostly just tedious, I think | 23:52:03 |
Ralith | that's why you'd have to pay me :P | 23:52:09 |