-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
pythonPackages.libarcus: use pkgs.protobuf as input #56696
Conversation
@GrahamcOfBorg build python3.pkgs.libarcus |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move protobuf from propagatedBuildInputs
to buildInputs
.
This should be backported to |
@dotlambda If I move protobuf to buildInputs,
Adding protobuf in curaengine's buildInputs explicitly while protobuf is in libarcus' buildInputs also works, are you suggesting doing so? I think it's more elegant to add just libarcus on packages and the latter to use libarcus CMake library to get protobuf, but we are talking about 2 packages currently relying on libarcus (curaengine and uranium, which is actually used to build cura). |
Yes, definitely. |
I think we should instead add back pkgs.protobuf to propagatedNativeBuildInputs for pythonPackages.protobuf. This recent change has broken more than libarcus -- python3Packages.trezor is also broken. |
Actually this failure is not fixed with pkgs.protobuf in propagatedNativeBuildInputs -- different root cause from the python3Packages.trezor problem. I'll file a separate PR. |
@delroth as you said, 5c75318 did not fix the problem with libarcus. @dotlambda I have made the requested changes, could you review and tell me if something more is needed? |
This commit makes pkgs.protobuf the input for libarcus, since the latter searches for the native protobuf library and not for the Python module.
@GrahamcOfBorg build python2.pkgs.libarcus python3.pkgs.libarcus curaengine |
Motivation for this change
Cura was not building because of libarcus.
Since 5c75318 the protobuf Python module does not have protobuf library as a propagated build input.
This commit makes pkgs.protobuf the input for libarcus, since the latter
searches for the native protobuf library and not for the Python module.
I have tested this by building and running Cura.
/cc @FRidh
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)