commit:     b07884ce9cc6d89cb4dbd05e3be5060f121b3e66
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sat Sep  9 20:58:05 2023 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sat Sep  9 21:03:45 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b07884ce

x11-drivers/nvidia-drivers: update openssl dependency

openssl-1.1 is masked, so extra work to allow both is no longer
necessary and we can depend on the correct subslot that the
prebuilt is built for

No real need for a revbump, := will handle this.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 x11-drivers/nvidia-drivers/nvidia-drivers-535.104.05.ebuild | 10 ++--------
 x11-drivers/nvidia-drivers/nvidia-drivers-535.43.09.ebuild  | 10 ++--------
 2 files changed, 4 insertions(+), 16 deletions(-)

diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-535.104.05.ebuild 
b/x11-drivers/nvidia-drivers/nvidia-drivers-535.104.05.ebuild
index 5b7e42606c89..d58319e453af 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-535.104.05.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-535.104.05.ebuild
@@ -27,13 +27,10 @@ KEYWORDS="-* amd64 ~arm64"
 IUSE="+X abi_x86_32 abi_x86_64 kernel-open persistenced +static-libs +tools 
wayland"
 REQUIRED_USE="kernel-open? ( modules )"
 
-# wrt openssl, can only use exactly :0/1.1 *or* :0/3 (prebuilt) but depend on
-# a simple >=1.1 given a || ( ) block confuses portage with subslot "rebuilds"
-# TODO: change to a hard dependency on exactly :0/3 when :0/1.1 loses relevance
 COMMON_DEPEND="
        acct-group/video
        sys-libs/glibc
-       >=dev-libs/openssl-1.1:=
+       dev-libs/openssl:0/3
        X? ( x11-libs/libpciaccess )
        persistenced? (
                acct-user/nvpd
@@ -250,11 +247,8 @@ src_install() {
                libnvidia-{gtk,wayland-client} nvidia-{settings,xconfig} # from 
source
                libnvidia-egl-gbm 15_nvidia_gbm # gui-libs/egl-gbm
                libnvidia-egl-wayland 10_nvidia_wayland # gui-libs/egl-wayland
+               libnvidia-pkcs11.so # using the openssl3 version instead
        )
-       # TODO: hard-depend on openssl:0/3, drop this, and add pkcs11.so above
-       has_version 'dev-libs/openssl:0/3' &&
-               skip_files+=( libnvidia-pkcs11.so ) ||
-               skip_files+=( libnvidia-pkcs11-openssl3.so )
        local skip_modules=(
                $(usev !X "nvfbc vdpau xdriver")
                $(usev !modules gsp)

diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-535.43.09.ebuild 
b/x11-drivers/nvidia-drivers/nvidia-drivers-535.43.09.ebuild
index 65339f5d791d..cca0de3cf882 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-535.43.09.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-535.43.09.ebuild
@@ -28,13 +28,10 @@ KEYWORDS="-* ~amd64"
 IUSE="+X abi_x86_32 abi_x86_64 kernel-open persistenced +static-libs +tools 
wayland"
 REQUIRED_USE="kernel-open? ( modules )"
 
-# wrt openssl, can only use exactly :0/1.1 *or* :0/3 (prebuilt) but depend on
-# a simple >=1.1 given a || ( ) block confuses portage with subslot "rebuilds"
-# TODO: change to a hard dependency on exactly :0/3 when :0/1.1 loses relevance
 COMMON_DEPEND="
        acct-group/video
        sys-libs/glibc
-       >=dev-libs/openssl-1.1:=
+       dev-libs/openssl:0/3
        X? ( x11-libs/libpciaccess )
        persistenced? (
                acct-user/nvpd
@@ -251,11 +248,8 @@ src_install() {
                libnvidia-{gtk,wayland-client} nvidia-{settings,xconfig} # from 
source
                libnvidia-egl-gbm 15_nvidia_gbm # gui-libs/egl-gbm
                libnvidia-egl-wayland 10_nvidia_wayland # gui-libs/egl-wayland
+               libnvidia-pkcs11.so # using the openssl3 version instead
        )
-       # TODO: hard-depend on openssl:0/3, drop this, and add pkcs11.so above
-       has_version 'dev-libs/openssl:0/3' &&
-               skip_files+=( libnvidia-pkcs11.so ) ||
-               skip_files+=( libnvidia-pkcs11-openssl3.so )
        local skip_modules=(
                $(usev !X "nvfbc vdpau xdriver")
                $(usev !modules gsp)

Reply via email to