Bug 6861

Summary: libva-intel-media-driver conflicts with intel-media-driver
Product: Fedora Reporter: Xose Vazquez Perez <xose.vazquez>
Component: intel-media-driverAssignee: Nicolas Chauvet <kwizart>
Status: RESOLVED FIXED    
Severity: normal CC: dominik, leigh123linux, sergio
Priority: P1    
Version: f40   
Hardware: x86_64   
OS: GNU/Linux   
namespace:

Description Xose Vazquez Perez 2024-02-07 22:20:03 CET
# dnf groupinstall "Fedora Workstation" --allowerasing  --skip-broken -b
Last metadata expiration check: 0:05:36 ago on Wed 07 Feb 2024 09:39:40 PM CET.
No match for group package "python3-dnf-plugin-system-upgrade"
No match for group package "gstreamer1-plugin-openh264"
Dependencies resolved.

 Problem: package gstreamer1-plugins-bad-free-1.22.9-2.fc40.x86_64 from @System requires libva.so.2()(64bit), but none of the providers can be installed
  - conflicting requests
  - package libva-intel-media-driver-24.1.3-1.fc40.x86_64 from @System conflicts with intel-media-driver provided by intel-media-driver-24.1.3-1.fc40.x86_64 from rpmfusion-nonfree
  - package libva-intel-media-driver-24.1.3-1.fc40.x86_64 from @System conflicts with intel-media-driver provided by intel-media-driver-24.1.3-1.fc40.x86_64 from rpmfusion-nonfree-updates
  - package libva-intel-media-driver-24.1.3-1.fc40.x86_64 from @System conflicts with intel-media-driver provided by intel-media-driver-24.1.3-1.fc40.x86_64 from rpmfusion-nonfree-updates-testing
Comment 1 Nicolas Chauvet 2024-02-07 22:39:22 CET
Please report to fedora. 

While the two packages are indeed conflicting there might be a way to allow comps group to pick one or another implementation.

Workaround is to install kwizart/fedy
Comment 2 leigh scott 2024-02-23 09:14:11 CET
(In reply to Nicolas Chauvet from comment #1)
> Please report to fedora. 
> 
> While the two packages are indeed conflicting there might be a way to allow
> comps group to pick one or another implementation.
> 
> Workaround is to install kwizart/fedy

The workaround isn't acceptable.
What is the difference between the fedora and rpmfusion package?
Comment 3 Nicolas Chauvet 2024-02-23 10:09:48 CET
Fedora only has the free codec (AV1/VP9) and also disable non-free kernel

There might be a way to mask the libva-intel-media-driver fedora driver, I'm not reproducing anymore with my rawhide VM anymore... Let's check again
Comment 4 leigh scott 2024-02-23 10:51:25 CET
It's still an issue.

$ sudo dnf groups update 'Cinnamon Desktop'
[sudo] password for leigh: 
Last metadata expiration check: 3:14:36 ago on Fri 23 Feb 2024 06:33:36 GMT.

Error: 
 Problem: problem with installed package intel-media-driver-24.1.3-1.fc40.x86_64
  - package libva-intel-media-driver-24.1.3-1.fc40.i686 from fedora conflicts with intel-media-driver provided by intel-media-driver-24.1.3-1.fc40.x86_64 from @System
  - package libva-intel-media-driver-24.1.3-1.fc40.i686 from fedora conflicts with intel-media-driver provided by intel-media-driver-24.1.3-1.fc40.x86_64 from rpmfusion-nonfree
  - conflicting requests
  - package libva-intel-media-driver-24.1.3-1.fc40.x86_64 from fedora conflicts with intel-media-driver provided by intel-media-driver-24.1.3-1.fc40.x86_64 from @System
  - package libva-intel-media-driver-24.1.3-1.fc40.x86_64 from fedora conflicts with intel-media-driver provided by intel-media-driver-24.1.3-1.fc40.x86_64 from rpmfusion-nonfree
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)

