Bug 2152628

Summary: Package python3-mysqlclient seems to be a replacement for python3-mysql but is not marked as obsoleting the earlier package.
Product: [Fedora] Fedora Reporter: Chris Caudle <chris>
Component: python3-mysqlAssignee: Aurelien Bompard <aurelien>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 37CC: aurelien, bugzilla.redhat.com
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-15 14:06:19 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:

Description Chris Caudle 2022-12-12 14:35:56 UTC
Description of problem:
Package python3-mysqlclient seems to either overlap with, or be a replacement for python3-mysql, but the packages are not marked in a way that allows either both to be installed, or python3-mysqlclient to obsolete the python3-mysql package.

This was 

Version-Release number of selected component (if applicable):
python3-mysql 1.4.6-11.fc37
python3-mysqlclient 2.1.0-3.fc37

How reproducible:
Reproducible


Steps to Reproduce:
1. Install python3-mysql-1.4.6-11.fc37.x86_64
2. Attempt to install python3-mysqlclient-2.1.0-3.fc37.x86_64
3.

Actual results:
Error: Transaction test error:
  file /usr/lib64/python3.11/site-packages/MySQLdb/__init__.py from install of python3-mysqlclient-2.1.0-3.fc37.x86_64 conflicts with file from package python3-mysql-1.4.6-11.fc37.x86_64
  file /usr/lib64/python3.11/site-packages/MySQLdb/__pycache__/__init__.cpython-311.opt-1.pyc from install of python3-mysqlclient-2.1.0-3.fc37.x86_64 conflicts with file from package python3-mysql-1.4.6
-11.fc37.x86_64                                                                                        file /usr/lib64/python3.11/site-packages/MySQLdb/__pycache__/__init__.cpython-311.pyc from install of python3-mysqlclient-2.1.0-3.fc37.x86_64 conflicts with file from package python3-mysql-1.4.6-11.fc
37.x86_64 


Expected results:
Package python3-mysqlclient will be marked as obsoleting package python3-mysql so that package manager will replace (assuming that is appropriate).
If python3-mysqlclient is not a full replacement for python3-mysql then the packages should be built in a way that they do not duplicate files.

The info for both packages references the same Github project, so  I think the mysqlclient package is intended to be a replacement for the mysql package.


Additional info:

Comment 1 Chris Caudle 2022-12-15 14:06:19 UTC
This seems to duplicate the report in 1929101 which has been outstanding since F35.

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