Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doas: drop patch, use dontAddStaticConfigureFlags instead #236184

Merged
merged 1 commit into from Jun 6, 2023
Merged

doas: drop patch, use dontAddStaticConfigureFlags instead #236184

merged 1 commit into from Jun 6, 2023

Conversation

ghost
Copy link

@ghost ghost commented Jun 6, 2023

Description of changes

The configure script that comes with doas does not understand --disable-shared, which nixpkgs sometimes adds to configureFlags.

Previously, doas included a patch that would cause its configure script to ignore this flag instead of rejecting it. This commit drops that patch and instead uses dontAddStaticConfigureFlags=false (introduced in b0b5ef7) to prevent nixpkgs adding --disable-shared to doas' configureFlags.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • mips64el-linux
    • mips64el-linux32
    • powerpc64le-linux
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

The configure script that comes with doas does not understand
`--disable-shared`, which nixpkgs sometimes adds to
`configureFlags`.

Previously, doas included a patch that would cause its configure
script to ignore this flag instead of rejecting it.  This commit
drops that patch and instead uses
`dontAddStaticConfigureFlags=false` (introduced in
b0b5ef7) to prevent nixpkgs addingn
`--disable-shared` to doas' configureFlags.
Copy link
Member

@cole-h cole-h left a comment

Choose a reason for hiding this comment

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

pkgs.doas and pkgsStatic.doas both build fine, thanks!

@cole-h cole-h merged commit e2c5557 into NixOS:master Jun 6, 2023
@ghost ghost deleted the pr/doas/drop-patch branch January 23, 2024 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant