Bug 1215201 - crypto-policies pulls in python through scripts
Summary: crypto-policies pulls in python through scripts
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Pedro Monreal Gonzalez
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-11 09:37 UTC by Ludwig Nussel
Modified: 2023-10-13 14:33 UTC (History)
5 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ludwig Nussel 2023-09-11 09:37:38 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.
Comment 1 Pedro Monreal Gonzalez 2023-09-11 12:48:16 UTC
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?
Comment 2 Ludwig Nussel 2023-09-11 13:02:33 UTC
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
Comment 3 Pedro Monreal Gonzalez 2023-09-15 10:18:51 UTC
I'm adding the @python-maintainers in CC here. Could you suggest what would be best to do here? TIA
Comment 4 Daniel Garcia 2023-09-15 10:33:46 UTC
(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).
Comment 5 Pedro Monreal Gonzalez 2023-09-15 11:00:02 UTC
Thanks, I can then add something like this:

> %if 0%{?primary_python:1}
> Recommends:     crypto-policies-scripts
> %endif
Comment 6 Pedro Monreal Gonzalez 2023-09-15 12:10:49 UTC
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/
Comment 7 Pedro Monreal Gonzalez 2023-10-06 11:19:00 UTC
I'm closing the bug since the fix has been verified and already released.