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

Replace --suffix-each with multiple --suffix options #445

Merged
merged 1 commit into from
Jun 1, 2022

Conversation

bjornfor
Copy link
Contributor

@bjornfor bjornfor commented May 6, 2022

Since
NixOS/nixpkgs@7f802c7
using --suffix-each in makeWrapperArgs is no longer supported and breaks
like this:

  $ nix-build ./any-mach-nix-env-with-latest-nixpkgs.nix
  [...]
  <stdin>: In function 'main':
  <stdin>:9:6: error: #error makeCWrapper: Unknown argument --suffix-each
  <stdin>:10:6: error: #error makeCWrapper: Unknown argument PATH
  <stdin>:11:6: error: #error makeCWrapper: Unknown argument :
  <stdin>:12:6: error: #error makeCWrapper: Unknown argument
  builder for '/nix/store/41713mrzrqlq12kgfgcx10wmdvmkfh7k-python3-3.9.12-env.drv' failed with exit code 1

So replace it with multiple --suffix args, which the new
makeBinaryWrapper/makeCWrapper program supports (and is compatible with
the old makeWrapper).

Fixes #444.

bjornfor referenced this pull request in NixOS/nixpkgs May 6, 2022
A "python" made with the wrapper is likely to be used as a shebang. On macOS,
this requires a binary rather than another shebang'd script.
Since
NixOS/nixpkgs@7f802c7
using --suffix-each in makeWrapperArgs is no longer supported and breaks
like this:

  $ nix-build ./any-mach-nix-env-with-latest-nixpkgs.nix
  [...]
  <stdin>: In function 'main':
  <stdin>:9:6: error: #error makeCWrapper: Unknown argument --suffix-each
  <stdin>:10:6: error: #error makeCWrapper: Unknown argument PATH
  <stdin>:11:6: error: #error makeCWrapper: Unknown argument :
  <stdin>:12:6: error: #error makeCWrapper: Unknown argument
  builder for '/nix/store/41713mrzrqlq12kgfgcx10wmdvmkfh7k-python3-3.9.12-env.drv' failed with exit code 1

So replace it with multiple --suffix args, which the new
makeBinaryWrapper/makeCWrapper program supports (and is compatible with
the old makeWrapper).

Fixes DavHau#444.
@bjornfor bjornfor force-pushed the adapt-to-make-binary-wrapper branch from d38d5fb to afce970 Compare May 9, 2022 17:33
@tshaynik
Copy link

tshaynik commented May 9, 2022

I was experiencing this same error, and using this PR resolved it for me.

@torx-cz
Copy link

torx-cz commented May 10, 2022

Same here - I was experiencing this same error, and using this PR resolved it for me! Thx!

@tfmoraes
Copy link

It worked for me too.

@bjornfor
Copy link
Contributor Author

@DavHau: Hi, can you merge this please? (mach-nix is currently broken against nixpkgs master, this PR fixes it.)

@YuriAlbuquerqueNextRoll

Also fixes for me.

@AmeerTaweel
Copy link

I was experiencing this same error. Using this PR solved the issue for me.
@DavHau can you merge this please?

@DavHau DavHau merged commit e0a83fd into DavHau:master Jun 1, 2022
@bjornfor bjornfor deleted the adapt-to-make-binary-wrapper branch June 1, 2022 14:25
@bjornfor
Copy link
Contributor Author

bjornfor commented Jun 1, 2022

@DavHau: Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error: makeCWrapper: Unknown argument --suffix-each
7 participants