!UNVBThoJtlIiVwiDjU:nixos.org

Staging

315 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/108 Servers

Load older messages


SenderMessageTime
10 Oct 2025
@lt1379:matrix.orgLun attr pkgsCross.wasi32.stdenv.cc to test, cc ris_ 20:00:29
11 Oct 2025
@yuka:yuka.devYureka (she/her)adding libcxxhardeningfast to unsupported_hardening_flags on isWasm might work09:26:31
@yuka:yuka.devYureka (she/her)or should it be isWasi09:26:52
@yuka:yuka.devYureka (she/her) * 09:26:53
@r_i_s:matrix.orgris_holup, why is it enabled at all?10:41:20
@r_i_s:matrix.orgris_ the intention was to only enable it for pkgsExtraHardening 10:41:44
@yuka:yuka.devYureka (she/her)the PR does not mention pkgsExtraHardening?10:43:36
@r_i_s:matrix.orgris_right, but it's not added to the set of default hardening flags10:44:25
@r_i_s:matrix.orgris_ahhhhhhhhh10:45:10
@r_i_s:matrix.orgris_i see10:45:14
@r_i_s:matrix.orgris_ if stdenv.cc's defaultHardeningFlags is undefined 10:45:53
@r_i_s:matrix.orgris_it falls back to "all known hardening flags"10:46:07
@yuka:yuka.devYureka (she/her)And defaultHardeningFlags is set for some platforms but not for wasi?10:46:48
@r_i_s:matrix.orgris_apparently10:47:03
@k900:0upti.meK900There is no way in hell that actually works, right10:47:15
@r_i_s:matrix.orgris_the intention was to have it present for all compilers10:47:18
@k900:0upti.meK900Can we just make that a throw instead10:47:24
@k900:0upti.meK900I really doubt there's actually a world where "enable every single hardening flag we know about" is a sane default10:47:51
@k900:0upti.meK900As much as I maybe would like it to be10:47:55
@r_i_s:matrix.orgris_mmmmmmmmmmmmmaybe?10:47:55
@yuka:yuka.devYureka (she/her) I see the actual list of defaultHardeningFlags is a function arg default in pkgs/build-support/bintools-wrapper/default.nix 10:48:54
@r_i_s:matrix.orgris_i'm open to making it throw, just don't know what else it might break10:48:58
@yuka:yuka.devYureka (she/her)whatever breaks was subtly broken all along10:49:16
@r_i_s:matrix.orgris_mmmmmmmmmmmmmmmaybe10:49:31
@k900:0upti.meK900I'd expect the actual nixpkgs side breakage to be fairly contained10:49:54
@k900:0upti.meK900Maybe just PR it and see what the eval compare says?10:50:02
@yuka:yuka.devYureka (she/her)we just have to figure out why the hell pkgsCross.wasi did not have defaultHardeningFlags10:50:14
@r_i_s:matrix.orgris_this kinda brings me back to "i'm amazed wrapped compilers work for wasm at all"10:51:40
@r_i_s:matrix.orgris_falling back to "all hardening flags", i think, was due to me trying to be minimally intrusive when making an already-major PR and not wanting to default to "no hardening" and be the reason someone didn't realize all their hardening flags have been off for years10:58:34
@r_i_s:matrix.orgris_now that it's separate from the big PR that introduced it, the change to making it hard-fail, on its own, may not be too disruptive10:59:30

Show newer messages


Back to Room ListRoom Version: 6