Bug 32973 - python3-xdg conflicting files with python3-pyxdg
Summary: python3-xdg conflicting files with python3-pyxdg
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA9-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2024-03-16 21:14 CET by Aurelian R
Modified: 2024-06-20 05:36 CEST (History)
3 users (show)

See Also:
Source RPM: python-xdg-6.0.0-1.mga10.src.rpm
CVE:
Status comment:


Attachments
patch to change pyproject name to xdg-base-dirs (2.08 KB, patch)
2024-03-16 21:14 CET, Aurelian R
Details | Diff

Description Aurelian R 2024-03-16 21:14:18 CET
Created attachment 14469 [details]
patch to change pyproject name to xdg-base-dirs

Conflicting files between python3-xdg and python3-pyxdg have been solved upstream by renaming python "xdg" project to "xdg-base-dirs".
Attached is a patch for python3-xdg spec file that keeps Mageia package name unchanged but everything else adheres to the new name. Mageia 9 is affected too.
Luckily, there are no obvious dependencies on this pyhton3-xdg and I run into it by playing with fvwm3 and its application menu not displaying properly.
Comment 1 David GEIGER 2024-03-19 07:10:09 CET
Fixed for Cauldron by renaming python-xdg to python-xdg-base-dirs!

CC: (none) => geiger.david68210

