Bugzilla – Bug 1215201
crypto-policies pulls in python through scripts
Last modified: 2023-10-13 14:33:28 UTC
crypto-policies recommends crypt-policies-scripts which in turn pulls in python. That is sometimes the only reason for python in minimal systems, making the size significantly bigger. How about either not recommending the scripts subpackage or making the depenceny conditional on presence of python? Ie only install if both crypto-policies and python are already in the transaction/installed.
I think in those cases we could skip recommending the scripts package. Do you know how to reliably check for python availability for that scenario? Maybe checking some python macro?
I think there is no python3 package, only some python3 providers. Not sure if that works with conditional dependencies. If it doesn't work maybe time to talk to the python maintainers
I'm adding the @python-maintainers in CC here. Could you suggest what would be best to do here? TIA
(In reply to Ludwig Nussel from comment #2) > I think there is no python3 package, only some python3 providers. Not sure > if that works with conditional dependencies. If it doesn't work maybe time > to talk to the python maintainers There is the %primary_python macro defined at project level that points to the system python, that's the name of the package that provides python3 (python311 in tumbleweed, python3.6 in SLES).
Thanks, I can then add something like this: > %if 0%{?primary_python:1} > Recommends: crypto-policies-scripts > %endif
Ludwig, could you check if the change from comment#5 works for your setup? You can find the built packages here: * https://download.opensuse.org/repositories/home:/pmonrealgonzalez:/branches:/security:/tls/openSUSE_Tumbleweed/noarch/
I'm closing the bug since the fix has been verified and already released.