Bug 1741100

Summary: python2-paste-script fails to install in Fedora 31+
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-paste-scriptAssignee: Andrea <andrea.manzi>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 31CC: andrea.manzi, djc, infra-sig, lewk, rbarlow
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-19 10:56:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1700324, 1690439    

Description Miro Hrončok 2019-08-14 09:13:34 UTC
python2-paste-script-3.1.0-2.fc31.noarch fails to install in Fedora rawhide:

  nothing provides python2-cherrypy needed by python2-paste-script-3.1.0-2.fc31.noarch

This is most likely caused by a dependency that was retired.
Please drop the dependency, unretire the dependency or remove the package. Thanks

Comment 1 Andrea 2019-08-14 09:48:43 UTC
ok i will remove python2-paste-script from rawhide/f31 and keep only python3-paste-script

Comment 2 Andrea 2019-08-19 09:37:02 UTC
i feel a bit stupid:-)

i have tried to modify the spec file  to include the python2 package only in releases <= 30, but i still see the python2 package built

https://koji.fedoraproject.org/koji/buildinfo?buildID=1356940

what is the correct syntax for this?

https://src.fedoraproject.org/rpms/python-paste-script/blob/master/f/python-paste-script.spec

thanks!

Comment 3 Miro Hrončok 2019-08-19 09:55:35 UTC
%if %{?fedora}%{!?fedora:0} <= 30 || %{?rhel}%{!?rhel:0} <= 8


This translates to (on Fedora 32):

 32 <= 30 || 0 <= 8

Or (on RHEL 8):

 0 <= 30 || 8 <= 8


I.e. it is always true.

If you really need a crazy conditions like that, here's how to do it:

%if (0%{?fedora} && (0%{?fedora} <= 30)) || (0%{?rhel} && (0%{?rhel} <= 8))

Comment 4 Andrea 2019-08-19 10:56:48 UTC
thanks!
i have applied the changes both on Rawhide

https://koji.fedoraproject.org/koji/taskinfo?taskID=37149509


and F31

https://koji.fedoraproject.org/koji/taskinfo?taskID=37149816