git: aa1da009b408 - main - x11/nvidia-driver: prevent dependencies non exiting 32bits compat.

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Thu, 13 Mar 2025 20:42:48 UTC
The branch main has been updated by bapt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=aa1da009b4081b25bb162b0c4177e872ca0b81a3

commit aa1da009b4081b25bb162b0c4177e872ca0b81a3
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2025-03-13 20:36:35 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2025-03-13 20:42:41 +0000

    x11/nvidia-driver: prevent dependencies non exiting 32bits compat.
    
    Since pkg 2.x the dependency on shared libraries have been increased,
    in particular we now track 32bits compat libraries.
    
    The nvidia-driver on amd64 provides 32bits libraryes which are linked to
    libX11.so.6 itself 32bit, which nothing in the ports tree provide,
    meaning orphans dependencies, which results in tools analysing the
    dependencies to complain about missing dependencies.
    
    Add a knob to tell pkg to ignore those 32bits compat libraries when
    extracting which libraries the package should depend on.
---
 x11/nvidia-driver/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/x11/nvidia-driver/Makefile b/x11/nvidia-driver/Makefile
index ba87e2a0088d..e181e6bc5085 100644
--- a/x11/nvidia-driver/Makefile
+++ b/x11/nvidia-driver/Makefile
@@ -28,6 +28,11 @@ LICENSE_FILE=	${WRKSRC}/doc/license.txt
 .include "${.CURDIR}/../nvidia-driver/Makefile.version"
 .include "${.CURDIR}/../nvidia-driver/Makefile.common"
 
+# the package provides lib32 versions of the libraries, which then depends
+# themselves in non existing lib32 libraries, so we don't want the package
+# to end up depending on non existing libraries
+NO_SHLIB_REQUIRES_GLOB=*:32
+
 # Pull GNU sed(1) for "binary" patching of obj/libglvnd/libEGL.so.1 and
 # obj/libEGL_nvidia.so.0 (see below)
 .if ${NVVERSION} >= 410.057