!UNVBThoJtlIiVwiDjU:nixos.org

Staging

289 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/101 Servers

Load older messages


SenderMessageTime
14 Sep 2025
@emilazy:matrix.orgemily and one for a non-CGO_ENABLED = 0; package 16:58:45
@emilazy:matrix.orgemily I guess just a test that matrixes over {pkgs, pkgsStatic} × {skopeo, clickhouse-backup} and checks "if pkgsStatic, then it's a static non-PIE, otherwise it's a dynamic PIE, and the interpreter is correct" would be ideal 16:59:49
@emilazy:matrix.orgemily could you split up the go-default-pie.patch patch into "support $GO_LDSO" + "PIE by default" too? since the former is more upstreamable than the latter 17:00:13
@emilazy:matrix.orgemily the && buildcfg.DefaultGO_LDSO != "" is strictly redundant fwiw :) but it was redundant before too I suppose 17:00:31
@emilazy:matrix.orgemilyLGTM other than that. maybe we should split this Go stuff up into its own PR since it's a bit disjoint from the more rote "drop the flag and sweep it from the tree"?17:01:27
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)Also tangentially relevant, there is https://github.com/NixOS/nixpkgs/pull/442640 disabling CGO for ppc64 because that is broken. That would be subject of similar considerations17:03:46
@emilazy:matrix.orgemilywe have already been talking extensively about that yes. and the patch handles it17:03:59
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)ah k17:04:04
@emilazy:matrix.orgemilywe're not changing CGO currently17:04:08
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)sorry, should have read more backlog17:04:10
@emilazy:matrix.orgemily Lun: actually we don't actually have to exclude ppc64 now right? 17:04:34
@emilazy:matrix.orgemilybecause it'll use the internal linker17:04:37
@emilazy:matrix.orgemilynothing will change vs. status quo there17:04:42
@emilazy:matrix.orgemilyoh17:05:21
@emilazy:matrix.orgemily no because !InternalLinkPIESupported 17:05:24
@emilazy:matrix.orgemily Lun: how about making the return true instead be return BuildModeSupported("gc", "pie", goos, goarch) 17:07:06
@emilazy:matrix.orgemily they explicitly leave ppc64 out there 17:07:12
@emilazy:matrix.orgemily and it looks like otherwise we'd break e.g. openbsd/amd64 17:07:28
@emilazy:matrix.orgemily er rather making the return goarch != "ppc64" be that instead :) 17:08:44
@emilazy:matrix.orgemilysorry for all the churn here17:11:15
@lt1379:matrix.orgLunThis is starting to feel a bit messy to put in the passthru.tests of go :/17:55:13
@fabianhjr:matrix.orgFabián HerediaReally happy to see several people helping with gcc15 <318:11:33
@emilazy:matrix.orgemily something like let test = { pkgs, attr }: { name = attrName + lib.optionalString pkgs.stdenv.hostPlatform.isStatic "-static"; value = …; }; in // lib.listToAttrs (lib.mapCartesianProduct test { pkgs = [ pkgs pkgsStatic ]; attr = [ "skopeo" "clickhouse-backup" ]; })? 18:18:31
@emilazy:matrix.orgemily…which looks messy but hopefully will be less messy on multiple lines 😅18:18:43
@emilazy:matrix.orgemily * something like let test = { pkgs, attrName }: { name = attrName + lib.optionalString pkgs.stdenv.hostPlatform.isStatic "-static"; value = …; }; in // lib.listToAttrs (lib.mapCartesianProduct test { pkgs = [ pkgs pkgsStatic ]; attrName = [ "skopeo" "clickhouse-backup" ]; })? 18:18:53
@emilazy:matrix.orgemilyI guess the static and non-static ones probably wouldn't share much code so maybe the deduplication there is not worth it18:19:26
@emilazy:matrix.orgemilyputting it in another file is also an option18:19:34
@emilazy:matrix.orgemilywould make it easier to reuse between the two versions18:19:38
@emilazy:matrix.orgemily passthru.tests.linking = callPackage ./test-linking.nix { go = finalAttrs.finalPackage; } or such 18:19:58
@emilazy:matrix.orgemily(well, that's awkward for the static thing…)18:20:13

Show newer messages


Back to Room ListRoom Version: 6