Comment 2 Aurelian R 2024-03-19 09:23:26 CET
(In reply to David GEIGER from comment #1)
> Fixed for Cauldron by renaming python-xdg to python-xdg-base-dirs!

Seeing that you run into an error/typo because of my proposed changes I wondered why it worked for me. It turns out with the typo the tests conditional was always true but the tar source file from pypi doesn't contain the tests as the one from git repo does and those tests run without error for me so the package had no issues building.

Anyhow, sorry for that and as usual great job.

I'm not sure if I should close or not this bug.

PS: Mageia 9 will need BR: pyproject-rpm-macros and python3-devel is called twice.
Comment 3 Lewis Smith 2024-03-19 21:33:54 CET
(In reply to Aurelian R from comment #2)
> (In reply to David GEIGER from comment #1)
> > Fixed for Cauldron by renaming python-xdg to python-xdg-base-dirs!
> 
> Seeing that you run into an error/typo because of my proposed changes I
> I'm not sure if I should close or not this bug.
I was unsure whether you agreed that DavidG's fix was sufficient, or whether a residual problem remains.
If this applies to just Cauldron, the bug can be closed Fixed. If it applies to Mageia 9, put MGA9TOO in whiteboard, and leave it open for that.
 
> PS: Mageia 9 will need BR: pyproject-rpm-macros and python3-devel is called
> twice.
Please clarify this. Do you mean this bug; or a different one for a different problem? Where are the duplicated calls?

CC: (none) => lewyssmith

Comment 4 Aurelian R 2024-03-19 22:15:27 CET
(In reply to Lewis Smith from comment #3)
> I was unsure whether you agreed that DavidG's fix was sufficient, or whether
> a residual problem remains.

David's fix is sufficient for the python module to work, I just needed to understand myself that the source he used, namely the pypi source, doesn't have the module's self test included.  

> If this applies to just Cauldron, the bug can be closed Fixed. If it applies
> to Mageia 9, put MGA9TOO in whiteboard, and leave it open for that.

MGA9TOO indeed. 

> > PS: Mageia 9 will need BR: pyproject-rpm-macros and python3-devel is called
> > twice.
> Please clarify this. Do you mean this bug; or a different one for a
> different problem? Where are the duplicated calls?

Those are comments about python-xdg spec file when the package is build for Mageia 9, namely, an additional "BuildRequires: pyproject-rpm-macros" and a merely format/clean-up aspect, without consequence though, of python-devel being listed twice in the "BuildRequires" list.

Whiteboard: (none) => MGA9TOO

Comment 5 Lewis Smith 2024-03-20 21:35:08 CET
Thanks for these points.
Can we give this to you, David, for M9, since you have already done half of it.

CC: geiger.david68210, lewyssmith => (none)
Assignee: bugsquad => geiger.david68210

Comment 6 David GEIGER 2024-06-18 04:25:37 CEST
So python3-xdg was also replaced by python3-xdg-base-dirs for mga9!

Assigning to QA,

Packages in 9/Core/Updates_testing:
======================
python3-xdg-base-dirs-6.0.1-1.mga9.noarch.rpm

From SRPMS:
python-xdg-base-dirs-6.0.1-1.mga9.src.rpm

Assignee: geiger.david68210 => qa-bugs
Version: Cauldron => 9
Whiteboard: MGA9TOO => (none)

katnatek 2024-06-18 19:35:35 CEST

Keywords: (none) => advisory

Comment 7 katnatek 2024-06-18 19:47:16 CEST
RH mageia 9 
LC_ALL=C urpmi python3-xdg


installing python3-xdg-5.1.1-2.mga9.noarch.rpm from /var/cache/urpmi/rpms
Preparing...                     ##################################################################################################
Installation failed:    file /usr/lib/python3.10/site-packages/xdg/__init__.py from install of python3-xdg-5.1.1-2.mga9.noarch conflicts with file from package python3-pyxdg-0.28-1.mga9.noarch
        file /usr/lib/python3.10/site-packages/xdg/__pycache__/__init__.cpython-310.opt-1.pyc from install of python3-xdg-5.1.1-2.mga9.noarch conflicts with file from package python3-pyxdg-0.28-1.mga9.noarch
        file /usr/lib/python3.10/site-packages/xdg/__pycache__/__init__.cpython-310.pyc from install of python3-xdg-5.1.1-2.mga9.noarch conflicts with file from package python3-pyxdg-0.28-1.mga9.noarch

LC_ALL=C urpmi python3-xdg-base-dirs


installing python3-xdg-base-dirs-6.0.1-1.mga9.noarch.rpm from //home/katnatek/qa-testing/x86_64
Preparing...                     ##################################################################################################
      1/1: python3-xdg-base-dirs ##################################################################################################


The file conflict is fixed, but I like a test where python3-xdg is installed and when you update with python3-xdg-base-dirs in qarepo the package replace to python3-xdg
Comment 8 katnatek 2024-06-18 20:05:34 CEST
The things I do for the cause XD
Close lxqt session and start Plasma X11

LC_ALL=C urpme python3-pyxdg
To satisfy dependencies, the following 4 packages will be removed (1.3MB):
  openbox-3.6.1-13.1.mga9.x86_64
   (due to missing python3-pyxdg)
  python3-pyxdg-0.28-1.mga9.noarch
  task-lxqt-1.4.0-1.mga9.noarch
   (due to missing task-lxqt-minimal)
  task-lxqt-minimal-1.4.0-1.mga9.noarch
   (due to missing openbox)
Remove 4 packages? (y/N) y
removing openbox-3.6.1-13.1.mga9.x86_64 python3-pyxdg-0.28-1.mga9.noarch task-lxqt-1.4.0-1.mga9.noarch task-lxqt-minimal-1.4.0-1.mga9.noarch
removing package task-lxqt-1.4.0-1.mga9.noarch
      1/4: removing task-lxqt-1.4.0-1.mga9.noarch
                                 ##################################################################################################
removing package task-lxqt-minimal-1.4.0-1.mga9.noarch
      2/4: removing task-lxqt-minimal-1.4.0-1.mga9.noarch
                                 ##################################################################################################
removing package openbox-3.6.1-13.1.mga9.x86_64
      3/4: removing openbox-3.6.1-13.1.mga9.x86_64
                                 ##################################################################################################
removing package python3-pyxdg-0.28-1.mga9.noarch
      4/4: removing python3-pyxdg-0.28-1.mga9.noarch
                                 ##################################################################################################
writing /var/lib/rpm/installed-through-deps.list

The following packages:
  bsdtar-3.6.2-5.1.mga9.x86_64
  ffmpegthumbnailer-2.2.2^git20220218-1.mga9.x86_64
  gvfs-1.50.4-1.mga9.x86_64
  gvfs-archive-1.50.4-1.mga9.x86_64
  gvfs-fuse-1.50.4-1.mga9.x86_64
  gvfs-gphoto2-1.50.4-1.mga9.x86_64
  gvfs-iphone-1.50.4-1.mga9.x86_64
  gvfs-mtp-1.50.4-1.mga9.x86_64
  gvfs-smb-1.50.4-1.mga9.x86_64
  kvantum-1.0.9-2.mga9.x86_64
  lib64ffmpegthumbnailer4-2.2.2^git20220218-1.mga9.x86_64
  lib64fm-qt14-1.4.0-1.mga9.x86_64
  lib64fm4-1.3.2-4.mga9.x86_64
  lib64gck1_0-3.41.1-1.mga9.x86_64
  lib64gcr-base3_1-3.41.1-1.mga9.x86_64
  lib64lxqt-globalkeys-ui1-1.4.0-1.mga9.x86_64
  lib64lxqt-globalkeys1-1.4.0-1.mga9.x86_64
  lib64menu-cache3-1.1.0-7.mga9.x86_64
  lib64muparser2-2.3.4-1.mga9.x86_64
  lib64obrender32-3.6.1-13.1.mga9.x86_64
  lib64obt2-3.6.1-13.1.mga9.x86_64
  lib64poppler-qt6_3-23.02.0-1.2.mga9.x86_64
  lib64qt6svg6-6.4.1-3.mga9.x86_64
  lib64qtermwidget5_1-1.4.0-1.mga9.x86_64
  lib64statgrab10-0.92.1-2.mga9.x86_64
  lib64sysstat0-0.4.6-3.mga9.x86_64
  lib64torrent-rasterbar2.0-2.0.9-1.mga9.x86_64
  lib64xcb-screensaver0-1.15-2.mga9.x86_64
  libfm-1.3.2-4.mga9.x86_64
  libfm-qt-1.4.0-1.mga9.x86_64
  liblxqt-1.4.0-1.mga9.x86_64
  lxde-icon-theme-0.5.1-6.mga9.noarch
  lximage-qt-1.4.0-1.mga9.x86_64
  lxqt-about-1.4.0-1.mga9.x86_64
  lxqt-admin-1.4.0-1.mga9.x86_64
  lxqt-archiver-0.9.0-1.mga9.x86_64
  lxqt-config-1.4.0-1.mga9.x86_64
  lxqt-globalkeys-1.4.0-1.mga9.x86_64
  lxqt-menu-data-1.4.1-1.mga9.noarch
  lxqt-openssh-askpass-1.4.0-1.mga9.x86_64
  lxqt-panel-1.4.0-1.mga9.x86_64
  lxqt-powermanagement-1.4.0-1.mga9.x86_64
  lxqt-qtplugin-1.4.0-1.mga9.x86_64
  lxqt-runner-1.4.0-1.mga9.x86_64
  lxqt-session-1.4.0-1.mga9.x86_64
  lxqt-sudo-1.4.0-1.mga9.x86_64
  lxqt-theme-artemis-1.0-4.mga9.noarch
  lxqt-themes-1.3.0-1.mga9.noarch
  lxshortcut-1.3.2-4.mga9.x86_64
  menu-cache-1.1.0-7.mga9.x86_64
  obconf-qt-0.16.3-1.mga9.x86_64
  pcmanfm-qt-1.4.0-1.mga9.x86_64
  picom-10.2-1.mga9.x86_64
  picom-conf-0.16.0-4.git20220731.3.mga9.x86_64
  qastools-0.23.0-3.mga9.x86_64
  qbittorrent-4.6.2-1.mga9.x86_64
  qlipper-5.1.2-5.mga9.x86_64
  qpdfview-0.5.0-2.mga9.x86_64
  qterminal-1.4.0-1.mga9.x86_64
  qtermwidget-1.4.0-1.mga9.x86_64
  qtsvg6-6.4.1-3.mga9.x86_64
  screengrab-2.6.0-1.mga9.x86_64
  sddm-config-editor-0.1.r8246144-6.mga9.x86_64
  sonnet-config-5.114.0-1.1.mga9.x86_64
  xdg-desktop-portal-lxqt-0.5.0-1.mga9.x86_64
are now orphaned, if you wish to remove them, you can use "urpme --auto-orphans"


LC_ALL=C urpmi python3-xdg

installing python3-xdg-5.1.1-2.mga9.noarch.rpm from /var/cache/urpmi/rpms
Preparing...                     ##################################################################################################
      1/1: python3-xdg           ##################################################################################################

https://mirror.math.princeton.edu/pub/mageia/distrib/9/x86_64/media/core/updates/task-lxqt-minimal-1.4.0-1.mga9.noarch.rpm

 LC_ALL=C urpmi --auto --auto-update
urpmi database is locked, process 211307 is already using it (/usr/bin/perl /usr/libexec/urpmi.update MLO_backport (MLO4))
[root@jgrey ~]# LC_ALL=C urpmi --auto --auto-update
medium "QA Testing (32-bit)" is up-to-date
medium "QA Testing (64-bit)" is up-to-date
medium "Core Release (distrib1)" is up-to-date
medium "Core Updates (distrib3)" is up-to-date
medium "Nonfree Release (distrib11)" is up-to-date
medium "Nonfree Updates (distrib13)" is up-to-date
medium "Tainted Release (distrib21)" is up-to-date
medium "Tainted Updates (distrib23)" is up-to-date
medium "Core 32bit Release (distrib31)" is up-to-date
medium "Core 32bit Updates (distrib32)" is up-to-date
medium "Nonfree 32bit Release (distrib36)" is up-to-date
medium "Tainted 32bit Release (distrib41)" is up-to-date
medium "Tainted 32bit Updates (distrib42)" is up-to-dat


installing python3-xdg-base-dirs-6.0.1-1.mga9.noarch.rpm from //home/katnatek/qa-testing/x86_64
Preparing...                     ##################################################################################################
      1/1: python3-xdg-base-dirs ##################################################################################################
removing package python3-xdg-5.1.1-2.mga9.noarch
      1/1: removing python3-xdg-5.1.1-2.mga9.noarch
                                 ##################################################################################################

LC_ALL=C urpmi task-lxqt task-lxqt-minimal python3-pyxdg --no-recommends 
To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch    
(medium "Core Release (distrib1)")
  python3-pyxdg                  0.28         1.mga9        noarch  
(medium "Core Updates (distrib3)")
  openbox                        3.6.1        13.1.mga9     x86_64  
  task-lxqt                      1.4.0        1.mga9        noarch  
  task-lxqt-minimal              1.4.0        1.mga9        noarch  
1.3MB of additional disk space will be used.
432KB of packages will be retrieved.
Proceed with the installation of the 4 packages? (Y/n) y


    https://mirror.math.princeton.edu/pub/mageia/distrib/9/x86_64/media/core/release/python3-pyxdg-0.28-1.mga9.noarch.rpm
    https://mirror.math.princeton.edu/pub/mageia/distrib/9/x86_64/media/core/updates/task-lxqt-minimal-1.4.0-1.mga9.noarch.rpm      
    https://mirror.math.princeton.edu/pub/mageia/distrib/9/x86_64/media/core/updates/openbox-3.6.1-13.1.mga9.x86_64.rpm             
    https://mirror.math.princeton.edu/pub/mageia/distrib/9/x86_64/media/core/updates/task-lxqt-1.4.0-1.mga9.noarch.rpm              
installing task-lxqt-1.4.0-1.mga9.noarch.rpm python3-pyxdg-0.28-1.mga9.noarch.rpm task-lxqt-minimal-1.4.0-1.mga9.noarch.rpm openbox-3.6.1-13.1.mga9.x86_64.rpm from /var/cache/urpmi/rpms
Preparing...                     ##################################################################################################
      1/4: python3-pyxdg         ##################################################################################################
      2/4: openbox               ##################################################################################################
      3/4: task-lxqt-minimal     ##################################################################################################
      4/4: task-lxqt             ##################################################################################################
katnatek 2024-06-19 03:31:53 CEST

Whiteboard: (none) => MGA9-64-OK
CC: (none) => andrewsfarm

Comment 9 Thomas Andrews 2024-06-20 02:37:53 CEST
Validating.

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 10 Dan Fandrich 2024-06-20 03:24:30 CEST
32973.adv is missing the package version

CC: (none) => dan

Comment 11 katnatek 2024-06-20 05:08:05 CEST
(In reply to Dan Fandrich from comment #10)
> 32973.adv is missing the package version

Fixed
Comment 12 Mageia Robot 2024-06-20 05:36:59 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2024-0147.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.