Turn into template

This commit is contained in:
Ward from fusion-voyager-3 2024-07-24 02:06:18 +03:00
parent 54575718f0
commit 316837caf1
198 changed files with 4627 additions and 0 deletions

37
.github/workflows/build-canaryi386.yml vendored Normal file
View File

@ -0,0 +1,37 @@
name: PikaOS Package Build Only (Canary) (i386)
on:
workflow_dispatch
jobs:
build:
runs-on: self-hosted
container:
image: ghcr.io/pikaos-linux/pikaos-builder:canaryi386
volumes:
- /proc:/proc
options: --privileged -it
steps:
- uses: actions/checkout@v3
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
name: id_rsa
known_hosts: ${{ secrets.KNOWN_HOSTS }}
if_key_exists: replace
- name: Update APT Cache
run: apt-get update -y
- name: Build Package
run: ./maini386.sh

37
.github/workflows/build-canaryv3.yml vendored Normal file
View File

@ -0,0 +1,37 @@
name: PikaOS Package Build Only (Canary) (amd64-v3)
on:
workflow_dispatch
jobs:
build:
runs-on: self-hosted
container:
image: ghcr.io/pikaos-linux/pikaos-builder:canaryv3
volumes:
- /proc:/proc
options: --privileged -it
steps:
- uses: actions/checkout@v3
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
name: id_rsa
known_hosts: ${{ secrets.KNOWN_HOSTS }}
if_key_exists: replace
- name: Update APT Cache
run: apt-get update -y
- name: Build Package
run: ./mainv3.sh

37
.github/workflows/build-nesti386.yml vendored Normal file
View File

@ -0,0 +1,37 @@
name: PikaOS Package Build Only (i386)
on:
workflow_dispatch
jobs:
build:
runs-on: self-hosted
container:
image: ghcr.io/pikaos-linux/pikaos-builder:nesti386
volumes:
- /proc:/proc
options: --privileged -it
steps:
- uses: actions/checkout@v3
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
name: id_rsa
known_hosts: ${{ secrets.KNOWN_HOSTS }}
if_key_exists: replace
- name: Update APT Cache
run: apt-get update -y
- name: Build Package
run: ./maini386.sh

37
.github/workflows/build-nestv3.yml vendored Normal file
View File

@ -0,0 +1,37 @@
name: PikaOS Package Build Only (amd64-v3)
on:
workflow_dispatch
jobs:
build:
runs-on: self-hosted
container:
image: ghcr.io/pikaos-linux/pikaos-builder:nestv3
volumes:
- /proc:/proc
options: --privileged -it
steps:
- uses: actions/checkout@v3
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
name: id_rsa
known_hosts: ${{ secrets.KNOWN_HOSTS }}
if_key_exists: replace
- name: Update APT Cache
run: apt-get update -y
- name: Build Package
run: ./mainv3.sh

View File

@ -0,0 +1,40 @@
name: PikaOS Package Build & Release (Canary) (i386)
on:
workflow_dispatch
jobs:
build:
runs-on: self-hosted
container:
image: ghcr.io/pikaos-linux/pikaos-builder:canaryi386
volumes:
- /proc:/proc
options: --privileged -it
steps:
- uses: actions/checkout@v3
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
name: id_rsa
known_hosts: ${{ secrets.KNOWN_HOSTS }}
if_key_exists: replace
- name: Update APT Cache
run: apt-get update -y
- name: Build Package
run: ./maini386.sh
- name: Release Package
run: ./release.sh

40
.github/workflows/release-canaryv3.yml vendored Normal file
View File

@ -0,0 +1,40 @@
name: PikaOS Package Build & Release (Canary) (amd64-v3)
on:
workflow_dispatch
jobs:
build:
runs-on: self-hosted
container:
image: ghcr.io/pikaos-linux/pikaos-builder:canaryv3
volumes:
- /proc:/proc
options: --privileged -it
steps:
- uses: actions/checkout@v3
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
name: id_rsa
known_hosts: ${{ secrets.KNOWN_HOSTS }}
if_key_exists: replace
- name: Update APT Cache
run: apt-get update -y
- name: Build Package
run: ./mainv3.sh
- name: Release Package
run: ./release.sh

40
.github/workflows/release-nesti386.yml vendored Normal file
View File

@ -0,0 +1,40 @@
name: PikaOS Package Build & Release (i386)
on:
workflow_dispatch
jobs:
build:
runs-on: self-hosted
container:
image: ghcr.io/pikaos-linux/pikaos-builder:nesti386
volumes:
- /proc:/proc
options: --privileged -it
steps:
- uses: actions/checkout@v3
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
name: id_rsa
known_hosts: ${{ secrets.KNOWN_HOSTS }}
if_key_exists: replace
- name: Update APT Cache
run: apt-get update -y
- name: Build Package
run: ./maini386.sh
- name: Release Package
run: ./release.sh

40
.github/workflows/release-nestv3.yml vendored Normal file
View File

@ -0,0 +1,40 @@
name: PikaOS Package Build & Release (amd64-v3)
on:
workflow_dispatch
jobs:
build:
runs-on: self-hosted
container:
image: ghcr.io/pikaos-linux/pikaos-builder:nestv3
volumes:
- /proc:/proc
options: --privileged -it
steps:
- uses: actions/checkout@v3
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
name: id_rsa
known_hosts: ${{ secrets.KNOWN_HOSTS }}
if_key_exists: replace
- name: Update APT Cache
run: apt-get update -y
- name: Build Package
run: ./mainv3.sh
- name: Release Package
run: ./release.sh

19
create-from-template.sh Executable file
View File

@ -0,0 +1,19 @@
#! /bin/bash
set -e
source ./version.sh
mv ./nvidia-graphics-drivers-#DRIVER_VERSION_MAJOR# ./nvidia-graphics-drivers-"$DRIVER_VERSION_MAJOR"
for f in $(find ./nvidia-graphics-drivers-"$DRIVER_VERSION_MAJOR" -type f)
do
mv "$f" "$(echo "$f" | sed s/#DRIVER_VERSION_MAJOR#/"$DRIVER_VERSION_MAJOR"/)" || true
done
for f in $(find ./nvidia-graphics-drivers-"$DRIVER_VERSION_MAJOR" -type f)
do
sed -i s/#DRIVER_VERSION_MAJOR#/"$DRIVER_VERSION_MAJOR"/g "$f" || true
sed -i s/#DRIVER_VERSION_FULL#/"$DRIVER_VERSION_FULL"/g "$f" || true
sed -i s/#DRIVER_ARCH#/"$DRIVER_ARCH"/g "$f" || true
done

28
maini386.sh Executable file
View File

