| 20 Jun 2025 |
emily | you just need loader code that resolves out the interp path and does exec. hopefully. unless that doesn't quite do the right thing in which case you need to load the interp into memory and jump into it, which would be awful | 22:47:17 |
emily | anyway it's definitely prototypeable I think and I've toyed with the idea but it'd take a lot of time and not sure the appetite for the requisite patching would be there in Nixpkgs | 22:47:58 |
John Ericson | I have to leave now, but perhaps the first thing to pay for is some sort of demo to gauge feasibility / unseamliness of hacks | 22:48:05 |
John Ericson |
not sure the appetite for the requisite patching would be there in Nixpkgs
The hope for that is to gameify it a bit with "are we relocatable yet?" etc.
| 22:48:39 |
John Ericson | I am more confident on that part, if the initial prototype works, and it takes less skill to do the patching using previously-invented techniques than come up with the techniques | 22:49:32 |
emily | well the problem is that many ecosystems may extensively use absolute paths | 22:51:45 |
emily | e.g., in rigid non-programmable data formats | 22:51:52 |
emily | so it is possible that it would require extensive patching that would be a maintenance burden for updates, in the case that upstream is not interested in changing that | 22:52:30 |
John Ericson | @emilazy:matrix.org so I view this push as kind of trying to get C libraries for FFI to work | 23:01:19 |
John Ericson | Like make us the go-to way to build the native deps for python packages or whatever | 23:02:13 |
John Ericson | Or static executables | 23:02:46 |
John Ericson | If whole systems a la NixOS fail to relocate, that's not ideal but it doesn't need to be fatal for that use-case | 23:17:33 |
| 22 Jun 2025 |
tobim | Redacted or Malformed Event | 05:05:32 |
tobim | Redacted or Malformed Event | 05:05:33 |
John Ericson | In reply to @emilazy:matrix.org IIRC #!/usr/bin/env -S is not portable wrt macOS so may not be a good solution for shebangs. https://ss64.com/mac/env.html actually the macOS env looks more powerful | 05:57:26 |
John Ericson | Any chance we can get these features in coreutils? | 05:57:44 |
John Ericson | Then we don't need a shim exe, because we can just expand an environment variable | 05:58:07 |
p14 | emily: Tristan Ross: Can we entertain merging [0] as-is since it fixes a regression? The question of providing a "fake libgcc" is something requiring further development/enablement. https://github.com/NixOS/nixpkgs/pull/417354 | 10:44:19 |
p14 | * emily: Tristan Ross: Can we entertain merging [0] as-is since it fixes a regression? The question of providing a "fake libgcc" is something requiring further development/enablement. [0] https://github.com/NixOS/nixpkgs/pull/417354 | 10:44:25 |
p14 | * emily: Tristan Ross: Can we entertain merging [0] as-is since it fixes a regression? The question of providing a "fake static libgcc" is something requiring further development/enablement. [0] https://github.com/NixOS/nixpkgs/pull/417354 | 10:44:32 |
emily | shebangs are parsed differently though | 11:22:11 |
emily | I forget the exact differences | 11:22:16 |
| SomeoneSerge (back on matrix) changed their display name from SomeoneSerge (UTC+U[-12,12]) to SomeoneSerge (Ever OOMed by Element). | 12:12:32 |
| o_________o joined the room. | 13:23:08 |
| 24 Jun 2025 |
| Anton (he/him) joined the room. | 10:43:27 |
| sielicki joined the room. | 22:17:05 |
| 25 Jun 2025 |
emily | tomberek: John Ericson: in re relocatable store https://sourceware.org/bugzilla/show_bug.cgi?id=31959 | 15:13:35 |
emily | does anyone understand better than me why we have both .parsed.cpu.arch and .gcc.arch | 17:45:54 |
emily | like I get that the latter can be a more specific model but we also condition on its existence in canExecute in a way I don't fully understand, and set it for some systems even when it's identical | 17:58:31 |
K900 | gcc.arch is -march I think? | 17:59:43 |