!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.orgemily this does mean that -linkmode=internal will produce broken binaries unless you also disable PIE I guess but it doesn't seem like people are really, doing that 19:05:28
@emilazy:matrix.orgemilyI'm also not entirely sure how you would explicitly out of PIE here either but not sure if that will be an issue19:06:09
@emilazy:matrix.orgemilywe'll see. it's worth trying anyway19:06:17
@lt1379:matrix.orgLunhttps://github.com/NixOS/nixpkgs/pull/442510/commits/3f163abc84ddffb2fea646f9fa973b503c13d592 ?19:06:55
@pyrox:pyrox.devdish [Fox/It/She] seems like theres some stuff not in the right namespace so it breaks 19:07:53
@pyrox:pyrox.devdish [Fox/It/She]Download arrow-cpp.log19:07:54
@pyrox:pyrox.devdish [Fox/It/She]attached excerpt from the failed build log19:08:03
@pyrox:pyrox.devdish [Fox/It/She]ahh it truncated a bit hold on19:08:43
@pyrox:pyrox.devdish [Fox/It/She]there we go19:09:09
@pyrox:pyrox.devdish [Fox/It/She]Download arrow-cpp.log19:09:10
@emilazy:matrix.orgemily looks good to me. we should test a normal package on platforms, a package with CGO_ENABLED = 0, syncthing, something pkgsStatic, maybe some WASI thing although I have no idea what 19:09:41
@emilazy:matrix.orgemily my #1 fear is basically just something doing -linkmode=internal explicitly and creating an FHS binary 19:09:53
@emilazy:matrix.orgemily but it doesn't seem like much is doing that 19:10:13
@lt1379:matrix.orgLunI can kick off a bigger rebuild (later) if there's a nice way to select targets that are likely to break based on their attrs like there was for things that explicitly hardeningDisabled pie19:11:22
@emilazy:matrix.orgemilyooh19:11:35
@emilazy:matrix.orgemily Lun: hey sorry I was dumb actually 19:11:48
@emilazy:matrix.orgemilycheck this out https://github.com/golang/go/blob/master/src/internal/platform/supported.go#L224-L25319:11:55
@emilazy:matrix.orgemily actual patch is DefaultPIE on everything but ppc64 19:12:49
@emilazy:matrix.orgemily and we could even make InternalLinkPIESupported do return false 19:13:03
@emilazy:matrix.orgemilyto ensure that we never sielently produce busted PIEs19:13:13
@emilazy:matrix.orgemily (well, and I guess keep the Windows -race case) 19:13:41
@pyrox:pyrox.devdish [Fox/It/She] good ol 'meant to be compatible but isn't in subtle ways', though disabling the support doesn't seem to impact anything(did pyarrow, utf8proc, and gdal builds, and they all work well, so I'm not anticipating any other issues from this change) 19:21:52
@pyrox:pyrox.devdish [Fox/It/She] good ol 'meant to be compatible but isn't in subtle ways', though disabling the support doesn't seem to impact anything(did pyarrow, utf8proc, and gdal builds, and they all work well, so I'm not anticipating any issues from this change) 19:22:37
@lt1379:matrix.orgLunthere being overlapping but not exactly the same checks here and in ld/config.go feels like it implies that that changing both might be needed / there's some subtlety. I'm not at all familiar with this codebase, how sure are you that changing only platform/supported.go is right?19:25:52
@emilazy:matrix.orgemily low, but my understanding is that the thing I originally suggested was for platforms that do not support non-PIE 19:29:01
@emilazy:matrix.orgemily and makes -buildmode=exe the same as -buildmode=pie 19:29:06
@emilazy:matrix.orgemily whereas this determines -buildmode=default 19:29:14
@emilazy:matrix.orgemily so this way we give an opt-out and things that do -buildmode=exe -linkmode=internal will work properly 19:29:27
@emilazy:matrix.orgemily and then by adjusting InternalLinkPIESupported we can ensure we never produce busted FHS executables 19:29:41
@emilazy:matrix.orgemilybut I am far from confident19:29:53

Show newer messages


Back to Room ListRoom Version: 6