Bug 2253050

Summary: Pyside2 broken on EPEL due to dependencies mismatch
Product: [Fedora] Fedora EPEL Reporter: claraberendsen
Component: python-pyside2Assignee: Richard Shaw <hobbes1069>
Status: ASSIGNED --- QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: epel9CC: carl, hobbes1069, laurent.rineau__fedora, tuju
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 claraberendsen 2023-12-05 19:09:14 UTC
Description of problem:

It seems that in November the qt5 packages provided by EPEL have been bumped to qt5 version 5.15.9, which left the pyside2 packages with broken dependencies. 

The build of the packages tracked in https://koschei.fedoraproject.org/package/python-pyside2?collection=epel9 highlights the broken dependencies.

Please rebuild/upgrade the package to match the new dependencies to have an in sync set of dependencies in EPEL.

Example of the error

```
00:01:05.746 Error: 
00:01:05.746  Problem: package python3-pyside2-devel-1:5.15.7-2.el9.x86_64 requires libpyside2.cpython-39-x86_64-linux-gnu.so.5.15()(64bit), but none of the providers can be installed
00:01:05.746   - conflicting requests
00:01:05.746   - nothing provides libQt5Charts.so.5(Qt_5.15.3_PRIVATE_API)(64bit) needed by python3-pyside2-1:5.15.7-2.el9.x86_64
```

Version-Release number of selected component (if applicable):
python3-pyside2-devel-1:5.15.7-2.el9.x86_64

Comment 1 Carl George 🤠 2024-09-21 03:31:21 UTC
This is still an issue, and reproducible on RHEL 9.


Error: 
 Problem: conflicting requests
  - nothing provides libQt5Charts.so.5(Qt_5.15.3_PRIVATE_API)(64bit) needed by python3-pyside2-1:5.15.7-2.el9.x86_64 from epel

Comment 2 Richard Shaw 2024-09-21 12:35:10 UTC
PySide2 is retired in Fedora, and not retiring in EPEL was likely an oversight. Upstream has moved all development efforts to PySide6.

If a simple rebuild fixes it I'll keep it around a little longer but I don't have time to fix major issues.

Comment 3 Richard Shaw 2024-09-21 12:45:44 UTC
In file included from /builddir/build/BUILD/pyside-setup-opensource-src-5.15.7/redhat-linux-build/sources/pyside2/PySide2/QtGui/PySide2/QtGui/qdragmoveevent_wrapper.cpp:63:
/builddir/build/BUILD/pyside-setup-opensource-src-5.15.7/redhat-linux-build/sources/pyside2/PySide2/QtGui/PySide2/QtGui/qdragmoveevent_wrapper.h:55:220: error: no member named 'DragMove' in 'QOpenGLShader'; did you mean simply 'DragMove'?
   55 |     QDragMoveEventWrapper(const QPoint & pos, QFlags<Qt::DropAction> actions, const QMimeData * data, QFlags<Qt::MouseButton> buttons, QFlags<Qt::KeyboardModifier> modifiers, QFlags<QOpenGLShader::ShaderTypeBit> type = QOpenGLShader::DragMove);
      |                                                                                                                                                                                                                            ^~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                                                                                            DragMove
/usr/include/qt5/QtCore/qcoreevent.h:107:9: note: 'DragMove' declared here
  107 |         DragMove = 61,                          // drag moves in widget
      |         ^

Comment 4 Carl George 🤠 2024-09-21 22:14:04 UTC
Understood.  It is preferable to not have a package versus having a package that doesn't install.  It is allowed to retire an EPEL package, you just need to send an email and wait two weeks.

https://docs.fedoraproject.org/en-US/epel/epel-policy-retirement/