@ -0,0 +1,28 @@
#! /bin/bash
set -e
source ./version.sh
DRIVER_ARCH="Linux-x86_64"
export DEBIAN_FRONTEND="noninteractive"
export DEB_BUILD_OPTIONS="nocheck notest terse"
export DPKG_GENSYMBOLS_CHECK_LEVEL=0
# Get nvidia run file
cd ./nvidia-graphics-drivers-"$DRIVER_VERSION_MAJOR"
wget https://us.download.nvidia.com/XFree86/$DRIVER_ARCH/$DRIVER_VERSION_FULL/NVIDIA-$DRIVER_ARCH-$DRIVER_VERSION_FULL.run -O nvidia-installer.run
chmod +x nvidia-installer.run
# Get build deps
apt-get build-dep ./ -y
# Build package
LOGNAME=root dh_make --createorig -y -l -p nvidia-graphics-drivers-"$DRIVER_VERSION_MAJOR"_"$DRIVER_VERSION_FULL" || true
dpkg-buildpackage --no-sign
# Move the debs to output
cd ../
mkdir -p ./output
mv ./*.deb ./output/

33
mainv3.sh Executable file
View File

@ -0,0 +1,33 @@
#! /bin/bash
set -e
source ./version.sh
DRIVER_ARCH="Linux-x86_64"
export DEBIAN_FRONTEND="noninteractive"
export DEB_BUILD_MAINT_OPTIONS="optimize=+lto -march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32"
export DEB_CFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32"
export DEB_CPPFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32"
export DEB_CXXFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32"
export DEB_LDFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32"
export DEB_BUILD_OPTIONS="nocheck notest terse"
export DPKG_GENSYMBOLS_CHECK_LEVEL=0
# Get nvidia run file
cd ./nvidia-graphics-drivers-"$DRIVER_VERSION_MAJOR"
wget https://us.download.nvidia.com/XFree86/$DRIVER_ARCH/$DRIVER_VERSION_FULL/NVIDIA-$DRIVER_ARCH-$DRIVER_VERSION_FULL.run -O nvidia-installer.run
chmod +x nvidia-installer.run
# Get build deps
apt-get build-dep ./ -y
# Build package
LOGNAME=root dh_make --createorig -y -l -p nvidia-graphics-drivers-"$DRIVER_VERSION_MAJOR"_"$DRIVER_VERSION_FULL" || true
dpkg-buildpackage --no-sign
# Move the debs to output
cd ../
mkdir -p ./output
mv ./*.deb ./output/

View File

@ -0,0 +1,84 @@
Short summary about selecting a glx implementation
==================================================
To switch between the current and legacy NVIDIA drivers, use
update-glx --config nvidia
To switch between the GLX implementation from MESA/glvnd and NVIDIA
use the command
update-glx --config glx
This will also trigger an update of the initrd with a possibly changed
kernel module blacklist.
Detailed description of the diversions/alternatives for libGL.so.1 etc.
=======================================================================
NVIDIA provides accelerated OpenGL libraries libGL.so.* which are shipped
in the libgl1-nvidia-glx (or a corresponding libgl1-nvidia-legacy*-glx)
package. Furthermore NVIDIA maintains several legacy driver releases that
support older GPUs and ship files with the same names (but of course they
may not be mixed between different versions).
As these libraries and modules "replace" system libraries (libGL.so* from
MESA) and Xorg modules, care has to be taken to allow clean upgrades of
both the drivers and the system libraries.
Several additional requests have risen over time, e.g. from live systems:
* allow parallel installation of several drivers (even from different
vendors)
* allow driver selection at runtime
* allow switching back to the free Xorg/MESA implementation without having
to uninstall the accelerated driver and libraries
The vendor replacement libraries are only meant to be used as a complete
set as partial usage usually lead to hard to detect errors. So we only
support switching to a vendor implementation completely or using it not at
all.
Therefore we have chosen the following approach using diversions and
alternatives.
The system libraries are being diverted (to /usr/lib/mesa-diverted), so they
are moved out of the way of possible replacements and further updates to
them will happen at the diversion location. This is implemented in the
package glx-diversions which is a general solution to be used by all vendor
implementations.
All vendor implementations install their files in a private library directory
so there are no file conflicts happening. Then they register an alternative
'glx' which allows one to select the implementation. In case it is enabled,
all libraries (and other files) belonging to the implementation will be enabled
via slave alternatives, i.e. appropriate symlinks will be put into the system
locations. Triggers are being used to detect the installation or removal of
any file belonging to the slave set of an alternative and to update the
alternative accordingly.
User configuration can be done with the command
update-glx --config glx
which allows one to select a glx provider from mesa, nvidia.
(Available choices depend on the installed drivers.)
For NVIDIA, there is a second alternative that allows one to switch between
the current driver version and eventually installed legacy ones:
update-glx --config nvidia
libGL.so
========
The libGL.so link is managed by a dpkg trigger as an alternative, too.
But there are no alternative solutions available besides the diverted link
from the libgl1-mesa-dev package (if this package is installed), so this
cannot be reconfigured. The intention behind this is to always link an
application at compile time to the MESA implementation of libGL.so.1 in
order to produce portable binaries, but to use the accelerated libGL.so.1
when the application is being executed.
-- Andreas Beckmann <debian@abeckmann.de> Wed, 22 Jun 2011 12:44:11 +0200

View File

@ -0,0 +1,5 @@
nvidia-graphics-drivers-#DRIVER_VERSION_MAJOR# (#DRIVER_VERSION_FULL#-101pika2) pika; urgency=medium
* New upstream
-- Andreas Beckmann <root@cybik.moe> Wed, 22 May 2024 07:31:41 -0700

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,445 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: NVIDIA Linux Display Drivers
Upstream-Contact: NVIDIA Corporation <linux-bugs@nvidia.com>
Source:
https://download.nvidia.com/XFree86/Linux-x86_64/
https://download.nvidia.com/XFree86/Linux-aarch64/
Disclaimer:
This package is not part of the GNU/Linux Debian distribution. It is
provided in the non-free archive area as a convenience to Debian users.
The contents of this package cannot be distributed as part of the Debian
distribution because the NVIDIA Software License covering it is not a free
software license. No modifications of the included binaries are
permitted, and the binaries are not distributed with source code.
Files:
amd64/*
arm64/*
ppc64el/*
Copyright:
1993-2023 NVIDIA Corporation. All rights reserved.
License: NVIDIA-graphics-drivers
Files: supported-gpus/supported-gpus.json
Copyright: 2020 NVIDIA Corporation
License: zlib/libpng
Files: debian/*
Copyright: 2001-2010 Randall Donald <rdonald@debian.org>
2009-2010 Andres Mejia <mcitadel@gmail.com>
2009-2024 Andreas Beckmann <anbe@debian.org>
2010-2011 Russ Allbery <rra@debian.org>
2014-2015 Vincent Cheng <vcheng@debian.org>
2015-2019 Luca Boccassi <bluca@debian.org>
2018 Philipp Kern <pkern@debian.org>
Based on packages by Christopher Cheney.
License: GPL-2.0+
Files: debian/detect/nvidia-detect.in
Copyright:
© 2008-2011 Filipus Klutiero <chealer@gmail.com>
© 2011-2024 Andreas Beckmann <anbe@debian.org>
License: GPL-2.0+
Files: debian/patches/*
Copyright:
(c) 1993-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
License: Expat
Comment:
Except where noted otherwise, the individual kernel module source files
(but not the blobs) are licensed as MIT (aka Expat).
License: GPL-2.0+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General Public
License version 2 can be found in "/usr/share/common-licenses/GPL-2".
License: Expat
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
.
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
License: NVIDIA-graphics-drivers
NVIDIA Driver License Agreement
.
IMPORTANT NOTICE - PLEASE READ AND AGREE BEFORE USING THE SOFTWARE.
.
This license agreement ("Agreement") is a legal agreement between you, whether
an individual or entity ("you") and NVIDIA Corporation ("NVIDIA") and governs
your use of the NVIDIA driver, and any additional software and materials
provided (the "SOFTWARE").
.
If you don't have the required age or authority to enter into this Agreement or
if you don't accept all the terms below, do not use the SOFTWARE.
.
You agree to use the SOFTWARE only for purposes that are permitted by this
Agreement and any applicable law or regulation in the relevant jurisdictions.
.
1. License.
.
1.1 Subject to the terms of this Agreement, NVIDIA grants you a non-exclusive,
revocable, non-transferable and non-sublicensable (except as expressly provided
in this Agreement) license to:
.
a. Install and use copies of the SOFTWARE,
.
b. Modify and create derivative works of any portion of the SOFTWARE delivered
by NVIDIA in source code format,
.
c. Deploy, for your own use, the SOFTWARE on infrastructure you own or lease,
and
.
d. Distribute the SOFTWARE provided for use with operating systems distributed
under the terms of an OSI-approved open source license as listed by the Open
Source Initiative at http://opensource.org, provided that (i) the binary files
thereof are not modified in any way (except for uncompressing of compressed
files) and (ii) this Agreement is provided to each SOFTWARE recipient.
.
2. Limitations.
.
The following license limitations apply to your use of the SOFTWARE:
.
2.1 The SOFTWARE is only licensed for use in conjunction with microprocessor(s),
SoCs, and GPUs which have been (i) designed by NVIDIA and/or its affiliates and
(ii) sold (directly or indirectly) by NVIDIA and/or its affiliates ("NVIDIA
Platform"). You may only use firmware in NVIDIA Platforms. You may not translate
firmware, nor cause or permit firmware to be translated, from the architecture
or language in which it is originally provided by NVIDIA, into any other
architecture or language.
.
2.2 You may not reverse engineer, decompile, or disassemble the SOFTWARE
provided in binary form, nor attempt in any other manner to obtain source code
of such SOFTWARE.
.
2.3 You may not modify or create derivative works of the SOFTWARE provided in
binary form.
.
2.4 You may not distribute any modified header files.
.
2.5 You may not change or remove copyright or other proprietary notices in the
SOFTWARE, or misrepresent the authorship of the SOFTWARE, and you must cause any
modified files to carry prominent notices stating that you changed the files
such that modifications are not misrepresented as an original SOFTWARE.
.
2.6 You may not bypass, disable, or circumvent any technical limitation,
encryption, security, digital rights management or authentication mechanism in
the SOFTWARE.
.
2.7 Except as expressly granted in this Agreement, you may not sell, rent,
sublicense, distribute or transfer the SOFTWARE or provide commercial hosting
services with the SOFTWARE.
.
2.8 You agree that GeForce or Titan SOFTWARE: (i) is licensed for use only on
GeForce or Titan hardware products you own, and (ii) is not licensed for
datacenter deployment.
.
2.9 You may not use the SOFTWARE in any manner that would cause it to become
subject to an open source software license, subject to the terms in the
"Components Under Other Licenses" section below.
.
2.10 You acknowledge that the SOFTWARE as delivered is not tested or certified
by NVIDIA for use in any system or application where the use of or failure of
such system or application developed with the SOFTWARE could result in injury,
death or catastrophic damage (each, a "Critical Application"). Examples of
Critical Applications include use in avionics, navigation, autonomous vehicle
applications, automotive products, military, medical, life support or other life
critical applications. NVIDIA will not be liable to you or any third party, in
whole or in part, for any claims or damages arising from these uses. You are
solely responsible for ensuring that systems and applications developed with the
SOFTWARE include sufficient safety and redundancy features, and comply with all
applicable legal and regulatory standards and requirements.
.
2.11 You agree to defend, indemnify and hold harmless NVIDIA and its affiliates,
and their respective employees, contractors, agents, officers and directors,
from and against any and all claims, damages, obligations, losses, liabilities,
costs or debt, fines, restitutions and expenses (including but not limited to
attorney's fees and costs incident to establishing the right of indemnification)
arising out of or related to products or services that have been developed with
or use the SOFTWARE (including for use in or for Critical Applications), and for
use of the SOFTWARE outside of the scope of this Agreement or not in compliance
with its terms.
.
3. Authorized Users.
.
You may allow employees and contractors of your entity or of your
subsidiary(ies) to access and use the SOFTWARE from your secure network to
perform the work authorized by this Agreement on your behalf.
.
If you are an academic institution, you may allow users enrolled or employed by
the academic institution to access and use the SOFTWARE as authorized by this
Agreement from your secure network.
.
You are responsible for the compliance with the terms of this Agreement by your
authorized users. Any act or omission that if committed by you would constitute
a breach of this Agreement will be deemed to constitute a breach of this
Agreement if committed by your authorized users.
.
4. Pre-Release SOFTWARE.
.
The SOFTWARE versions identified as alpha, beta, preview or otherwise as
pre-release may not be fully functional, may contain errors or design flaws, and
may have reduced or different security, privacy, accessibility and reliability
standards relative to commercial versions of NVIDIA software and materials.
.
You may use pre-release SOFTWARE at your own risk, understanding that
pre-release SOFTWARE is not intended for use in production or business-critical
systems and NVIDIA may choose not to make available a commercial version of any
pre-release SOFTWARE.
.
5. Support and Updates.
.
NVIDIA is not obligated to support any SOFTWARE, unless there is a separate
agreement for this purpose. NVIDIA may, at its option, make available patches,
workarounds or other updates to the SOFTWARE. Unless the updates are provided
with their separate governing terms, they are deemed part of the SOFTWARE
licensed to you as provided in this Agreement.
.
6. Components Under Other Licenses.
.
The SOFTWARE may include or be distributed with components provided with
separate legal notices or terms that accompany the components, such as open
source software licenses and other license terms ("Other Licenses"). The
components are subject to the applicable Other Licenses, including any
proprietary notices, disclaimers, requirements and extended use rights; except
that this Agreement will prevail regarding the use of third-party open source
software, unless a third-party open source software license requires its license
terms to prevail. Open source software license means any software, data or
documentation subject to any license identified as an open source license by the
Open Source Initiative (http://opensource.org), Free Software Foundation
(http://www.fsf.org) or other similar open source organization or listed by the
Software Package Data Exchange (SPDX) Workgroup under the Linux Foundation
(http://www.spdx.org).
.
You acknowledge and agree that it is your sole responsibility to obtain any
additional third-party licenses required to make, have made, use, have used,
sell, import, and offer for sale your products or services that include or
incorporate any third-party software and content, including, without limitation,
audio and/or video encoders and decoders and implementations of technical
standards. NVIDIA does not grant to you under this Agreement any necessary
patent or other rights, including standard essential patent rights, with respect
to any third-party software and content.
.
7. Termination.
.
This Agreement will automatically terminate without notice from NVIDIA if you
fail to comply with any of the terms in this Agreement or if you commence or
participate in any legal proceeding against NVIDIA with respect to the
SOFTWARE. Upon any termination, you must stop using and destroy all copies of
the SOFTWARE. You can terminate this Agreement whenever you want by stopping use
of the SOFTWARE and destroying all copies of the SOFTWARE. Your prior
distributions according to this Agreement are not affected by termination. All
provisions will survive termination, except for the licenses granted to you.
.
8. Ownership.
.
The SOFTWARE, including all intellectual property rights, is and will remain the
sole and exclusive property of NVIDIA or its licensors. Except as expressly
granted in this Agreement, (i) NVIDIA reserves all rights, interests, and
remedies in connection with the SOFTWARE, and (ii) no other license or right is
granted to you by implication, estoppel or otherwise. You agree to cooperate
with NVIDIA and provide reasonably requested information to verify your
compliance with this Agreement.
.
9. Feedback.
.
You may, but you are not obligated to, provide suggestions, requests, fixes,
modifications, enhancements, or other feedback regarding the SOFTWARE
(collectively, "Feedback"). Feedback, even if designated as confidential by you,
will not create any confidentiality obligation for NVIDIA or its affiliates. If
you provide Feedback, you grant NVIDIA, its affiliates and its designees a
non-exclusive, perpetual, irrevocable, sublicensable, worldwide, royalty-free,
fully paid-up and transferable license, under your intellectual property rights,
to publicly perform, publicly display, reproduce, use, make, have made, sell,
offer for sale, distribute (through multiple tiers of distribution), import,
create derivative works of and otherwise commercialize and exploit the Feedback
at NVIDIA's discretion. You will not give Feedback (i) that you have reason to
believe is subject to any restriction that impairs the exercise of the grant
stated in this section; or (ii) subject to license terms which seek to require
any product incorporating or developed using such Feedback, or other
intellectual property of NVIDIA or its affiliates, to be licensed to or
otherwise shared with any third party.
.
10. Governing Law and Jurisdiction.
.
This Agreement will be governed in all respects by the laws of the United States
and the laws of the State of Delaware, without regard to conflict of laws
principles or the United Nations Convention on Contracts for the International
Sale of Goods. The state and federal courts residing in Santa Clara County,
California will have exclusive jurisdiction over any dispute or claim arising
out of or related to this Agreement, and the parties irrevocably consent to
personal jurisdiction and venue in those courts; except that either party may
apply for injunctive remedies or an equivalent type of urgent legal relief in
any jurisdiction.
.
11. Disclaimer of Warranties.
.
THE SOFTWARE IS PROVIDED BY NVIDIA AS-IS AND WITH ALL FAULTS. TO THE FULLEST
EXTENT PERMITTED BY APPLICABLE LAW, NVIDIA DISCLAIMS ALL WARRANTIES AND
REPRESENTATIONS OF ANY KIND, WHETHER EXPRESS, IMPLIED OR STATUTORY, RELATING TO
OR ARISING UNDER THIS AGREEMENT, INCLUDING, WITHOUT LIMITATION, THE WARRANTIES
OF TITLE, NONINFRINGEMENT, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
USAGE OF TRADE AND COURSE OF DEALING. WITHOUT LIMITING THE FOREGOING, NVIDIA
DOES NOT WARRANT THAT THE SOFTWARE WILL MEET YOUR REQUIREMENTS; THAT ANY DEFECTS
OR ERRORS WILL BE CORRECTED; THAT ANY CERTAIN CONTENT WILL BE AVAILABLE; OR THAT
THE SOFTWARE IS FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS.
.
In addition, you agree that you are solely responsible for maintaining
appropriate data backups and system restore points for systems that include the
SOFTWARE, and that NVIDIA will have no responsibility for any damage or loss to
such systems (including loss of data or access) arising from or relating to (a)
any changes to the configuration, application settings, environment variables,
registry, drivers, BIOS, or other attributes of the system (or any part of such
system) initiated through the SOFTWARE; or (b) installation of any SOFTWARE or
third party software patches through the NVIDIA update service.
.
NO INFORMATION OR ADVICE GIVEN BY NVIDIA WILL IN ANY WAY INCREASE THE SCOPE OF
ANY WARRANTY EXPRESSLY PROVIDED IN THIS AGREEMENT. You are responsible for
checking that a SOFTWARE version is the appropriate one for your NVIDIA product
model, operating system, and computer hardware.
.
12. Limitations of Liability.
.
TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT WILL NVIDIA BE
LIABLE FOR ANY (I) INDIRECT, PUNITIVE, SPECIAL, INCIDENTAL OR CONSEQUENTIAL
DAMAGES, OR (II) DAMAGES FOR (A) THE COST OF PROCURING SUBSTITUTE GOODS, OR (B)
LOSS OF PROFITS, REVENUES, USE, DATA OR GOODWILL ARISING OUT OF OR RELATED TO
THIS AGREEMENT, WHETHER BASED ON BREACH OF CONTRACT, TORT (INCLUDING
NEGLIGENCE), STRICT LIABILITY, OR OTHERWISE, AND EVEN IF NVIDIA HAS BEEN ADVISED
OF THE POSSIBILITY OF SUCH DAMAGES AND EVEN IF A PARTY'S REMEDIES FAIL THEIR
ESSENTIAL PURPOSE.
.
ADDITIONALLY, TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, NVIDIA'S TOTAL
CUMULATIVE AGGREGATE LIABILITY FOR ANY AND ALL LIABILITIES, OBLIGATIONS OR
CLAIMS ARISING OUT OF OR RELATED TO THIS AGREEMENT WILL NOT EXCEED FIVE
U.S. DOLLARS (US$5).
.
13. Data Collection.
.
If you are using the SOFTWARE on a Windows operating system, you hereby
acknowledge that at the time of SOFTWARE installation, NVIDIA will access and
collect data to: (a) properly configure and optimize the system for use with the
SOFTWARE; (b) deliver content or service through SOFTWARE; and (c) improve
NVIDIA products and services. Information collected may include configuration
data such as GPU and CPU, and operating system.
.
The SOFTWARE may contain links to third party websites and services. NVIDIA
encourages you to review the privacy statements on those sites and services that
you choose to visit to understand how they may collect, use and share your
data. NVIDIA is not responsible for the privacy statements or practices of third
party sites or services.
.
Please review the NVIDIA Privacy Policy, located at
https://www.nvidia.com/en-us/about-nvidia/privacy-policy, which explains
NVIDIA's policy for collecting and using data.
.
14. Assignment.
.
NVIDIA may assign, delegate or transfer its rights or obligations under this
Agreement by any means or operation of law. You may not, without NVIDIA's prior
written consent, assign, delegate or transfer any of its rights or obligations
under this Agreement by any means or operation of law, and any attempt to do so
is null and void.
.
15. Trade Compliance.
.
You agree to comply with all applicable export, import, trade and economic
sanctions laws and regulations, including U.S. Export Administration
Regulations and Office of Foreign Assets Control regulations. These laws include
restrictions on destinations, end-users and end-use.
.
16. Government Use.
.
The SOFTWARE, including related documentation ("Protected Items") is a
"Commercial product" as this term is defined at 48 C.F.R. 2.101, consisting of
"commercial computer software" and "commercial computer software documentation"
as such terms are used in, respectively, 48 C.F.R. 12.212 and 48 C.F.R. 227.7202
& 252.227- 7014(a)(1). Before any Protected Items are supplied to the
U.S. Government, you will (i) inform the U.S. Government in writing that the
Protected Items are and must be treated as commercial computer software and
commercial computer software documentation developed at private expense; (ii)
inform the U.S. Government that the Protected Items are provided subject to the
terms of this Agreement; and (iii) mark the Protected Items as commercial
computer software and commercial computer software documentation developed at
private expense. In no event will you permit the U.S. Government to acquire
rights in Protected Items beyond those specified in 48
C.F.R. 52.227-19(b)(1)-(2) or 252.227-7013(c) except as expressly approved by
NVIDIA in writing.
.
17. Notices.
.
Please direct your legal notices or other correspondence to NVIDIA Corporation,
2788 San Tomas Expressway, Santa Clara, California 95051, United States of
America, Attention: Legal Department. If NVIDIA needs to contact you about the
SOFTWARE, you consent to receive the notices by email and that such notices will
satisfy any legal communication requirements.
.
18. Entire Agreement.
.
Regarding the subject matter of this Agreement, the parties agree that (i) this
Agreement constitutes the entire and exclusive agreement between the parties and
supersedes all prior and contemporaneous communications and (ii) any additional
or different terms or conditions, whether contained in purchase orders, order
acknowledgments, invoices or otherwise, will not be binding on the receiving
party and are null and void. This Agreement may only be modified in a writing
signed by an authorized representative of each party.
.
If a court of competent jurisdiction rules that a provision of this Agreement is
unenforceable, that provision will be deemed modified to the extent necessary to
make it enforceable and the remainder of this Agreement will continue in full
force and effect.
.
19. No Waiver.
.
No failure or delay by a party to enforce any Agreement term or obligation will
operate as a waiver by that party, or prevent the enforcement of such term or
obligation later.
.
20. Licensing.
.
For any questions regarding this Agreement, please contact NVIDIA at
driver-licensing@nvidia.com
.
(v. February 27, 2023)
License: zlib/libpng
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
.
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.

View File

@ -0,0 +1,2 @@
firmware/gsp*.bin lib/firmware/nvidia/#DRIVER_VERSION_FULL#/
#RIM_GH100PROD.swidtag usr/share/nvidia/rim/#DRIVER_VERSION_FULL#/

View File

@ -0,0 +1,4 @@
# Firmware blob.
binary-from-other-architecture [lib/firmware/nvidia/#DRIVER_VERSION_FULL#/gsp*.bin]
spelling-error-in-binary * [lib/firmware/nvidia/#DRIVER_VERSION_FULL#/gsp*.bin]
unstripped-binary-or-object [lib/firmware/nvidia/#DRIVER_VERSION_FULL#/gsp*.bin]

View File

@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
libcuda.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/

View File

@ -0,0 +1,3 @@
#! /usr/bin/dh-exec
usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libcuda.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libcuda.so.1
usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libcuda.so.1 usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libcuda.so

View File

@ -0,0 +1,9 @@
# The NVIDIA license does not allow any form of modification.
[i386]: binary-file-built-without-LFS-support
[i386]: specific-address-in-shared-library
spelling-error-in-binary
hardening-no-bindnow
[!arm64]: hardening-no-fortify-functions
# Lintian and debhelper disagree w.r.t. a library in a private directory.
package-has-unnecessary-activation-of-ldconfig-trigger

View File

@ -0,0 +1,17 @@
#!/bin/sh
set -e
. /usr/share/debconf/confmodule
if [ "$1" = "configure" ]
then
if [ -x /usr/lib/nvidia/check-for-mismatching-nvidia-module ]
then
/usr/lib/nvidia/check-for-mismatching-nvidia-module #DRIVER_VERSION_FULL#
fi
fi
#DEBHELPER#

View File

@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
libcudadebugger.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/

View File

@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libcudadebugger.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libcudadebugger.so.1

View File

@ -0,0 +1,10 @@
# The NVIDIA license does not allow any form of modification.
[i386]: binary-file-built-without-LFS-support
binary-has-unneeded-section
[i386]: specific-address-in-shared-library
spelling-error-in-binary
hardening-no-bindnow
hardening-no-fortify-functions
# Lintian and debhelper disagree w.r.t. a library in a private directory.
package-has-unnecessary-activation-of-ldconfig-trigger

View File

@ -0,0 +1,6 @@
#! /usr/bin/dh-exec
libEGL_nvidia.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/
libnvidia-egl-xcb.so.1 usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/
libnvidia-egl-xlib.so.1 usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/
20_nvidia_xcb.json /usr/share/egl/egl_external_platform.d/
20_nvidia_xlib.json /usr/share/egl/egl_external_platform.d/

View File

@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libEGL_nvidia.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libEGL_nvidia.so.0

View File

@ -0,0 +1,11 @@
# The NVIDIA license does not allow any form of modification.
[i386]: binary-file-built-without-LFS-support
spelling-error-in-binary
hardening-no-bindnow
hardening-no-fortify-functions
# Lintian and debhelper disagree w.r.t. a library in a private directory.
package-has-unnecessary-activation-of-ldconfig-trigger
# There is no .so link.
symbols-file-missing-build-depends-package-field

View File

@ -0,0 +1,2 @@
debian/README.alternatives
README.txt

View File

@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
libGLESv1_CM_nvidia.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/

View File

@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libGLESv1_CM_nvidia.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libGLESv1_CM_nvidia.so.1

View File

@ -0,0 +1,10 @@
# The NVIDIA license does not allow any form of modification.
[i386]: binary-file-built-without-LFS-support
hardening-no-bindnow
hardening-no-fortify-functions
# Lintian and debhelper disagree w.r.t. a library in a private directory.
package-has-unnecessary-activation-of-ldconfig-trigger
# There is no .so link.
symbols-file-missing-build-depends-package-field

View File

@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
libGLESv2_nvidia.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/

View File

@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libGLESv2_nvidia.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libGLESv2_nvidia.so.2

View File

@ -0,0 +1,10 @@
# The NVIDIA license does not allow any form of modification.
[i386]: binary-file-built-without-LFS-support
hardening-no-bindnow
hardening-no-fortify-functions
# Lintian and debhelper disagree w.r.t. a library in a private directory.
package-has-unnecessary-activation-of-ldconfig-trigger
# There is no .so link.
symbols-file-missing-build-depends-package-field

View File

@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
libGLX_nvidia.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/

View File

@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libGLX_nvidia.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libGLX_nvidia.so.0

View File

@ -0,0 +1,12 @@
# The NVIDIA license does not allow any form of modification.
[i386]: binary-file-built-without-LFS-support
exit-in-shared-library
[i386]: specific-address-in-shared-library
hardening-no-bindnow
hardening-no-fortify-functions
# Lintian and debhelper disagree w.r.t. a library in a private directory.
package-has-unnecessary-activation-of-ldconfig-trigger
# There is no .so link.
symbols-file-missing-build-depends-package-field

View File

@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
libnvcuvid.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/

View File

@ -0,0 +1,3 @@
#! /usr/bin/dh-exec
usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvcuvid.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvcuvid.so.1
usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvcuvid.so.1 usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvcuvid.so

View File

@ -0,0 +1,9 @@
# The NVIDIA license does not allow any form of modification.
[i386]: binary-file-built-without-LFS-support
[i386 ppc64el]: specific-address-in-shared-library
spelling-error-in-binary
hardening-no-bindnow
hardening-no-fortify-functions
# Lintian and debhelper disagree w.r.t. a library in a private directory.
package-has-unnecessary-activation-of-ldconfig-trigger

View File

@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
libnvidia-allocator.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/

View File

@ -0,0 +1,3 @@
#! /usr/bin/dh-exec
usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-allocator.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-allocator.so.1
usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-allocator.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/nvidia-drm_gbm.so

View File

@ -0,0 +1,8 @@
# The NVIDIA license does not allow any form of modification.
[i386]: binary-file-built-without-LFS-support
spelling-error-in-binary
hardening-no-bindnow
hardening-no-fortify-functions
# Lintian and debhelper disagree w.r.t. a library in a private directory.
package-has-unnecessary-activation-of-ldconfig-trigger

View File

@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
libnvidia-api.so.1 usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/

View File

@ -0,0 +1,9 @@
# The NVIDIA license does not allow any form of modification.
hardening-no-bindnow
hardening-no-fortify-functions
# Lintian and debhelper disagree w.r.t. a library in a private directory.
package-has-unnecessary-activation-of-ldconfig-trigger
# There is no .so link.
symbols-file-missing-build-depends-package-field

View File

@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
libnvidia-cfg.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/

View File

@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-cfg.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-cfg.so.1

View File

@ -0,0 +1,10 @@
# The NVIDIA license does not allow any form of modification.
[ppc64el]: specific-address-in-shared-library
hardening-no-bindnow
hardening-no-fortify-functions
# Lintian and debhelper disagree w.r.t. a library in a private directory.
package-has-unnecessary-activation-of-ldconfig-trigger
# There is no .so link.
symbols-file-missing-build-depends-package-field

View File

@ -0,0 +1,3 @@
#! /usr/bin/dh-exec
libnvidia-eglcore.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/
libnvidia-glsi.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/

View File

@ -0,0 +1,17 @@
# The NVIDIA license does not allow any form of modification.
[i386]: binary-file-built-without-LFS-support
embedded-library libzstd [usr/lib/*/libnvidia-eglcore.so.#DRIVER_VERSION_FULL#]
[i386]: specific-address-in-shared-library
spelling-error-in-binary
hardening-no-bindnow
hardening-no-fortify-functions
# The libnvidia-{eglcore,glsi}.so.* SONAME changes with every upstream
# release.
# These private libraries are only used (and usable) as plugins
# loaded by other NVIDIA libraries with the same upstream version
# (and a stable SONAME).
# Therefore we do not include the SONAME in this package name to
# avoid going through NEW for every new upstream release.
package-name-doesnt-match-sonames libnvidia-eglcore#DRIVER_VERSION_FULL# libnvidia-glsi#DRIVER_VERSION_FULL#
symbols-file-missing-build-depends-package-field

