Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] nvidia390: fix libGL dependency conflict
@ 2019-10-11 15:20 voidlinux-github
  2019-10-12  8:35 ` voidlinux-github
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: voidlinux-github @ 2019-10-11 15:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1269 bytes --]

There is a new pull request by st3r4g against master on the void-packages repository

https://github.com/st3r4g/void-packages nvidia390-fix-libGL-conflict
https://github.com/void-linux/void-packages/pull/15337

nvidia390: fix libGL dependency conflict
Trying to include the package `nvidia390` in a live image:
`sudo ./mklive.sh -a x86_64 -r https://alpha.de.repo.voidlinux.org/current/nonfree -p nvidia390`

Failed with:

> nvidia390-libs-390.129_1: collecting files...
ERROR: nvidia390-libs-390.129_1: file `/usr/lib/libEGL.so.1' already installed by package libEGL-19.1.7_3.
ERROR: nvidia390-libs-390.129_1: file `/usr/lib/libGL.so.1' already installed by package libGL-19.1.7_3.
ERROR: nvidia390-libs-390.129_1: file `/usr/lib/xorg/modules/extensions/libglx.so' already installed by package libGL-19.1.7_3.
Transaction failed! see above for errors.
ERROR: Failed to install base-system nvidia390

The reason is that `nvidia390-gtklibs` pulls in `cairo` which in turn installs the Mesa implementation of `libGL` (ignoring the `libGL` provided by Nvidia). I fixed this looking at how the `nvidia` template deals with it, I don't know if it's the optimal solution.

A patch file from https://github.com/void-linux/void-packages/pull/15337.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-nvidia390-fix-libGL-conflict-15337.patch --]
[-- Type: text/x-diff, Size: 1161 bytes --]

From cda8862d5c070d5a5ed06d6690a360a04ef95d49 Mon Sep 17 00:00:00 2001
From: Stefano Ragni <st3r4g@protonmail.com>
Date: Fri, 11 Oct 2019 17:09:56 +0200
Subject: [PATCH] nvidia390: fix libGL dependency conflict

---
 srcpkgs/nvidia390/template | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/nvidia390/template b/srcpkgs/nvidia390/template
index 150c8b4d28e..058d89fab67 100644
--- a/srcpkgs/nvidia390/template
+++ b/srcpkgs/nvidia390/template
@@ -4,7 +4,7 @@ _desc="NVIDIA drivers (GeForce 400, 500 series)"
 
 pkgname=nvidia390
 version=390.129
-revision=1
+revision=2
 maintainer="Andrew Benson <abenson+void@gmail.com>"
 license="custom:NVIDIA Proprietary"
 homepage="http://www.nvidia.com"
@@ -14,7 +14,8 @@ nopie=yes
 repository="nonfree"
 create_wrksrc=yes
 short_desc="${_desc} - Libraries and Utilities"
-depends="nvidia390-gtklibs-${version}_${revision} nvidia390-dkms-${version}_${revision} pkg-config"
+depends="nvidia390-libs-${version}_${revision} nvidia390-gtklibs-${version}_${revision}
+ nvidia390-dkms-${version}_${revision} pkg-config"
 conflicts="catalyst>=0 xserver-abi-video>24_1"
 
 build_options="glvnd"

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: nvidia390: fix libGL dependency conflict
  2019-10-11 15:20 [PR PATCH] nvidia390: fix libGL dependency conflict voidlinux-github
@ 2019-10-12  8:35 ` voidlinux-github
  2019-10-12  8:56 ` voidlinux-github
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: voidlinux-github @ 2019-10-12  8:35 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 246 bytes --]

New comment by Hoshpak on void-packages repository

https://github.com/void-linux/void-packages/pull/15337#issuecomment-541301792

Comment:
did you verify that it solves your issue? That a simple reodering of the dependencies fixes it seems odd.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: nvidia390: fix libGL dependency conflict
  2019-10-11 15:20 [PR PATCH] nvidia390: fix libGL dependency conflict voidlinux-github
  2019-10-12  8:35 ` voidlinux-github
