Bug 32386

Summary: {Update request} Update Python3 to 3.12 to ease the possibility to update rpmlint
Product: Mageia Reporter: Kristoffer Grundström <lovaren>
Component: New RPM package requestAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: Normal CC: lewyssmith, marja11, yvesbrungard
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
URL: https://fedora.pkgs.org/38/fedora-updates-x86_64/rpmlint-2.4.0-6.fc38.noarch.rpm.html
Whiteboard:
Source RPM: python3.10, rpmlint-1.11-7.mga9.src.rpm CVE:
Status comment:

Description Kristoffer Grundström 2023-10-13 20:20:06 CEST
Description of problem: I see that Fedora when they updated rpmlint to 2.4 they also updated python3 to 3.11 for fc38 and 3.12 for rawhide. Can we please update Python to at least 3.11 since we already have 3.10?

Version-Release number of selected component (if applicable): 3.11

How reproducible: All the time.

Steps to Reproduce:
1. Download the rpmlint src.rpm for fc38 and open the spec file.
2. The spec file states to use 
3. At the bottom in the changelog you see this:

* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 2.2.0-4
- Rebuilt for Python 3.11
Comment 1 Kristoffer Grundström 2023-10-13 20:25:12 CEST
In order to build the package we also need to add the macro called %generate_buildrequires.
Comment 3 Lewis Smith 2023-10-13 21:07:18 CEST
This request to update Python3 looks to be just to update rpmlint. You say that needs the extra macro in comment 1. Is this update necessary? rpmlint is something very stable.
Updating Python3 would be a major exercise; I suspect (perhaps wrongly) entailing rebuilding vast numbers of packages.

What is your real interest here? It is true that our version 1.11 (Jan 2019) of rpmlint looks dated compared to the latest 2.4 (Oct 2022). But the project page says simply:
"For installation on your machine you will need the following packages:
Mandatory:
    Python 3.8 or newer
..."

Where did you dig up the extra requirement for the macro called %generate_buildrequires ?

CC: (none) => lewyssmith
Source RPM: python3 => python3.10, rpmlint-1.11-7.mga9.src.rpm

Comment 4 katnatek 2023-10-21 19:14:24 CEST
rpmlint 2.4.0 can be built with current python3.10 https://bugs.mageia.org/show_bug.cgi?id=30427#c13, will be good if cauldron have more recent python but is  not necessary to build rpmlint 2.4.0
Comment 5 Marja Van Waes 2023-10-23 14:22:41 CEST
Closing as duplicate of bug 32425, because that report contains precise information about the order in which python* and other involved packages need to be built

*** This bug has been marked as a duplicate of bug 32425 ***

Resolution: (none) => DUPLICATE
Status: NEW => RESOLVED
CC: (none) => marja11

Comment 6 papoteur 2023-10-24 14:54:00 CEST
(In reply to Kristoffer Grundström from comment #1)
> In order to build the package we also need to add the macro called
> %generate_buildrequires.

Hello,
This is already supported in Mageia 9, even with python3.10. You have to BuildRequires pyproject-rpm-macros.

CC: (none) => yvesbrungard