!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

188 Members
59 Servers

Load older messages


SenderMessageTime
20 Jun 2025
@Ericson2314:matrix.orgJohn EricsonI was scrolling around and didn't see it yet22:44:14
@Ericson2314:matrix.orgJohn Ericsonwith the static PIE?22:45:56
@Ericson2314:matrix.orgJohn Ericsonthat does sound nice22:46:14
@Ericson2314:matrix.orgJohn EricsonI'm hoping if we actually do it, we can petition POSIX to standardize more $ORIGIN22:46:42
@Ericson2314:matrix.orgJohn Ericsonso the cure gets better, longer term22:46:51
@emilazy:matrix.orgemily 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
@emilazy:matrix.orgemilyanyway 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 Nixpkgs22:47:58
@Ericson2314:matrix.orgJohn EricsonI have to leave now, but perhaps the first thing to pay for is some sort of demo to gauge feasibility / unseamliness of hacks22:48:05
@Ericson2314:matrix.orgJohn 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
@Ericson2314:matrix.orgJohn EricsonI 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 techniques22:49:32
@emilazy:matrix.orgemilywell the problem is that many ecosystems may extensively use absolute paths22:51:45
@emilazy:matrix.orgemilye.g., in rigid non-programmable data formats22:51:52
@emilazy:matrix.orgemilyso 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 that22:52:30
@Ericson2314:matrix.orgJohn Ericson @emilazy:matrix.org so I view this push as kind of trying to get C libraries for FFI to work 23:01:19
@Ericson2314:matrix.orgJohn EricsonLike make us the go-to way to build the native deps for python packages or whatever23:02:13
@Ericson2314:matrix.orgJohn EricsonOr static executables23:02:46
@Ericson2314:matrix.orgJohn EricsonIf whole systems a la NixOS fail to relocate, that's not ideal but it doesn't need to be fatal for that use-case23:17:33
22 Jun 2025
@tobim:matrix.orgtobimRedacted or Malformed Event05:05:32
@tobim:matrix.orgtobimRedacted or Malformed Event05:05:33
@Ericson2314:matrix.orgJohn 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
@Ericson2314:matrix.orgJohn EricsonAny chance we can get these features in coreutils?05:57:44
@Ericson2314:matrix.orgJohn EricsonThen we don't need a shim exe, because we can just expand an environment variable05:58:07
@p14:matrix.orgp14 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:matrix.orgp14 * 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:matrix.orgp14 * 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
@emilazy:matrix.orgemilyshebangs are parsed differently though11:22:11
@emilazy:matrix.orgemilyI forget the exact differences11:22:16
@ss:someonex.netSomeoneSerge (Ever OOMed by Element) changed their display name from SomeoneSerge (UTC+U[-12,12]) to SomeoneSerge (Ever OOMed by Element).12:12:32
@o_________o:matrix.orgo_________o joined the room.13:23:08
24 Jun 2025
@anton:gersthof.comAnton joined the room.10:43:27

Show newer messages


Back to Room ListRoom Version: 9