@ 2019-10-12  8:56 ` voidlinux-github
  2019-10-12  8:57 ` voidlinux-github
  2019-10-12  8:59 ` [PR PATCH] [Merged]: " voidlinux-github
  3 siblings, 0 replies; 5+ messages in thread
From: voidlinux-github @ 2019-10-12  8:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 420 bytes --]

New comment by st3r4g on void-packages repository

https://github.com/void-linux/void-packages/pull/15337#issuecomment-541303638

Comment:
Yes, I was able to make the iso after generating the package myself with this modification. If this should work automatically, then I think it's an issue with the `provides` mechanism in `xbps` (which I have not investigated yet) and this is just a temporary fix for this package.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: nvidia390: fix libGL dependency conflict
  2019-10-11 15:20 [PR PATCH] nvidia390: fix libGL dependency conflict voidlinux-github
  2019-10-12  8:35 ` voidlinux-github
  2019-10-12  8:56 ` voidlinux-github
@ 2019-10-12  8:57 ` voidlinux-github
  2019-10-12  8:59 ` [PR PATCH] [Merged]: " voidlinux-github
  3 siblings, 0 replies; 5+ messages in thread
From: voidlinux-github @ 2019-10-12  8:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 492 bytes --]

New comment by st3r4g on void-packages repository

https://github.com/void-linux/void-packages/pull/15337#issuecomment-541303638

Comment:
Yes, I was able to make the iso after generating the package myself with this modification. If this should work automatically, then I think it's an issue with the `provides` mechanism in `xbps` (which I have not investigated yet) and this is just a temporary fix for this package (but also the `nvidia` package is doing the same thing, which I copied).

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PR PATCH] [Merged]: nvidia390: fix libGL dependency conflict
  2019-10-11 15:20 [PR PATCH] nvidia390: fix libGL dependency conflict voidlinux-github
                   ` (2 preceding siblings ...)
  2019-10-12  8:57 ` voidlinux-github
@ 2019-10-12  8:59 ` voidlinux-github
  3 siblings, 0 replies; 5+ messages in thread
From: voidlinux-github @ 2019-10-12  8:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1099 bytes --]

There's a merged pull request on the void-packages repository

nvidia390: fix libGL dependency conflict
https://github.com/void-linux/void-packages/pull/15337

Description:
Trying to include the package `nvidia390` in a live image:
`sudo ./mklive.sh -a x86_64 -r https://alpha.de.repo.voidlinux.org/current/nonfree -p nvidia390`

Failed with:

> nvidia390-libs-390.129_1: collecting files...
ERROR: nvidia390-libs-390.129_1: file `/usr/lib/libEGL.so.1' already installed by package libEGL-19.1.7_3.
ERROR: nvidia390-libs-390.129_1: file `/usr/lib/libGL.so.1' already installed by package libGL-19.1.7_3.
ERROR: nvidia390-libs-390.129_1: file `/usr/lib/xorg/modules/extensions/libglx.so' already installed by package libGL-19.1.7_3.
Transaction failed! see above for errors.
ERROR: Failed to install base-system nvidia390

The reason is that `nvidia390-gtklibs` pulls in `cairo` which in turn installs the Mesa implementation of `libGL` (ignoring the `libGL` provided by Nvidia). I fixed this looking at how the `nvidia` template deals with it, I don't know if it's the optimal solution.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-10-12  8:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-11 15:20 [PR PATCH] nvidia390: fix libGL dependency conflict voidlinux-github
2019-10-12  8:35 ` voidlinux-github
2019-10-12  8:56 ` voidlinux-github
2019-10-12  8:57 ` voidlinux-github
2019-10-12  8:59 ` [PR PATCH] [Merged]: " voidlinux-github

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).