View File

@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
libnvidia-encode.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/

View File

@ -0,0 +1,3 @@
#! /usr/bin/dh-exec
usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-encode.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-encode.so.1
usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-encode.so.1 usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-encode.so

View File

@ -0,0 +1,8 @@
# The NVIDIA license does not allow any form of modification.
[i386]: binary-file-built-without-LFS-support
[i386 ppc64el]: specific-address-in-shared-library
hardening-no-bindnow
hardening-no-fortify-functions
# Lintian and debhelper disagree w.r.t. a library in a private directory.
package-has-unnecessary-activation-of-ldconfig-trigger

View File

@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
libnvidia-fbc.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/

View File

@ -0,0 +1,3 @@
#! /usr/bin/dh-exec
usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-fbc.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-fbc.so.1
usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-fbc.so.1 usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-fbc.so

View File

@ -0,0 +1,7 @@
# The NVIDIA license does not allow any form of modification.
[i386]: binary-file-built-without-LFS-support
hardening-no-bindnow
hardening-no-fortify-functions
# Lintian and debhelper disagree w.r.t. a library in a private directory.
package-has-unnecessary-activation-of-ldconfig-trigger

View File

@ -0,0 +1,3 @@
#! /usr/bin/dh-exec
libnvidia-glcore.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/
libnvidia-tls.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/