$ rpm -q intel-media-driver
intel-media-driver-24.1.3-1.fc40.x86_64
Comment 5 Sérgio Basto 2024-02-23 13:47:50 CET
(In reply to leigh scott from comment #4)
> It's still an issue.
> 
> $ sudo dnf groups update 'Cinnamon Desktop'
> [sudo] password for leigh: 
> Last metadata expiration check: 3:14:36 ago on Fri 23 Feb 2024 06:33:36 GMT.
> 
> Error: 
>  Problem: problem with installed package
> intel-media-driver-24.1.3-1.fc40.x86_64
>   - package libva-intel-media-driver-24.1.3-1.fc40.i686 from fedora
> conflicts with intel-media-driver provided by
> intel-media-driver-24.1.3-1.fc40.x86_64 from @System
>   - package libva-intel-media-driver-24.1.3-1.fc40.i686 from fedora
> conflicts with intel-media-driver provided by
> intel-media-driver-24.1.3-1.fc40.x86_64 from rpmfusion-nonfree
>   - conflicting requests
>   - package libva-intel-media-driver-24.1.3-1.fc40.x86_64 from fedora
> conflicts with intel-media-driver provided by
> intel-media-driver-24.1.3-1.fc40.x86_64 from @System
>   - package libva-intel-media-driver-24.1.3-1.fc40.x86_64 from fedora
> conflicts with intel-media-driver provided by
> intel-media-driver-24.1.3-1.fc40.x86_64 from rpmfusion-nonfree
> (try to add '--allowerasing' to command line to replace conflicting packages
> or '--skip-broken' to skip uninstallable packages)
> 
> $ rpm -q intel-media-driver
> intel-media-driver-24.1.3-1.fc40.x86_64

intel-media-driver-24.1.3-2.fc40 should fix it
Comment 6 Sérgio Basto 2024-02-23 13:50:04 CET
(In reply to Sérgio Basto from comment #5)
> (In reply to leigh scott from comment #4)
> > It's still an issue.
> > 
> > $ sudo dnf groups update 'Cinnamon Desktop'
> > [sudo] password for leigh: 
> > Last metadata expiration check: 3:14:36 ago on Fri 23 Feb 2024 06:33:36 GMT.
> > 
> > Error: 
> >  Problem: problem with installed package
> > intel-media-driver-24.1.3-1.fc40.x86_64
> >   - package libva-intel-media-driver-24.1.3-1.fc40.i686 from fedora
> > conflicts with intel-media-driver provided by
> > intel-media-driver-24.1.3-1.fc40.x86_64 from @System
> >   - package libva-intel-media-driver-24.1.3-1.fc40.i686 from fedora
> > conflicts with intel-media-driver provided by
> > intel-media-driver-24.1.3-1.fc40.x86_64 from rpmfusion-nonfree
> >   - conflicting requests
> >   - package libva-intel-media-driver-24.1.3-1.fc40.x86_64 from fedora
> > conflicts with intel-media-driver provided by
> > intel-media-driver-24.1.3-1.fc40.x86_64 from @System
> >   - package libva-intel-media-driver-24.1.3-1.fc40.x86_64 from fedora
> > conflicts with intel-media-driver provided by
> > intel-media-driver-24.1.3-1.fc40.x86_64 from rpmfusion-nonfree
> > (try to add '--allowerasing' to command line to replace conflicting packages
> > or '--skip-broken' to skip uninstallable packages)
> > 
> > $ rpm -q intel-media-driver
> > intel-media-driver-24.1.3-1.fc40.x86_64
> 
> intel-media-driver-24.1.3-2.fc40 should fix it

Pushed to testing (today : RPM Fusion update report 2024-02-23
Date:	Fri, 23 Feb 2024 09:28:30) 

intel-media-driver-24.1.3-2.fc40
Comment 7 leigh scott 2024-02-23 16:42:31 CET
(In reply to Sérgio Basto from comment #6)
> (In reply to Sérgio Basto from comment #5)
> > (In reply to leigh scott from comment #4)
> > > It's still an issue.
> > > 
> > > $ sudo dnf groups update 'Cinnamon Desktop'
> > > [sudo] password for leigh: 
> > > Last metadata expiration check: 3:14:36 ago on Fri 23 Feb 2024 06:33:36 GMT.
> > > 
> > > Error: 
> > >  Problem: problem with installed package
> > > intel-media-driver-24.1.3-1.fc40.x86_64
> > >   - package libva-intel-media-driver-24.1.3-1.fc40.i686 from fedora
> > > conflicts with intel-media-driver provided by
> > > intel-media-driver-24.1.3-1.fc40.x86_64 from @System
> > >   - package libva-intel-media-driver-24.1.3-1.fc40.i686 from fedora
> > > conflicts with intel-media-driver provided by
> > > intel-media-driver-24.1.3-1.fc40.x86_64 from rpmfusion-nonfree
> > >   - conflicting requests
> > >   - package libva-intel-media-driver-24.1.3-1.fc40.x86_64 from fedora
> > > conflicts with intel-media-driver provided by
> > > intel-media-driver-24.1.3-1.fc40.x86_64 from @System
> > >   - package libva-intel-media-driver-24.1.3-1.fc40.x86_64 from fedora
> > > conflicts with intel-media-driver provided by
> > > intel-media-driver-24.1.3-1.fc40.x86_64 from rpmfusion-nonfree
> > > (try to add '--allowerasing' to command line to replace conflicting packages
> > > or '--skip-broken' to skip uninstallable packages)
> > > 
> > > $ rpm -q intel-media-driver
> > > intel-media-driver-24.1.3-1.fc40.x86_64
> > 
> > intel-media-driver-24.1.3-2.fc40 should fix it
> 
> Pushed to testing (today : RPM Fusion update report 2024-02-23
> Date:	Fri, 23 Feb 2024 09:28:30) 
> 
> intel-media-driver-24.1.3-2.fc40
It's still broken.

Error: 
 Problem: problem with installed package intel-media-driver-24.1.3-1.fc40.x86_64
  - package libva-intel-media-driver-24.1.3-1.fc40.i686 from fedora conflicts with intel-media-driver provided by intel-media-driver-24.1.3-1.fc40.x86_64 from @System
  - package libva-intel-media-driver-24.1.3-1.fc40.i686 from fedora conflicts with intel-media-driver provided by intel-media-driver-24.1.3-1.fc40.x86_64 from rpmfusion-nonfree
  - package libva-intel-media-driver-24.1.3-1.fc40.i686 from fedora conflicts with intel-media-driver provided by intel-media-driver-24.1.3-2.fc40.x86_64 from rpmfusion-nonfree-updates-testing
  - conflicting requests
  - package libva-intel-media-driver-24.1.3-1.fc40.x86_64 from fedora conflicts with intel-media-driver provided by intel-media-driver-24.1.3-1.fc40.x86_64 from @System
  - package libva-intel-media-driver-24.1.3-1.fc40.x86_64 from fedora conflicts with intel-media-driver provided by intel-media-driver-24.1.3-1.fc40.x86_64 from rpmfusion-nonfree
  - package libva-intel-media-driver-24.1.3-1.fc40.x86_64 from fedora conflicts with intel-media-driver provided by intel-media-driver-24.1.3-2.fc40.x86_64 from rpmfusion-nonfree-updates-testing
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)
Comment 8 Sérgio Basto 2024-02-24 17:08:57 CET
with `dnf groups install 'Cinnamon Desktop' --debugsolver`, I found [1] and [2] so the requires came from comps and intel-media-driver from rpmfusion-nonfree also provides libva-intel-media-driver , disabling rpmfusion-nonfree repos [3] fix the conflict problem 
and also from  Fedora comps [4] it required  libva-intel-media-driver and because [5] intel-media-driver-free.spec Conflicts: intel-media-driver we have this issue . 

I don't know what to suggest to fix this 
  



[1]
https://github.com/rpmfusion-infra/rpmfusion-free-comps/blob/master/comps-f40.xml.in#L90C5-L90C100

   <packagelist>
      <packagereq arch="x86_64" type="conditional" requires="libva">libva-intel-driver</packagereq>
    </packagelist>


[2]
https://pkgs.rpmfusion.org/cgit/nonfree/intel-media-driver.git/tree/intel-media-driver.spec#n35

# Compatible instead of conflicting to accomodate fedora multimedia comps
Provides: libva-intel-media-driver = %{version}-%{release}


[3]
dnf config-manager --disable rpmfusion-nonfree rpmfusion-nonfree-updates-testing 


[4]
https://pagure.io/fedora-comps/blob/main/f/comps-f40.xml.in#_4109

      <packagereq arch="x86_64">libva-intel-media-driver</packagereq>

in multimedia group 


[5]
https://src.fedoraproject.org/rpms/intel-media-driver-free/blob/rawhide/f/intel-media-driver-free.spec#_53

Conflicts: intel-media-driver
Comment 9 Sérgio Basto 2024-02-24 17:26:17 CET
so the problem resumes to `dnf install libva-intel-media-driver` if intel-media-driver-24.1.3-2.fc40.x86_64 from rpmfusion-nonfree-updates-testing
 is installed or marked to be install 

results in :  

Problem: problem with installed package intel-media-driver-24.1.3-2.fc40.x86_64
- package libva-intel-media-driver-24.1.3-1.fc40.i686 from fedora conflicts with intel-media-driver provided by intel-media-driver-24.1.3-2.fc40.x86_64 from @System
- package libva-intel-media-driver-24.1.3-1.fc40.i686 from fedora conflicts with intel-media-driver provided by intel-media-driver-24.1.3-1.fc40.x86_64 from rpmfusion-nonfree
- package libva-intel-media-driver-24.1.3-1.fc40.i686 from fedora conflicts with intel-media-driver provided by intel-media-driver-24.1.3-2.fc40.x86_64 from rpmfusion-nonfree-updates-testing
- conflicting requests
- package libva-intel-media-driver-24.1.3-1.fc40.x86_64 from fedora conflicts with intel-media-driver provided by intel-media-driver-24.1.3-2.fc40.x86_64 from @System
- package libva-intel-media-driver-24.1.3-1.fc40.x86_64 from fedora conflicts with intel-media-driver provided by intel-media-driver-24.1.3-1.fc40.x86_64 from rpmfusion-nonfree
- package libva-intel-media-driver-24.1.3-1.fc40.x86_64 from fedora conflicts with intel-media-driver provided by intel-media-driver-24.1.3-2.fc40.x86_64 from rpmfusion-nonfree-updates-testing



Also --allowerasing solves the problem 

LANG=C dnf install libva-intel-media-driver --allowerasing

Dependencies resolved.
==================================================================================================================
Package                        Architecture Version               Repository                                Size
==================================================================================================================
Installing:
libva-intel-media-driver       x86_64       24.1.3-1.fc40         fedora                                   2.4 M
Removing dependent packages:
intel-media-driver             x86_64       24.1.3-2.fc40         @rpmfusion-nonfree-updates-testing        34 M
Comment 10 Xose Vazquez Perez 2024-02-24 17:47:59 CET
It does not help:

# dnf groupinstall "Fedora Workstation" --allowerasing  --skip-broken  --best
Last metadata expiration check: 0:01:37 ago on Sat 24 Feb 2024 05:44:52 PM CET.
No match for group package "python3-dnf-plugin-system-upgrade"
Dependencies resolved.

 Problem: package gstreamer1-plugins-bad-free-1.22.9-3.fc40.x86_64 from fedora requires libva.so.2()(64bit), but none of the providers can be installed
  - cannot install the best candidate for the job
  - package libva-intel-media-driver-24.1.3-1.fc40.x86_64 from fedora conflicts with intel-media-driver provided by intel-media-driver-24.1.3-2.fc40.x86_64 from rpmfusion-nonfree-updates-testing
===============================================================================================================================================================================================
 Package                                              Architecture                    Version                                 Repository                                                  Size
===============================================================================================================================================================================================
Installing group/module packages:
 gstreamer1-plugins-bad-free                          x86_64                          1.22.9-3.fc40                           fedora                                                     2.5 M
 intel-media-driver                                   x86_64                          24.1.3-2.fc40                           rpmfusion-nonfree-updates-testing                          6.8 M
 snapshot                                             x86_64                          45.2-7.fc40                             fedora                                                     1.3 M
Installing Environment Groups:
 Fedora Workstation                                                                                                                                                                           
Installing Groups:
 Container Management                                                                                                                                                                         
 Core                                                                                                                                                                                         
 Firefox Web Browser                                                                                                                                                                          
 Fonts                                                                                                                                                                                        
 GNOME Desktop Environment                                                                                                                                                                    
 Guest Desktop Agents                                                                                                                                                                         
 Hardware Support                                                                                                                                                                             
 LibreOffice                                                                                                                                                                                  
 Multimedia                                                                                                                                                                                   
 Common NetworkManager Submodules                                                                                                                                                             
 Printing Support                                                                                                                                                                             
 Fedora Workstation product core                                                                                                                                                              
Skipping packages with conflicts:
(add '--best' to command line to force their upgrade):
 libva-intel-media-driver                             x86_64                          24.1.3-1.fc40                           fedora                                                     2.4 M

Transaction Summary
===============================================================================================================================================================================================
Install  3 Packages
Skip     1 Package

Total download size: 11 M
Installed size: 46 M
Comment 11 Sérgio Basto 2024-02-25 03:09:03 CET
with --nobest works

dnf groupinstall "Fedora Workstation" --allowerasing  --skip-broken  --nobest

definitely dnf have some fault here, I got gstreamer1-plugins-bad-free already installed and also when I already install all , if I run `dnf groupinstall "Fedora Workstation" ` again, gives the smae error, even without any package to install 

My propose is intel-media-driver [1] not just provides but also obsoletes 
libva-intel-media-driver = %{version} (without release) 

[1]
 https://pkgs.rpmfusion.org/cgit/nonfree/intel-media-driver.git/tree/intel-media-driver.spec#n35
Comment 12 Xose Vazquez Perez 2024-02-25 12:22:48 CET
same result with "--nobest":

"Problem: package gstreamer1-plugins-bad-free-1.22.9-3.fc40.x86_64 from fedora requires libva.so.2()(64bit), but none of the providers can be installed
  - cannot install the best candidate for the job
  - package libva-intel-media-driver-24.1.3-1.fc40.x86_64 from fedora conflicts with intel-media-driver provided by intel-media-driver-24.1.3-2.fc40.x86_64 from rpmfusion-nonfree"



# dnf  remove gstreamer1-plugins-bad-free-1.22.9-3.fc40.x86_64 intel-media-driver-24.1.3-2.fc40.x86_64
Dependencies resolved.
================================================================================
 Package                      Arch    Version         Repository           Size
================================================================================
Removing:
 gstreamer1-plugins-bad-free  x86_64  1.22.9-3.fc40   @fedora             8.0 M
 intel-media-driver           x86_64  24.1.3-2.fc40   @rpmfusion-nonfree   34 M
Removing dependent packages:
 snapshot                     x86_64  45.2-7.fc40     @fedora             3.7 M

Transaction Summary
================================================================================
Remove  3 Packages

Freed space: 46 M
Is this ok [y/N]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Erasing          : snapshot-45.2-7.fc40.x86_64                            1/3 
  Erasing          : gstreamer1-plugins-bad-free-1.22.9-3.fc40.x86_64       2/3 
  Erasing          : intel-media-driver-24.1.3-2.fc40.x86_64                3/3 
  Running scriptlet: intel-media-driver-24.1.3-2.fc40.x86_64                3/3 

Removed:
  gstreamer1-plugins-bad-free-1.22.9-3.fc40.x86_64                              
  intel-media-driver-24.1.3-2.fc40.x86_64                                       
  snapshot-45.2-7.fc40.x86_64                                                   

Complete!


# dnf groupinstall "Fedora Workstation" --allowerasing  --skip-broken  --nobest
Last metadata expiration check: 0:28:05 ago on Sun 25 Feb 2024 09:41:23 AM CET.
No match for group package "python3-dnf-plugin-system-upgrade"
Dependencies resolved.

 Problem: package gstreamer1-plugins-bad-free-1.22.9-3.fc40.x86_64 from fedora requires libva.so.2()(64bit), but none of the providers can be installed
  - cannot install the best candidate for the job
  - package libva-intel-media-driver-24.1.3-1.fc40.x86_64 from fedora conflicts with intel-media-driver provided by intel-media-driver-24.1.3-2.fc40.x86_64 from rpmfusion-nonfree
================================================================================
 Package                      Arch    Version          Repository          Size
================================================================================
Installing group/module packages:
 snapshot                     x86_64  45.2-7.fc40      fedora             1.3 M
Installing dependencies:
 gstreamer1-plugins-bad-free  x86_64  1.22.9-3.fc40    fedora             2.5 M
 intel-media-driver           x86_64  24.1.3-2.fc40    rpmfusion-nonfree  6.8 M
Installing Environment Groups:
 Fedora Workstation                                                            
Installing Groups:
 Container Management                                                          
 Core                                                                          
 Firefox Web Browser                                                           
 Fonts                                                                         
 GNOME Desktop Environment                                                     
 Guest Desktop Agents                                                          
 Hardware Support                                                              
 LibreOffice                                                                   
 Multimedia                                                                    
 Common NetworkManager Submodules
                                                                               
 Printing Support                                                              
 Fedora Workstation product core
                                                                               
Skipping packages with conflicts:
(add '--best' to command line to force their upgrade):
 libva-intel-media-driver     x86_64  24.1.3-1.fc40    fedora             2.4 M

Transaction Summary
================================================================================
Install  3 Packages
Skip     1 Package

Total download size: 11 M
Installed size: 46 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): intel-media-driver-24.1.3-2.fc40.x86_64. 9.4 MB/s | 6.8 MB     00:00    
(2/3): snapshot-45.2-7.fc40.x86_64.rpm          1.2 MB/s | 1.3 MB     00:01    
(3/3): gstreamer1-plugins-bad-free-1.22.9-3.fc4 2.0 MB/s | 2.5 MB     00:01    
--------------------------------------------------------------------------------
Total                                           5.4 MB/s |  11 MB     00:01     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : gstreamer1-plugins-bad-free-1.22.9-3.fc40.x86_64       1/3 
  Installing       : snapshot-45.2-7.fc40.x86_64                            2/3 
  Installing       : intel-media-driver-24.1.3-2.fc40.x86_64                3/3 
  Running scriptlet: intel-media-driver-24.1.3-2.fc40.x86_64                3/3 

Installed:
  gstreamer1-plugins-bad-free-1.22.9-3.fc40.x86_64                              
  intel-media-driver-24.1.3-2.fc40.x86_64                                       
  snapshot-45.2-7.fc40.x86_64                                                   
Skipped:
  libva-intel-media-driver-24.1.3-1.fc40.x86_64                                 

Complete!
Comment 13 Nicolas Chauvet 2024-02-27 23:17:00 CET
See for a suggested implementation to avoid conflict:


https://src.fedoraproject.org/rpms/intel-media-driver-free/pull-request/2