| 15 Apr 2025 |
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:matrix.org | 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 |
Alyssa Ross | * | 14:10:27 |
emily | isn't that what ^ is? | 14:10:52 |
Tristan Ross | Oh, I'm still waking up and didn't see everything lol | 14:11:37 |
| 16 Apr 2025 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | I've got the first stumbling block | 08:43:59 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | https://github.com/loongson-community/discussions/issues/29 | 08:43:59 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | glibc on loongarch64 doesn't provide a libutil.so but our stdenv-bootstrap-tools requires one | 08:44:51 |
Alyssa Ross | We should be able to just drop that from all bootstrap tools | 08:45:04 |
Alyssa Ross | (All Glibc bootstrap tools) | 08:45:15 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | In reply to @qyliss:fairydust.space We should be able to just drop that from all bootstrap tools But what about the final native glibc on loongarch64? Do we just leave it as is? | 08:47:53 |