Skip to content

doas: drop patch, use dontAddStaticConfigureFlags instead#236184

Merged
cole-h merged 1 commit intomasterfrom
unknown repository
Jun 6, 2023
Merged

doas: drop patch, use dontAddStaticConfigureFlags instead#236184
cole-h merged 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@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.
@ofborg ofborg bot requested review from cole-h and cstrahan June 6, 2023 02:20
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Jun 6, 2023
Copy link
Copy Markdown
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

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant