!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

224 Members
74 Servers

Load older messages


SenderMessageTime
15 Apr 2025
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (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:0upti.meK900Honestly, I don't think we should ever allow that07:46:38
@k900:0upti.meK900The bootstrap tools should be built on clean infra07:46:50
@k900:0upti.meK900We can cross-compile them though07:46:54
@qyliss:fairydust.spaceAlyssa RossThat's the usual process, yeah07:47:01
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)So I can request infra team to generate a tarball for me?07:47:50
@qyliss:fairydust.spaceAlyssa RossNot quite07:47:59
@qyliss:fairydust.spaceAlyssa RossYou add a Hydra job to build it07:48:06
@qyliss:fairydust.spaceAlyssa RossIf there isn't already one07:48:11
@k900:0upti.meK900There's no well established process here07:48:31
@k900:0upti.meK900Adding new targets is not exactly common07:48:36
@qyliss:fairydust.spaceAlyssa RossThere kind of is07:48:37
@qyliss:fairydust.spaceAlyssa RossLet me see if I can find an example07:48:43
@k900:0upti.meK900 Well there is some process 07:48:45
@k900:0upti.meK900But I would not call it well established07:49:28
@qyliss:fairydust.spaceAlyssa RossFirst step is to add your platform to pkgs/stdenv/linux/make-bootstrap-tolos-cross.nix07:57:06
@qyliss:fairydust.spaceAlyssa Ross * 07:57:19
@qyliss:fairydust.spaceAlyssa 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
@qyliss:fairydust.spaceAlyssa RossOnce that's done, your PR can be merged, and we'll have a bootstrap for your platform.08:03:53
@k900:0upti.meK900 I believe @hexa has access now 08:03:59
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)Sure, I'll try that08:11:46
@qyliss:fairydust.spaceAlyssa RossFeel free to request my review on the make-bootstrap-tools-cross.nix PR08:12:42
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (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:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)I don't have any permission on hydra yet08:37:49
@k900:0upti.meK900It should happen automatically with the next channel update08:38:03
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)Oh, I misunderstood that.08:40:06
@qyliss:fairydust.spaceAlyssa RossOh yeah I forgot to actually say that08:43:36
@trofi:matrix.orgtrofiI think https://github.com/NixOS/nixpkgs/tree/master/maintainers/scripts/bootstrap-files#how-to-add-bootstrap-files-for-a-new-target should cover it12:30:53
@rosscomputerguy:matrix.orgTristan 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
@qyliss:fairydust.spaceAlyssa RossIf anybody wants to they're very welcome to adapt my write-up therr14:10:18

Show newer messages


Back to Room ListRoom Version: 9