Skip to content

Conversation

@corngood
Copy link
Contributor

We don't want to duplicate any of these across libraries, which is what happens when the platform doesn't support unique symbols.

Motivation

Nix on cygwin is broken because the RegisterCommand list is duplicated between nix and libcmd. All subcommands appear to be missing. This works on glibc because the linker uses unique symbols per-process. LTO (which is disabled on cygwin) also has some impact.

Context

See discussion on #13139


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

We don't want to duplicate any of these across libraries, which is what
happens when the platform doesn't support unique symbols.
* to avoid printing "too much" output.
*/
static PrintOptions errorPrintOptions = PrintOptions{
static constexpr PrintOptions errorPrintOptions = PrintOptions{
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just stumbled upon this. It seems to be immutable, but this should cause a compile error if that changes.

Alternatively it could be moved to the library.

@xokdvium xokdvium added backport 2.29-maintenance Automatically creates a PR against the branch backport 2.30-maintenance Automatically creates a PR against the branch backport 2.31-maintenance Automatically creates a PR against the branch backport 2.32-maintenance Automatically creates a PR against the branch labels Nov 13, 2025
@edolstra edolstra removed backport 2.29-maintenance Automatically creates a PR against the branch backport 2.30-maintenance Automatically creates a PR against the branch backport 2.31-maintenance Automatically creates a PR against the branch labels Nov 13, 2025
@Mic92 Mic92 added this pull request to the merge queue Nov 13, 2025
Merged via the queue into NixOS:master with commit af71274 Nov 13, 2025
20 checks passed
@internal-nix-ci
Copy link

Successfully created backport PR for 2.32-maintenance:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 2.32-maintenance Automatically creates a PR against the branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants