Bug 27029

Summary: Post-scriplet error after install/updating x11-server-common-1.20.8-5.mga8 with nvidia nonfree driver installed
Product: Mageia Reporter: Aurelien Oudelet <ouaurelien>
Component: RPM PackagesAssignee: Kernel and Drivers maintainers <kernel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: ghibomgx, thierry.vignaud
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: x11-server-1.20.8-5.mga8.src.rpm CVE:
Status comment:

Description Aurelien Oudelet 2020-08-02 19:01:09 CEST
Today updates theer is an error with post-scriptlet of x11-server-common-1.20.8-5.mga8.x86_64.rpm.
Message in console:

Impossible de lier
/etc/OpenCL/vendors/nvidia.icd -> /etc/alternatives/nvidia.icd : Aucun fichier ou dossier de ce type
attention : %post(x11-server-common-1.20.8-5.mga8.x86_64) scriptlet échoué, état de sortie 2
ERROR: 'script' failed for x11-server-common-1.20.8-5.mga8.x86_64

Nvidia nonfree: nvidia-current-450.57-2.mga8.nonfree.src.rpm

I don't know which package provides /etc/OpenCL/vendors/nvidia.icd.
Comment 1 Lewis Smith 2020-08-02 21:34:18 CEST
Thank you for reporting this.

$ urpmq -i x11-server-common
Name        : x11-server-common                                                
Version     : 1.20.8
Release     : 5.mga8
Group       : System/X11
Source RPM  : x11-server-1.20.8-5.mga8.src.rpm

$ urpmf nvidia.icd
x11-driver-video-nvidia-current:/etc/vulkan/icd.d/nvidia_icd.json              
nvidia-current-cuda-opencl:/etc/OpenCL/vendors/nvidia.icd
nvidia-current-cuda-opencl:/etc/nvidia-current/nvidia.icd
x11-driver-video-nvidia390:/etc/OpenCL/vendors/nvidia.icd
x11-driver-video-nvidia390:/etc/nvidia390/nvidia.icd
x11-driver-video-nvidia340:/etc/OpenCL/vendors/nvidia.icd
x11-driver-video-nvidia340:/etc/nvidia340/nvidia.icd

Unsure where the fault lies. Assigning to drivers group, CC'ing Thierry who did the x11-server update.

CC: (none) => thierry.vignaud
Source RPM: x11-server-common-1.20.8-5.mga8.src.rpm => x11-server-1.20.8-5.mga8.src.rpm
Assignee: bugsquad => kernel

Comment 2 Aurelien Oudelet 2020-08-02 21:53:04 CEST
Thank you Lewis for wisdom,

I think package nvidia-current-cuda-opencl is not installed automatically with nvidia-current-450.57-2.mga8.nonfree.

I read somewhere that Nvidia openCL driver was splitted from video driver.
Sorry I can't remember there.
Comment 3 David Walser 2020-08-05 17:39:21 CEST
Affected scriplet is:
%post common
%{_sbindir}/update-alternatives \
        --install %{_sysconfdir}/ld.so.conf.d/GL.conf gl_conf %{_sysconfdir}/ld.so.conf.d/GL/standard.conf %{priority}


Does this conflict with the new libglvnd stuff in Cauldron?  CC'ing Giuseppe.

CC: (none) => ghibomgx

Comment 4 Giuseppe Ghibò 2020-08-06 17:43:53 CEST
Looking at it. Apparently there were no change in the nvidia.icd stuff after the latest glvnd changes. Just to know if you install the 
nvidia-current-cuda-opencl package you still get the error?
Comment 5 Aurelien Oudelet 2020-08-06 18:08:35 CEST
(In reply to Giuseppe Ghibò from comment #4)
> Looking at it. Apparently there were no change in the nvidia.icd stuff after
> the latest glvnd changes. Just to know if you install the 
> nvidia-current-cuda-opencl package you still get the error?

If install nvidia-current-cuda-opencl before installing update, there is ni error from scriplet.

Question is now why not installés before as dependencies for nvidia driver.
Comment 6 Thomas Backlund 2020-08-06 19:26:44 CEST
(In reply to Giuseppe Ghibò from comment #4)
> Looking at it. Apparently there were no change in the nvidia.icd stuff after
> the latest glvnd changes. Just to know if you install the 
> nvidia-current-cuda-opencl package you still get the error?

It's one of the things I forgot to clean up with the cuda split

I planned to create a new nvidia-current-common subpackage that both the nvidia-current-cuda-opencle and the x11-driver-video-nvidia-current package would require, and then move the icd file there.

The reason for this was to keep the update-alternatives changes within one package wile allowing to install the cuda stuff separately

CC: (none) => tmb

Thomas Backlund 2020-08-06 19:27:12 CEST

CC: tmb => (none)

Comment 7 Aurelien Oudelet 2020-08-17 21:04:34 CEST
x11-driver-video-nvidia-current in Cauldron status:

* ven. août 07 2020 ghibo <ghibo> 450.57-3.mga8
        + Revision: 1611915
        - Add temporary workaround for bug #27029.

Worksome, nvidia-current-cuda-opencl-450.57-3.mga8.nonfree.x86_64 is installed by default on new install.

Status: NEW => ASSIGNED

Comment 8 Aurelien Oudelet 2020-12-27 15:33:50 CET
I do think this is closed. I don't see any of this.

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