!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

901 Members
For people hacking on the Nix package manager itself189 Servers

Load older messages


SenderMessageTime
27 Nov 2024
@emilazy:matrix.orgemilydoesn't work for the ELF interpreter.06:39:21
@emilazy:matrix.orgemilyso you need your own bootstrap startup code to load a relative ELF interpreter.06:39:38
@Ericson2314:matrix.orgJohn Ericsonmmm06:40:01
@Ericson2314:matrix.orgJohn Ericsonwell, how much breaks if we use FHS interpreter heh06:40:12
@Ericson2314:matrix.orgJohn Ericsonit can still be the right thing within builds thanks to namespacing06:40:21
@emilazy:matrix.orgemily well, you'd break nix-ld for one thing 06:40:39
@emilazy:matrix.orgemily anyway I don't think relocatable store is practically achievable in Nixpkgs – we were just talking about glibc relying on self-reference and having a circular dependency with bash etc.; it's a nice moonshot idea but it would break so, so many packages and require quite extensive patching 06:40:45
@emilazy:matrix.orgemily certainly deploying ca-derivations for aarch64-darwin could not depend on that, I think, unless you want to delay it for years :) 06:41:11
@Ericson2314:matrix.orgJohn Ericsondoes the signature have to be adjacent?06:41:40
@emilazy:matrix.orgemilymy preference is for (3) because I want Hydra to be able to do actual full-blown macOS code signing, and making that solution work would pave the way towards that06:41:44
@emilazy:matrix.orgemilywhich would allow us to ship macOS GUI apps to users that don't have scary warnings on startup and can use functionality gated on entitlements that we currently have no way of delivering06:42:05
@emilazy:matrix.orgemily
In reply to @Ericson2314:matrix.org
does the signature have to be adjacent?
the hash (or signature) is embedded directly in the executable
06:42:25
@Ericson2314:matrix.orgJohn EricsonOK06:42:32
@emilazy:matrix.orgemilyin particular (3) is nice because it applies even when there's not rewriting going on06:42:55
@Ericson2314:matrix.orgJohn Ericsontbh I would ship linux-only CA first06:42:59
@emilazy:matrix.orgemilyit's a generic solution that happens to help solve the rewriting problem06:43:01
@Ericson2314:matrix.orgJohn Ericsonnot cause I hate mac06:43:04
@emilazy:matrix.orgemilyI agree, that's a good idea06:43:08
@Ericson2314:matrix.orgJohn Ericsonbut because incentives06:43:09
@emilazy:matrix.orgemilyI just wanted to flag up that there is going to have to be actual substantial design and implementation work to make it work for Darwin :)06:43:22
@Ericson2314:matrix.orgJohn EricsonI was very pleasantly surprised how good crowd-sourcing cross support went06:43:34
@emilazy:matrix.orgemilyI think that work will make things better as a whole because it lets you handle other edge-cases and brings other non-CA benefits to Darwin, but – it's still work06:43:46
@Ericson2314:matrix.orgJohn Ericson
In reply to @emilazy:matrix.org
I just wanted to flag up that there is going to have to be actual substantial design and implementation work to make it work for Darwin :)
yes and thanks for doing so!
06:43:47
@Ericson2314:matrix.orgJohn Ericson
In reply to @Ericson2314:matrix.org
I was very pleasantly surprised how good crowd-sourcing cross support went
So I am just curious how far we can get patching things to avoid self-references if it is properly gamified, etc.
06:44:31
@Ericson2314:matrix.orgJohn Ericsonif we wait for elaborate workarounds (which I know you aren't proposing) we'll never find out06:46:01
@emilazy:matrix.orgemilymy sense is that it will cause far more pushback than cross b/c far less immediate tangible benefit, far more invasive patching in some cases, and things that don't work with cross are considered in some sense broken whereas self reference is not so obviously illegitimate06:48:20
@emilazy:matrix.orgemilyalso b/c making sure everything is fixed to absolute paths is very long-standing Nixpkgs convention and this turns that on its head06:48:43
@andiandi:tchncs.deandiandi 🐈 changed their display name from andiandi to andiandi 📞 4690@38C3.11:04:01
@andiandi:tchncs.deandiandi 🐈 changed their display name from andiandi 📞 4690@38C3 to andiandi 📌 38C3 📞 4690.11:05:02
@Ericson2314:matrix.orgJohn EricsonOtoh people will be really excited about being able to unzip something in their home directories and it just works14:59:16

Show newer messages


Back to Room ListRoom Version: 6