!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
@k900:0upti.meK900Legacy boot ISO17:23:03
@emilazy:matrix.orgemilywe sure do17:23:14
@emilazy:matrix.orgemily until ElvishJerricco fixes it 17:23:22
@lt1379:matrix.orgLunis there a VM test that boots that legacy ISO?17:24:00
@elvishjerricco:matrix.orgElvishJerricco(hi, I have plans)17:24:06
@elvishjerricco:matrix.orgElvishJerricco nixos/tests/boot.nix 17:24:17
@emilazy:matrix.orgemily aloisw: go build respects GOFLAGS, right? can't we just add -ldflags= to our GOFLAGS? 17:24:51
@elvishjerricco:matrix.orgElvishJerricco specifically nixosTests.boot.bios{Usb,Cdrom} 17:24:59
@emilazy:matrix.orgemily

it's totally unclear to me why we do that stuff in

                flags+=(''${tags:+-tags=$(concatStringsSep "," tags)})
                flags+=(''${ldflags:+-ldflags="''${ldflags[*]}"})
                flags+=("-p" "$NIX_BUILD_CORES")
17:25:03
@lt1379:matrix.orgLunalrighty time to see if i broke the cdrom bootloader17:25:48
@emilazy:matrix.orgemily

Lun: for https://github.com/NixOS/nixpkgs/pull/442510 I think what we want is

  1. Go stuff actually should be in Bash I guess because CGO_ENABLED could be set at runtime, but it should key on that, and it needs to add -linkmode=external to ldflags; and then we need to figure out syncthing (maybe fixable by injecting -ldflags=… into GOFLAGS?), and later in a separate PR we can drop CGO_ENABLED = 0; where it's unnecessary but that's not a blocker

  2. hardening flag docs need updating to not mention pie

  3. treewide drop of hardening{Enable,Disable} for it and we should consider emitting a warning when it is passed after that (can be a separate PR)

17:28:20
@qyliss:fairydust.spaceAlyssa RossPresumably we also need to make sure musl isn't regressing? Since previously adding the pie flag apparently fixed stuff.17:29:11
@lt1379:matrix.orgLunYeah will check some pkgsMusl. pkgsMusl.syncthing is currently broken due to how it adds the pie flag so it seems like it fixed some stuff broke some stuff.17:29:46
@emilazy:matrix.orgemily

linkerd has this dubious thing

    # Necessary for building Musl
    if [[ $NIX_HARDENING_ENABLE =~ "pie" ]]; then
        export GOFLAGS="-buildmode=pie $GOFLAGS"
    fi
17:30:12
@emilazy:matrix.orgemily well we would be doing -buildmode=pie -ldflags=-linkmode=external by default 17:30:31
@emilazy:matrix.orgemily when CGO_ENABLE != 0 17:30:33
@emilazy:matrix.orgemilyso I guess the treewide sweep of those may be necessary to fix dynamic Musl yeah17:30:41
@qyliss:fairydust.spaceAlyssa RossWas it specifically about Go?17:30:42
@emilazy:matrix.orgemilyare we talking about17:31:04
@emilazy:matrix.orgemily
pkgs/by-name/lw/lwan/package.nix
41:  hardeningDisable = lib.optional stdenv.hostPlatform.isMusl "pie";

?

17:31:06
@emilazy:matrix.orgemily that's the only case I know where something is disabling pie for dynamic Musl, and I sort of suspect that it means to say isStatic 17:31:18
@emilazy:matrix.orgemilyhttps://github.com/NixOS/nixpkgs/pull/79970 maybe it was for dynamic17:31:54
@qyliss:fairydust.spaceAlyssa RossI'm talking about us enabling pie by default on musl17:33:14
@qyliss:fairydust.spaceAlyssa Rossbecause it apparently fixed things17:33:17
@qyliss:fairydust.spaceAlyssa Rossif we remove the hardening option, we need to make sure we don't regress whatever that fixed17:33:33
@lt1379:matrix.orgLunwas first set way back in https://github.com/LunNova/nixpkgs/commit/6d531f354155043518a59161f42f24f5918e76ab17:38:28
@emilazy:matrix.orgemilyhttps://github.com/NixOS/nixpkgs/pull/442668 oh no17:48:26
@aloisw:julia0815.dealoisw Yes that is one of the usual symptoms of FHS linker path. 17:49:53
@k900:0upti.meK900
I can't test those rebuilds locally and would like to avoid it unless necessary.

So let's make it everyone else's problem instead got it
17:50:37
@emilazy:matrix.orgemilywell they were explicitly told a split package might be a good idea on the previous PR17:51:29

Show newer messages


Back to Room ListRoom Version: 6