!UNVBThoJtlIiVwiDjU:nixos.org

Staging

286 Members
Staging merges | Running staging cycles: https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+is%3Aopen+head%3Astaging-next+head%3Astaging-next-25.05 | Review Reports: https://malob.github.io/nix-review-tools-reports/99 Servers

Load older messages


SenderMessageTime
13 Sep 2025
@emilazy:matrix.orgemilymy one point of hesitation here is, does this break static, and I think the answer is maybe18:22:31
@lt1379:matrix.orgLunoh dear, this is going to involve qemu testing of unusual arches again18:22:32
@emilazy:matrix.orgemilymeh I don't think so18:22:42
@emilazy:matrix.orgemilyit's just a nice way to avoid injecting janky flags18:22:50
@lt1379:matrix.orgLunadding a patch that sets a ppc64 exclusive condition without testing for ppc64?18:23:35
@emilazy:matrix.orgemily the other thing we'd want is an upstreamable GO_PIE_ENABLED or something I suppose 18:23:42
@emilazy:matrix.orgemilyyes, because we know for a fact we can't do PIE on ppc64, because https://github.com/golang/go/blob/master/src/cmd/link/internal/ld/config.go#L221-L22518:24:04
@emilazy:matrix.orgemily the conditional would keep the existing behaviour on ppc64 18:24:08
@emilazy:matrix.orgemily it is just to avoid breaking Puna 18:24:19
@emilazy:matrix.orgemily (and anyway I'm sure we can get Puna to run builds rather than doing QEMU suffering) 18:24:30
@emilazy:matrix.orgemilyFWIW, cases where people would be overriding us: https://github.com/search?q=-linkmode%3Dinternal&type=code18:25:11
@opna2608:matrix.orgPunai can only run the same builds that you can, because my hardware cannot execute golang/go18:25:44
@emilazy:matrix.orgemilyanyway I think this is viable modulo figuring out if it busts static (because it will do PIE and then not link as a static PIE)18:25:55
@emilazy:matrix.orgemilyright, forgot about that 🫠18:26:03
@emilazy:matrix.orgemilydo we need to get you a Raptor or something18:26:10
@emilazy:matrix.orgemily(I think best-effort is fine here anyway)18:26:32
@opna2608:matrix.orgPuna willing to accept donations 18:26:42
@emilazy:matrix.orgemily aloisw: looks like externally linked static builds are "fun" https://github.com/golang/go/issues/26492 18:27:45
@emilazy:matrix.orgemilybut seems doable18:27:52
@emilazy:matrix.orgemilyso I was worried our Go build would be multi-target and we had to handle this natively18:28:25
@emilazy:matrix.orgemilybut lol no it's not18:28:28
@emilazy:matrix.orgemily so actually Lun, you can just skip the conditional inside the PIE patch, and only skip applying it for ppc64 18:28:42
@emilazy:matrix.orgemily and also skip it on stdenv.targetPlatform.isStatic 18:28:58
@aloisw:julia0815.dealoisw That will just give a position-dependent executable right? 18:29:04
@emilazy:matrix.orgemily that and setting GO_EXTLINK_ENABLED at Go compile time should make everything just workâ„¢ 18:29:06
@opna2608:matrix.orgPuna(Debian has also given up on golang/go on powerpc64 though, and switched to gccgo for their default. so iunno how much sense it makes to test that target)18:29:08
@emilazy:matrix.orgemily I guess? supposedly hardeningEnable = [ "pie" ]; breaks pkgsStatic. 18:29:18
@aloisw:julia0815.dealoisw Not great but better than nothing. 18:29:18
@emilazy:matrix.orgemily oh, I guess because it links with -pie? 18:29:23
@emilazy:matrix.orgemily but Go wouldn't link with PIE. 18:29:29

Show newer messages


Back to Room ListRoom Version: 6