View File

@ -0,0 +1,18 @@
# The NVIDIA license does not allow any form of modification.
[i386]: binary-file-built-without-LFS-support
[arm64 ppc64el]: elf-warning
embedded-library libzstd [usr/lib/*/libnvidia-glcore.so.#DRIVER_VERSION_FULL#]
[i386]: specific-address-in-shared-library
spelling-error-in-binary
hardening-no-bindnow
hardening-no-fortify-functions
# The libnvidia-{glcore,tls}.so.* SONAME changes with every upstream
# release.
# These private libraries are only used (and usable) as plugins
# loaded by other NVIDIA libraries with the same upstream version
# (and a stable SONAME).
# Therefore we do not include the SONAME in this package name to
# avoid going through NEW for every new upstream release.
package-name-doesnt-match-sonames libnvidia-glcore#DRIVER_VERSION_FULL# libnvidia-tls#DRIVER_VERSION_FULL#
symbols-file-missing-build-depends-package-field

View File

@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
libnvidia-glvkspirv.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/

View File

@ -0,0 +1,15 @@
# The NVIDIA license does not allow any form of modification.
[i386]: binary-file-built-without-LFS-support
spelling-error-in-binary
hardening-no-bindnow
hardening-no-fortify-functions
# The libnvidia-glvkspirv.so.* SONAME changes with every upstream
# release.
# These private libraries are only used (and usable) as plugins
# loaded by other NVIDIA libraries with the same upstream version
# (and a stable SONAME).
# Therefore we do not include the SONAME in this package name to
# avoid going through NEW for every new upstream release.
package-name-doesnt-match-sonames libnvidia-glvkspirv#DRIVER_VERSION_FULL#
symbols-file-missing-build-depends-package-field

View File

@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
libnvidia-gpucomp.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/

View File

@ -0,0 +1,15 @@
# The NVIDIA license does not allow any form of modification.
[i386]: binary-file-built-without-LFS-support
spelling-error-in-binary
hardening-no-bindnow
hardening-no-fortify-functions
# The libnvidia-{glcore,tls}.so.* SONAME changes with every upstream
# release.
# These private libraries are only used (and usable) as plugins
# loaded by other NVIDIA libraries with the same upstream version
# (and a stable SONAME).
# Therefore we do not include the SONAME in this package name to
# avoid going through NEW for every new upstream release.
package-name-doesnt-match-sonames libnvidia-gpucomp#DRIVER_VERSION_FULL#
symbols-file-missing-build-depends-package-field

View File

@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
libnvidia-ml.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/

View File

@ -0,0 +1,3 @@
#! /usr/bin/dh-exec
usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-ml.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-ml.so.1
usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-ml.so.1 usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-ml.so

View File

@ -0,0 +1,8 @@
# The NVIDIA license does not allow any form of modification.
[i386]: binary-file-built-without-LFS-support
spelling-error-in-binary
hardening-no-bindnow
hardening-no-fortify-functions
# Lintian and debhelper disagree w.r.t. a library in a private directory.
package-has-unnecessary-activation-of-ldconfig-trigger

View File

@ -0,0 +1,4 @@
#! /usr/bin/dh-exec
libnvidia-ngx.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/
_nvngx.dll usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/nvidia/wine
nvngx.dll usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/nvidia/wine

View File

@ -0,0 +1,3 @@
#! /usr/bin/dh-exec
usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-ngx.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-ngx.so.1
usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-ngx.so.1 usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-ngx.so

View File

@ -0,0 +1,9 @@
# The NVIDIA license does not allow any form of modification.
hardening-no-bindnow
hardening-no-fortify-functions
# Lintian and debhelper disagree w.r.t. a library in a private directory.
package-has-unnecessary-activation-of-ldconfig-trigger
# Location expected by Proton.
repeated-path-segment nvidia [usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/nvidia/]

View File

@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
libnvidia-nvvm.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/

View File

@ -0,0 +1,3 @@
#! /usr/bin/dh-exec
usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-nvvm.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-nvvm.so.4
usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-nvvm.so.4 usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-nvvm.so

View File

@ -0,0 +1,7 @@
# The NVIDIA license does not allow any form of modification.
[i386]: binary-file-built-without-LFS-support
spelling-error-in-binary
hardening-no-fortify-functions
# Lintian and debhelper disagree w.r.t. a library in a private directory.
package-has-unnecessary-activation-of-ldconfig-trigger

View File

@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
libnvidia-opticalflow.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/

View File

@ -0,0 +1,3 @@
#! /usr/bin/dh-exec
usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-opticalflow.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-opticalflow.so.1
usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-opticalflow.so.1 usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-opticalflow.so

View File

@ -0,0 +1,7 @@
# The NVIDIA license does not allow any form of modification.
[i386 ppc64el]: specific-address-in-shared-library
hardening-no-bindnow
hardening-no-fortify-functions
# Lintian and debhelper disagree w.r.t. a library in a private directory.
package-has-unnecessary-activation-of-ldconfig-trigger

View File

@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
libnvidia-pkcs11-openssl3.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/

View File

@ -0,0 +1,15 @@
# The NVIDIA license does not allow any form of modification.
hardening-no-bindnow
# Use wildcard instead of exact path substitution, this is a M-A: same package.
library-not-linked-against-libc [usr/lib*/libnvidia-pkcs11-openssl3.so.#DRIVER_VERSION_FULL#]
# The libnvidia-pkcs11-openssl3.so.* SONAME changes with every upstream
# release.
# These private libraries are only used (and usable) as plugins
# loaded by other NVIDIA libraries with the same upstream version
# (and a stable SONAME).
# Therefore we do not include the SONAME in this package name to
# avoid going through NEW for every new upstream release.
package-name-doesnt-match-sonames libnvidia-pkcs11-openssl3-#DRIVER_VERSION_FULL#
symbols-file-missing-build-depends-package-field

View File

@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
libnvidia-ptxjitcompiler.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/

View File

@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-ptxjitcompiler.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvidia-ptxjitcompiler.so.1

View File

@ -0,0 +1,15 @@
# The NVIDIA license does not allow any form of modification.
[i386]: binary-file-built-without-LFS-support
spelling-error-in-binary
[!arm64]: hardening-no-bindnow
[!arm64]: hardening-no-fortify-functions
# Use wildcard instead of exact path substitution, this is a M-A: same package.
embedded-library
embedded-library zlib [usr/lib*/libnvidia-ptxjitcompiler.so.#DRIVER_VERSION_FULL#]
# Lintian and debhelper disagree w.r.t. a library in a private directory.
package-has-unnecessary-activation-of-ldconfig-trigger
# There is no .so link.
symbols-file-missing-build-depends-package-field

View File

@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
libnvidia-rtcore.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/

View File

@ -0,0 +1,14 @@
# The NVIDIA license does not allow any form of modification.
spelling-error-in-binary
hardening-no-bindnow
[!arm64]: hardening-no-fortify-functions
# The libnvidia-rtcore.so.* SONAME changes with every upstream
# release.
# These private libraries are only used (and usable) as plugins
# loaded by other NVIDIA libraries with the same upstream version
# (and a stable SONAME).
# Therefore we do not include the SONAME in this package name to
# avoid going through NEW for every new upstream release.
package-name-doesnt-match-sonames libnvidia-rtcore#DRIVER_VERSION_FULL#
symbols-file-missing-build-depends-package-field

View File

@ -0,0 +1,4 @@
#! /usr/bin/dh-exec
libnvidia-vksc-core.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/
nvidia_icd_vksc.json usr/share/vulkan/icd.d/
nvidia-pcc usr/bin/

View File

@ -0,0 +1,8 @@
# The NVIDIA license does not allow any form of modification.
[i386]: binary-file-built-without-LFS-support
[i386 ppc64el]: specific-address-in-shared-library
hardening-no-bindnow
hardening-no-fortify-functions
# Lintian and debhelper disagree w.r.t. a library in a private directory.
package-has-unnecessary-activation-of-ldconfig-trigger

View File

@ -0,0 +1,3 @@
#! /usr/bin/dh-exec
libnvoptix.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/
nvoptix.bin usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/

View File

@ -0,0 +1,2 @@
#! /usr/bin/dh-exec
usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvoptix.so.#DRIVER_VERSION_FULL# usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/libnvoptix.so.1

View File

@ -0,0 +1,10 @@
# The NVIDIA license does not allow any form of modification.
spelling-error-in-binary
hardening-no-bindnow
hardening-no-fortify-functions
# Lintian and debhelper disagree w.r.t. a library in a private directory.
package-has-unnecessary-activation-of-ldconfig-trigger
# There is no .so link.
symbols-file-missing-build-depends-package-field

View File

@ -0,0 +1,38 @@
# Non version dependent exist elsewhere in debian repos
10_nvidia_wayland.json
15_nvidia_gbm.json
# Useless files or broken symlinks
libEGL.so.1.1.0
libEGL.so.#DRIVER_VERSION_FULL#
libGL.so.1.7.0
libGLESv1_CM.so.1.2.0
libGLESv2.so.2.1.0
libGLX.so.0
libGLdispatch.so.0
libOpenGL.so.0
libglvnd_install_checker
libnvidia-egl-gbm.so.1.1.1
libnvidia-egl-wayland.so.1.1.13
libnvidia-pkcs11.so.#DRIVER_VERSION_FULL#
makeself-help-script.sh
makeself.sh
mkprecompiled
nvidia-cuda-mps-control.1.gz
nvidia-drm-outputclass.conf
nvidia-installer
nvidia-installer.1
nvidia-installer.1.gz
nvidia-modprobe.1
nvidia-modprobe.1.gz
nvidia-ngx-updater
nvidia-persistenced-init.tar.bz2
nvidia-persistenced.1
nvidia-persistenced.1.gz
nvidia-settings.1
nvidia-settings.desktop
nvidia-smi.1
nvidia-xconfig.1
pkg-history.txt
supported-gpus/LICENSE
LICENSE
NVIDIA_Changelog

View File

@ -0,0 +1,11 @@
#! /usr/bin/dh-exec
etc/modprobe.d
etc/nvidia
usr/lib/nvidia/#DRIVER_VERSION_FULL#
usr/lib/nvidia/#DRIVER_VERSION_FULL#-open
usr/lib/${DEB_HOST_MULTIARCH}/gbm
usr/lib/${DEB_HOST_MULTIARCH}/nvidia
usr/lib/${DEB_HOST_MULTIARCH}/vdpau
usr/share/applications
usr/share/man/man1
usr/share/nvidia

View File

@ -0,0 +1 @@
extra_files/nvidia-libdir.conf etc/ld.so.conf.d/

View File

@ -0,0 +1,11 @@
# This directory is used as a master alternative.
package-contains-empty-directory [usr/lib/nvidia/#DRIVER_VERSION_FULL#/]
package-contains-empty-directory [usr/lib/nvidia/#DRIVER_VERSION_FULL#-open/]
# Slave alternatives may be installed there.
package-contains-empty-directory [usr/lib/x86_64-linux-gnu/gbm/]
package-contains-empty-directory [usr/lib/x86_64-linux-gnu/nvidia/]
package-contains-empty-directory [usr/lib/x86_64-linux-gnu/vdpau/]
package-contains-empty-directory [usr/share/applications/]
package-contains-empty-directory [usr/share/man/man1/]
package-contains-empty-directory [usr/share/nvidia/]

View File

@ -0,0 +1,139 @@
#!/bin/sh
set -e
TRIPLETS="/ /i386-linux-gnu/ /x86_64-linux-gnu/ /aarch64-linux-gnu/ /powerpc64le-linux-gnu/"
add_slave()
{
local target_link name source_path prefix
target_link="$1"
name="$2"
source_path="$3"
prefix="nvidia--"
if [ -f "${source_path}" ] && [ -d "$(dirname "${target_link}")" ]; then
echo --slave "${target_link}" "${prefix}${name}" "${source_path}"
fi
}
add_multiarch_slave()
{
local target_dir target_sub_dir file source_dir source_sub_dir prefix suffix triplet
target_dir="$1"
target_sub_dir="$2"
file="$3"
source_dir="$4"
source_sub_dir="$5"
prefix="$6"
for triplet in $TRIPLETS ; do
# s|/$||; s|^/|-|;
suffix="${triplet%/}"
suffix="${suffix:+-${suffix#/}}"
add_slave "${target_dir}${triplet}${target_sub_dir}${file}" "${prefix}${file}${suffix}" "${source_dir}${triplet}${source_sub_dir}${file}"
done
}
# A trigger that handles the alternatives for /usr/lib[/<triplet>]/nvidia/*.*
if [ "$1" = "triggered" ]; then
slaves="
$(add_slave /usr/lib/nvidia/libglxserver_nvidia.so libglxserver_nvidia.so /usr/lib/nvidia/current/libglxserver_nvidia.so)
$(add_slave /usr/lib/nvidia/nvidia_drv.so nvidia_drv.so /usr/lib/nvidia/current/nvidia_drv.so)
$(add_multiarch_slave /usr/lib vdpau/ libvdpau_nvidia.so.1 /usr/lib nvidia/current/)
$(add_multiarch_slave /usr/lib "" libGLX_nvidia.so.0 /usr/lib nvidia/current/)
$(add_multiarch_slave /usr/lib "" libEGL_nvidia.so.0 /usr/lib nvidia/current/)
$(add_multiarch_slave /usr/lib "" libGLESv1_CM_nvidia.so.1 /usr/lib nvidia/current/)
$(add_multiarch_slave /usr/lib "" libGLESv2_nvidia.so.2 /usr/lib nvidia/current/)
$(add_multiarch_slave /usr/lib "" libcuda.so.1 /usr/lib nvidia/current/)
$(add_multiarch_slave /usr/lib "" libcuda.so /usr/lib nvidia/current/)
$(add_multiarch_slave /usr/lib "" libcudadebugger.so.1 /usr/lib nvidia/current/)
$(add_multiarch_slave /usr/lib "" libnvcuvid.so.1 /usr/lib nvidia/current/)
$(add_multiarch_slave /usr/lib "" libnvcuvid.so /usr/lib nvidia/current/)
$(add_multiarch_slave /usr/lib "" libnvidia-allocator.so.1 /usr/lib nvidia/current/)
$(add_multiarch_slave /usr/lib "" libnvidia-api.so.1 /usr/lib nvidia/current/)
$(add_multiarch_slave /usr/lib "" libnvidia-encode.so.1 /usr/lib nvidia/current/)
$(add_multiarch_slave /usr/lib "" libnvidia-fbc.so.1 /usr/lib nvidia/current/)
$(add_multiarch_slave /usr/lib "" libnvidia-ml.so.1 /usr/lib nvidia/current/)
$(add_multiarch_slave /usr/lib "" libnvidia-ngx.so.1 /usr/lib nvidia/current/)
$(add_multiarch_slave /usr/lib "" libnvidia-nvvm.so.4 /usr/lib nvidia/current/)
$(add_multiarch_slave /usr/lib "" libnvidia-nvvm.so.#DRIVER_VERSION_FULL# /usr/lib nvidia/current/)
$(add_multiarch_slave /usr/lib "" libnvidia-opencl.so.1 /usr/lib nvidia/current/)
$(add_multiarch_slave /usr/lib "" libnvidia-opticalflow.so.1 /usr/lib nvidia/current/)
$(add_multiarch_slave /usr/lib "" libnvidia-ptxjitcompiler.so.1 /usr/lib nvidia/current/)
$(add_multiarch_slave /usr/lib "" libnvoptix.so.1 /usr/lib nvidia/current/)
$(add_slave /usr/share/nvidia/nvoptix.bin nvoptix.bin /usr/lib/x86_64-linux-gnu/nvidia/current/nvoptix.bin)
$(add_multiarch_slave /usr/lib gbm/ nvidia-drm_gbm.so /usr/lib nvidia/current/)
$(add_slave /usr/bin/nvidia-smi nvidia-smi /usr/lib/nvidia/current/nvidia-smi)
$(add_slave /usr/share/man/man1/nvidia-smi.1.gz nvidia-smi.1.gz /usr/lib/nvidia/current/nvidia-smi.1.gz)
$(add_slave /usr/lib/nvidia/nvidia-bug-report.sh nvidia-bug-report.sh /usr/lib/nvidia/current/nvidia-bug-report.sh)
$(add_slave /usr/bin/nvidia-debugdump nvidia-debugdump /usr/lib/nvidia/current/nvidia-debugdump)
$(add_slave /usr/share/nvidia/nvidia-application-profiles-key-documentation nvidia-application-profiles-key-documentation /usr/share/nvidia/nvidia-application-profiles-#DRIVER_VERSION_FULL#-key-documentation)
$(add_slave /usr/bin/nvidia-settings nvidia-settings /usr/lib/nvidia/current/nvidia-settings)
$(add_slave /usr/bin/nv-control-dpy nv-control-dpy /usr/lib/nvidia/current/nv-control-dpy)
$(add_slave /usr/share/applications/nvidia-settings.desktop nvidia-settings.desktop /usr/lib/nvidia/current/nvidia-settings.desktop)
$(add_slave /usr/share/man/man1/nvidia-settings.1.gz nvidia-settings.1.gz /usr/lib/nvidia/current/nvidia-settings.1.gz)
"
conf_slaves="
$(add_multiarch_slave /usr/lib nvidia/ libnvidia-cfg.so.1 /usr/lib nvidia/current/)
$(add_slave /etc/nvidia/nvidia-drm-outputclass.conf nvidia-drm-outputclass.conf /etc/nvidia/current/nvidia-drm-outputclass.conf)
"
kmod_slaves="
$(add_slave /etc/nvidia/nvidia-blacklists-nouveau.conf nvidia-blacklists-nouveau.conf /etc/nvidia/nvidia-#DRIVER_VERSION_FULL#/nvidia-blacklists-nouveau.conf)
$(add_slave /etc/nvidia/nvidia-modprobe.conf nvidia-modprobe.conf /etc/nvidia/nvidia-#DRIVER_VERSION_FULL#/nvidia-modprobe.conf)
$(add_slave /etc/modprobe.d/nvidia-options.conf nvidia-options.conf /etc/nvidia/nvidia-#DRIVER_VERSION_FULL#/nvidia-options.conf)
$(add_slave /etc/nvidia/nvidia-load.conf nvidia-load.conf /etc/nvidia/nvidia-#DRIVER_VERSION_FULL#/nvidia-load.conf)
"
kmod_open_slaves="
$(add_slave /etc/nvidia/nvidia-blacklists-nouveau.conf nvidia-blacklists-nouveau.conf /etc/nvidia/#DRIVER_VERSION_FULL#-open/nvidia-blacklists-nouveau.conf)
$(add_slave /etc/nvidia/nvidia-modprobe.conf nvidia-modprobe.conf /etc/nvidia/#DRIVER_VERSION_FULL#-open/nvidia-modprobe.conf)
$(add_slave /etc/modprobe.d/nvidia-options.conf nvidia-options.conf /etc/nvidia/#DRIVER_VERSION_FULL#-open/nvidia-options.conf)
$(add_slave /etc/nvidia/nvidia-load.conf nvidia-load.conf /etc/nvidia/#DRIVER_VERSION_FULL#-open/nvidia-load.conf)
"
libnvidia_ml_so_slave=
if [ -f /usr/include/nvml.h ]; then
libnvidia_ml_so_slave="$(add_multiarch_slave /usr/lib "" libnvidia-ml.so /usr/lib nvidia/current/)"
fi
normal_alternative=0
open_alternative=0
if echo "$slaves" | grep -q "slave" ; then
if echo "${kmod_slaves}" | grep -q "slave" ; then
normal_alternative=1
fi
if echo "${kmod_open_slaves}" | grep -q "slave" ; then
open_alternative=1
else
# fallback: normal alternative w/o kernel module
normal_alternative=1
fi
fi
if [ "$normal_alternative" = 1 ]; then
update-alternatives --install /usr/lib/nvidia/nvidia nvidia /usr/lib/nvidia/current #DRIVER_VERSION_MAJOR# $slaves $conf_slaves $kmod_slaves $libnvidia_ml_so_slave
else
update-alternatives --remove nvidia /usr/lib/nvidia/current
fi
if [ "$open_alternative" = 1 ]; then
update-alternatives --install /usr/lib/nvidia/nvidia nvidia /usr/lib/nvidia/current-open $((#DRIVER_VERSION_MAJOR# - 1)) $slaves $conf_slaves $kmod_open_slaves $libnvidia_ml_so_slave
else
update-alternatives --remove nvidia /usr/lib/nvidia/current-open
fi
# activate the trigger selecting NVIDIA as GLX provider
dpkg-trigger --no-await register-glx-alternative-nvidia
# let glx-alternative-mesa take over handling libGLX_indirect.so.0
dpkg-trigger --no-await register-glx-alternative-mesa
fi
if [ "$1" = "configure" ]; then
# activate our trigger
dpkg-trigger register-nvidia-alternative
fi
#DEBHELPER#

View File

@ -0,0 +1,14 @@
#!/bin/sh
set -e
if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ]; then
update-alternatives --remove nvidia /usr/lib/nvidia/#DRIVER_VERSION_FULL#-open
update-alternatives --remove nvidia /usr/lib/nvidia/#DRIVER_VERSION_FULL#
dpkg-trigger --no-await register-glx-alternative-nvidia
fi
#DEBHELPER#

View File

@ -0,0 +1,15 @@
interest-await register-nvidia-alternative
interest-await /etc/nvidia/current
interest-await /etc/nvidia/current-open
interest-await /etc/nvidia/nvidia-#DRIVER_VERSION_FULL#
interest-await /etc/nvidia/#DRIVER_VERSION_FULL#-open
interest-await /usr/lib/nvidia/current
interest-await /usr/lib/i386-linux-gnu/nvidia/current
interest-await /usr/lib/x86_64-linux-gnu/nvidia/current
interest-await /usr/lib/aarch64-linux-gnu/nvidia/current
interest-await /usr/lib/powerpc64le-linux-gnu/nvidia/current
interest-await /usr/include/nvml.h

View File

@ -0,0 +1,2 @@
nvidia-cuda-mps-control usr/bin/
nvidia-cuda-mps-server usr/sbin/

View File

@ -0,0 +1 @@
usr/share/man/man1/nvidia-cuda-mps-control.1 usr/share/man/man8/nvidia-cuda-mps-server.8

View File

@ -0,0 +1,5 @@
# The NVIDIA license does not allow any form of modification.
spelling-error-in-binary
hardening-no-bindnow
hardening-no-fortify-functions
hardening-no-pie

View File

@ -0,0 +1,4 @@
README.txt
html/
debian/README.alternatives
supported-gpus/supported-gpus.json

View File

@ -0,0 +1,5 @@
#! /usr/bin/dh-exec
nvidia-bug-report.sh usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/
nvidia-debugdump usr/lib/${DEB_HOST_MULTIARCH}/nvidia/current/
nvidia-application-profiles-#DRIVER_VERSION_FULL#-rc usr/share/nvidia/
nvidia-application-profiles-#DRIVER_VERSION_FULL#-key-documentation usr/share/nvidia/

Some files were not shown because too many files have changed in this diff Show More