!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

234 Members
75 Servers

Load older messages


SenderMessageTime
15 Nov 2024
@p14:matrix.orgp14But it's only a warning right now so not especially motivated to fix a single package.09:20:22
@p14:matrix.orgp14Though, is this the kind of thing that can even be done treewide? :hmm:09:20:39
@emilazy:matrix.orgemilythat was just being talked about in the dev room09:21:41
@p14:matrix.orgp14 Failing at first hurdle here emily - I was under the impression nostdinc was somehow conditioned on the target, or that darwin had a fix for it somehow, but I see it unconditionally here: https://github.com/NixOS/nixpkgs/blob/52bf1163fadb7ee5e21ee0b8e5cf266acb3e74e9/pkgs/development/compilers/llvm/common/default.nix#L533 09:21:52
@emilazy:matrix.orgemily I think yes as long as the people who do it actually show up to the staging-next cycle to fix everything 09:22:00
@emilazy:matrix.orgemilybecause there'll be a lot to fix09:22:05
@emilazy:matrix.orgemily
In reply to @p14:matrix.org
Failing at first hurdle here emily - I was under the impression nostdinc was somehow conditioned on the target, or that darwin had a fix for it somehow, but I see it unconditionally here: https://github.com/NixOS/nixpkgs/blob/52bf1163fadb7ee5e21ee0b8e5cf266acb3e74e9/pkgs/development/compilers/llvm/common/default.nix#L533
that commit is before the staging-next merge from ~yesterday
09:22:51
@emilazy:matrix.orgemilywhich is where I added the conditional09:22:56
@emilazy:matrix.orgemily(to unbreak Darwin stuff)09:23:01
@p14:matrix.orgp14Gotcha.09:23:03
@emilazy:matrix.orgemilyFWIW, the condition is Darwin host and Darwin target, but we can probably relax that to Darwin target.09:23:21
@emilazy:matrix.orgemilythere's some iffiness around using the compiler outside the sandbox without an SDK to do Linux-to-Darwin cross but… eh…09:23:40
@emilazy:matrix.orgemilyLinux-to-Darwin cross doesn't even work yet for one09:23:56
@emilazy:matrix.orgemilyand when it does the divergence will become annoying09:24:00
@p14:matrix.orgp14https://matrix.to/#/!ayCRiZriCVtuCUpeLp:nixos.org/$qpO1aqKQfb-3zGKi_wHlLgQ-nCND4chY_Tc5kHQHqNQ?via=nixos.org&via=matrix.org&via=tchncs.de was just asking about linux-to-darwin cross. I was under the impression it isn't possible. Is there a way?09:24:29
@emilazy:matrix.orgemilyI'll reply there :)09:25:03
@p14:matrix.orgp14
In reply to @emilazy:matrix.org
should maybe just send this to staging so you can do the --replace-fail thing?
I sent this as a separate patch. https://github.com/NixOS/nixpkgs/pull/356120
09:52:50
@p14:matrix.orgp14Currently untested while I await a bunch of staging to build. Is there some automated on-PR testing available?09:53:30
@emilazy:matrix.orgemily don't you mean --replace-fail '--replace ' '--replace-fail '? 09:54:56
@emilazy:matrix.orgemily
In reply to @p14:matrix.org
Currently untested while I await a bunch of staging to build. Is there some automated on-PR testing available?
ofborg does build staging PRs.
09:55:05
@emilazy:matrix.orgemilyI'd be happy to just hit the button on this though.09:55:27
@emilazy:matrix.orgemily I'm going to bootstrap a Darwin stdenv on the latest staging in the next day or so. 09:55:36
@emilazy:matrix.orgemilyso if it breaks I know who to complain to09:55:44
@emilazy:matrix.orgemilythis will break the Git LLVM without that other PR, though, right?09:55:51
@emilazy:matrix.orgemilythose test failures didn't seem like they ought to be related to me09:55:57
@p14:matrix.orgp14Agree with everything you said.09:56:09
@emilazy:matrix.orgemily
In reply to @p14:matrix.org
Currently untested while I await a bunch of staging to build. Is there some automated on-PR testing available?
another thing you can/should do is base your PR on git merge-base upstream/master upstream/staging
09:56:26
@emilazy:matrix.orgemily which lets you target staging but get master amounts of rebuilds for testing 09:56:38
@emilazy:matrix.orgemily (of course you don't test its combination with other staging changes but it's better than nothing) 09:56:54
@p14:matrix.orgp14It doesn't apply on that unfortunately09:57:03

Show newer messages


Back to Room ListRoom Version: 9