26 Jul 2025 |
dramforever | meanwhile we're just unknown | 12:43:07 |
dramforever | i don't know what debian did but their "cross" prefix just does not have the vendor | 12:43:28 |
dramforever | but that means the "full" "triple" has unknown right | 12:43:46 |
27 Jul 2025 |
| @nullcube:matrix.org left the room. | 02:11:53 |
28 Jul 2025 |
| ytr set a profile picture. | 10:06:40 |
p14 | In reply to @qyliss:fairydust.space aarch64-pc-linux-gnu or aarch64-redhat-linux-gnu would probably work :P & K900: just wanted to share that to my surprise, switching out the vendor does appear to have worked for non-trivial software. 👍🏻
Was fully expecting to hit the breakage K900 foresaw… | 12:48:26 |
p14 | Main limiting factor is that you have to set it to a value nix knows about, so for now I am using pc but it would be great if I could set it to whatever I wanted. | 12:49:05 |
p14 | Is it possible to extend the vendor set in lib/systems/parse.nix, I wonder 🤔 | 12:51:49 |
Alyssa Ross | I am slowly warming to the "set it to a hash" idea the more I think about it | 12:57:47 |
Alyssa Ross | John Ericson have you seen my horrible idea | 12:57:59 |
John Ericson | nope | 12:58:50 |
John Ericson | something for the vendor? | 12:59:10 |
Alyssa Ross | So you know how autoconf thinks cross compilation is only when build and host triples differ? | 12:59:13 |
John Ericson | oh lol | 12:59:20 |
Alyssa Ross | And you also know how the vendor portion of the triple doesn't do anything useful? | 12:59:25 |
Alyssa Ross | What if we set the vendor component for the host to some hash of the host system | 12:59:42 |
Alyssa Ross | (Possibly only when cross compiling) | 12:59:50 |
John Ericson | ah but the point of this would be to cross-compile always? | 13:00:05 |
Alyssa Ross | Well it would be to cross-compile whenever we think we're cross compiling | 13:00:24 |
Alyssa Ross | Not necessarily always | 13:00:27 |
Alyssa Ross | It's up to us whether we do it for lib.systems.equals stdenv.buildPlatform stdenv.hostPlatform or not. | 13:00:39 |
dramforever | when currently localPlatform.config == crossPlatform.config but lib.systems.equals localPlatform crossPlatform it's cross but autotools doesn't think it is | 13:01:03 |
John Ericson | it could just be foo-build-bar, baz-host-quux too, right? | 13:01:04 |
Alyssa Ross | To start with at least I'd say we don't. | 13:01:05 |
John Ericson | no need for actual hash | 13:01:08 |
dramforever | hmm | 13:01:15 |
Alyssa Ross | In reply to @Ericson2314:matrix.org it could just be foo-build-bar, baz-host-quux too, right? What do you do when those shift in a later build though? Now they're named wrong. | 13:01:33 |
John Ericson | ideally they would not persist to a later build | 13:01:59 |
dramforever | it is what nixpkgs currently calls local and cross though | 13:01:59 |
John Ericson | build should def not persist | 13:02:17 |