| 15 Apr 2025 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | I want to provide a bootstrap tarball for loongarch64-unknown-linux-gnu, do I have to provide anything to prove the tarball is clean? | 07:45:37 |
K900 | Honestly, I don't think we should ever allow that | 07:46:38 |
K900 | The bootstrap tools should be built on clean infra | 07:46:50 |
K900 | We can cross-compile them though | 07:46:54 |
Alyssa Ross | That's the usual process, yeah | 07:47:01 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | So I can request infra team to generate a tarball for me? | 07:47:50 |
Alyssa Ross | Not quite | 07:47:59 |
Alyssa Ross | You add a Hydra job to build it | 07:48:06 |
Alyssa Ross | If there isn't already one | 07:48:11 |
K900 | There's no well established process here | 07:48:31 |
K900 | Adding new targets is not exactly common | 07:48:36 |
Alyssa Ross | There kind of is | 07:48:37 |
Alyssa Ross | Let me see if I can find an example | 07:48:43 |
K900 | Well there is some process | 07:48:45 |
K900 | But I would not call it well established | 07:49:28 |
Alyssa Ross | First step is to add your platform to pkgs/stdenv/linux/make-bootstrap-tolos-cross.nix | 07:57:06 |
Alyssa Ross | * | 07:57:19 |
Alyssa Ross | Once that's done, the bootstrap tarball needs to be uploaded to tarballs.nixos.org. To do that, open a draft PR adding the bootstrap tarball in pkgs/stdenv/linux/bootstrap-files, then fill in the form as used on https://github.com/NixOS/nixpkgs/pull/283492 (everything after "So, following the script established by previous bootstrap tools updates:"). Then you need to get somebody who has access to S3 to reproduce and upload the tarball. In the past that's been lovesegfault — not sure whether anybody else can do it now.
| 08:03:23 |
Alyssa Ross | Once that's done, your PR can be merged, and we'll have a bootstrap for your platform. | 08:03:53 |
K900 | I believe @hexa has access now | 08:03:59 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | Sure, I'll try that | 08:11:46 |
Alyssa Ross | Feel free to request my review on the make-bootstrap-tools-cross.nix PR | 08:12:42 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | In reply to @qyliss:fairydust.space
Once that's done, the bootstrap tarball needs to be uploaded to tarballs.nixos.org. To do that, open a draft PR adding the bootstrap tarball in pkgs/stdenv/linux/bootstrap-files, then fill in the form as used on https://github.com/NixOS/nixpkgs/pull/283492 (everything after "So, following the script established by previous bootstrap tools updates:"). Then you need to get somebody who has access to S3 to reproduce and upload the tarball. In the past that's been lovesegfault — not sure whether anybody else can do it now.
So I still have to build the first tarball on hydra? | 08:37:37 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | I don't have any permission on hydra yet | 08:37:49 |
K900 | It should happen automatically with the next channel update | 08:38:03 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | Oh, I misunderstood that. | 08:40:06 |
Alyssa Ross | Oh yeah I forgot to actually say that | 08:43:36 |
trofi | I think https://github.com/NixOS/nixpkgs/tree/master/maintainers/scripts/bootstrap-files#how-to-add-bootstrap-files-for-a-new-target should cover it | 12:30:53 |
Tristan Ross | In reply to @qyliss:fairydust.space Once that's done, your PR can be merged, and we'll have a bootstrap for your platform. Might not be a bad idea to formalize the documentation on that for easier future reference. | 14:09:26 |
Alyssa Ross | If anybody wants to they're very welcome to adapt my write-up therr | 14:10:18 |