tpm2-tss: remove shadow dependency#317786
Conversation
|
@baloo, gentle ping. You’ve approved these changes on the original PR (#317651 (review)), are you still OK with them? |
|
Ha, I missed that notification sorry. Thanks for the ping. |
|
Would you mind changing the |
This PR is for building tmp2-tss for Linux on macOS, e.g. I’m not really sure if it builds for macOS as-is after this change, I’ll try building tpm2-tss once my macOS builder finishes building another PR. |
|
Ha good point. Sorry I got a bit too excited haha. |
|
Yes, I don’t think tpm2-tss supports macOS. It’s trivial to convince build system to actually build for macOS, but the code uses There seems to be an upstream issue for macOS support, tpm2-software/tpm2-tss#2629 |
|
@JohnRTitor, hi, can you take a look at this please (and hopefully merge if everything is OK)? |
|
Thanks for the review request, however as I am not knowledgeable in this topic, I am not confident that replacing this with a dummy package won't cause any issues. If in future the package ends up relying more on this dependency, this change would break the package then. I'll let others handle this. |
da476e0 to
447698e
Compare
Fixes `tpm2-tss (cross-)build on macOS since shadow package is Linux-specific and therefore cannot be used in nativeBuildInputs.
447698e to
79581b8
Compare
|
I’ve removed the need for dummy package by converting relevant AC_MSG_ERROR to AC_MSG_WARN in configure.ac (see #317786 (comment)). As pointed out in #317786 (comment), this is already a warning instead of an error at install phase, so it shouldn’t be an error at configure phase. |
|
At a glance the patch looks like something worth trying to upstream. |
|
Totally agreed, it somewhat seems like a bug. |
Description of changes
Fixes
tpm2-tss(cross-)build on macOS since shadow package is Linux-specific and therefore cannot be used in nativeBuildInputs.Split from #317651
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.