From 908778078736bd36f7a60a2d576d415cb8e000fa Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 22 May 2021 07:31:18 +0100 Subject: gentoo resync : 22.05.2021 --- x11-drivers/Manifest.gz | Bin 5028 -> 5030 bytes x11-drivers/nvidia-drivers/Manifest | 32 +- .../nvidia-drivers/nvidia-drivers-460.80.ebuild | 407 ++++++++++++++++++++ .../nvidia-drivers/nvidia-drivers-465.24.02.ebuild | 409 --------------------- .../nvidia-drivers/nvidia-drivers-465.27.ebuild | 409 --------------------- .../nvidia-drivers/nvidia-drivers-465.31.ebuild | 408 ++++++++++++++++++++ x11-drivers/xf86-video-amdgpu/Manifest | 2 +- .../xf86-video-amdgpu-19.1.0.ebuild | 2 +- x11-drivers/xf86-video-ast/Manifest | 2 +- .../xf86-video-ast/xf86-video-ast-1.1.5.ebuild | 2 +- 10 files changed, 835 insertions(+), 838 deletions(-) create mode 100644 x11-drivers/nvidia-drivers/nvidia-drivers-460.80.ebuild delete mode 100644 x11-drivers/nvidia-drivers/nvidia-drivers-465.24.02.ebuild delete mode 100644 x11-drivers/nvidia-drivers/nvidia-drivers-465.27.ebuild create mode 100644 x11-drivers/nvidia-drivers/nvidia-drivers-465.31.ebuild (limited to 'x11-drivers') diff --git a/x11-drivers/Manifest.gz b/x11-drivers/Manifest.gz index a634cb235dfa..969047afa717 100644 Binary files a/x11-drivers/Manifest.gz and b/x11-drivers/Manifest.gz differ diff --git a/x11-drivers/nvidia-drivers/Manifest b/x11-drivers/nvidia-drivers/Manifest index dbb53347dff4..89bf3211a21e 100644 --- a/x11-drivers/nvidia-drivers/Manifest +++ b/x11-drivers/nvidia-drivers/Manifest @@ -13,8 +13,8 @@ DIST NVIDIA-Linux-aarch64-450.102.04.run 80469462 BLAKE2B dcabed08bdd2c4c3287942 DIST NVIDIA-Linux-aarch64-450.119.03.run 80498137 BLAKE2B 1834fb1d1f6254665339b7c0476466223240e8e8fc61223825d7aa51b23becef0c88106dc0b01a59922f815309836f5c03bd6c0dc44096ca150432a83a6201f3 SHA512 60d757be68714aa8d0da754ccdd760858ad787216822766f34ec3c1b85feef37b247feb4d369eef1f2c73be08c99f5d9d6acd344a15058f6d7f71a6eccc2ce25 DIST NVIDIA-Linux-aarch64-460.67.run 112551235 BLAKE2B cc1166454f6e8771c7fe97010906919e9f2afd74ac86321006628f90f4d8dee033c3e09b2d9cac9063fe3fd313c0b529b347bcf38c051588ca7a972617c45026 SHA512 6ba17844dd215967f2f55a6620535464f244075a13f4b2b6d0ffaeeb6d97397fae0ba0de032d971847556d7b78ac8a1010ecec5127f45eb7ec73db87b1507ca1 DIST NVIDIA-Linux-aarch64-460.73.01.run 112529526 BLAKE2B 64481ebba998cf168e4b9b1ad47f474a174e3f5e384889695d5f240a9f8f5f3265efb344b9082e3d1ad74da9fc90381b5d6e72064cde463c6b3bc7bf62d9c520 SHA512 e6a7d0ecbd99b763f7bfc793c6dbea1a64e290e9d200d7e500896dffdc97aca01f14bf0d4d26286f381c8c986210e7cfb0345b004be085aa58578c30a4ba118e -DIST NVIDIA-Linux-aarch64-465.24.02.run 149677255 BLAKE2B 0478850c66ed4cc5c204b4634fd60879d9de11566b087f561eaddc819e2e51f8c48c1997f49758c70844c92736b928832b5f81cbc150c291850c2b161515a84a SHA512 0d5f9c1320ffcb540ac32eb6ca8147fee2d732087d15b6f062a783b6e12a37de33e8f1645349ec442d602a75a6375e908be351d73113b169f64b4291277826cc -DIST NVIDIA-Linux-aarch64-465.27.run 149490303 BLAKE2B 410756e12cc440f8e05aacd35fb8fc1ce462d34d821c033d70cc587983f17ce6ce3cfdcaf8fec7157f5af4844a706aec64ace69d8300aeeb1a59f188f049ced0 SHA512 9be2b26219d04315e944e560fafb4d91acdb26dffa5240d463cf860f73fbafb117f98449992adf50256c34878797ed1e12296f44184a49664241e7a9e48397ee +DIST NVIDIA-Linux-aarch64-460.80.run 112551983 BLAKE2B a07b24484b47ff98ae30a37f563dcdc31ab14b72f91aea2c15f79b6594aa232cafeaa3873a426610dbbf5f08f3d7fbd45fb609f4f5f9d74197f6f5294c6cafa4 SHA512 2ea5b1dd68cfc7c7168444ad917386523bd8aadde7a5341aee2f7d5e8e1047ccbed0f5b29c9c7fc0ef7002c85f61a3f2ef1003a92e0e56e38fe6d346b9175b1e +DIST NVIDIA-Linux-aarch64-465.31.run 149782108 BLAKE2B 3f0efbfe48d901538ed627df127bfe98267ed9fa055c82da3de9e64ea32de53fc2f0b2e0bc2748c3ef0732e5f25db2b51bf8e3315010c70b21dc726575c862eb SHA512 093f74f8b0b068ba1ddd6dd80024d39def935c01bc7e98a3ed9965142ace773565f6768bff118098eb574c9ba0f34e4dbfa65754930e27e153a514310470ae67 DIST NVIDIA-Linux-x86-390.141.run 49589744 BLAKE2B 304672806b89885adbf8459ea99ca872769e44a42ff041a5b79ef05d113d7717f505f543441e7a2fc6c569f6d66391f0380a4f23f3e68108c8de817bf251f850 SHA512 6dfde3b54520070954b45f6bc071251084e1741f55e582b1abd806eb367e4b9ce0015615bf6a887fa784d075b3db08b6940da4163b960969773d1bdc52b4961e DIST NVIDIA-Linux-x86-390.143.run 49327068 BLAKE2B c6e0600885bfd834be6dca18346259a58e05640afe4b1ea394d5795e4c8a4b0fa9fdf5c4a331a128843708ece9e95df2ff7e0b3cf2ac5875b5d731c73423c112 SHA512 17bbcc2f5e9dde3f131b7924ea1e99a591b5e18b835dd324c528d17f74eded94e087c6a9a2b364189851e9972ad27bcd47e901c9ec14eedc568b99890f1e0a4f DIST NVIDIA-Linux-x86_64-390.141.run 85330901 BLAKE2B 7759d8cf6c9a75607b9a3ecd53cdd6f6a93f2f372d740a5a87d4d3f41a22f3bd953cc7dd6a0dc0e23a829ec86df8d65b9de499a76cfd4266a13b0aa3288aceb5 SHA512 5448d70e6e64a6403e61a004d83c69a442dd8ed0d61da3a31d3e3b7943c06c559a66b0f8d135982868ecbf209a965f60dae1a633367630b4d9287f725bbaa53c @@ -23,54 +23,54 @@ DIST NVIDIA-Linux-x86_64-450.102.04.run 141391114 BLAKE2B 019f928464b23d2a86bfdd DIST NVIDIA-Linux-x86_64-450.119.03.run 141295706 BLAKE2B 854dd0063ea1f11e052f6ba5454792ebeb41dc50cd5cde17260d8c715b4401fa19514cfd3d2fad905564607244748e8083880bc2e360a86f8dbca970ebe5e744 SHA512 5557328f445381e23358c8bce220da062cdd3b5d396764228f7eb285e8dd6419bfc3943fc9e98516ad8cd2db13d0d7c125fc9c94c1e565668f76c872140d9082 DIST NVIDIA-Linux-x86_64-460.67.run 177691692 BLAKE2B 25a7d87cc128933a98100d7c5ef37f93c3a870c096eea3228a28ef79d712ce104608f9422221cc1eadc21dccbbc8bc41ab1832795cfee75e217600ed0d76489e SHA512 80fdc023a8ce80e3a103896f28a5564bb43903af6bfc719f755c48eb225e79ec6abf219ab20eb80ada5808ef932ef5fa0fe710c6e0a07dd8a248daff2ba3b898 DIST NVIDIA-Linux-x86_64-460.73.01.run 177241975 BLAKE2B 5a43076c4f2c64ee7761824f8e4bf29dc053cf6ccd143b730ea062303124dbb5afe95882b752cd25e707375bafbca3beaabaee955cd2cf7b73a96190b9340bae SHA512 fa468747770f092b94658ef8c7896f69e05a8818f1269ce219c293cc02b0a042b73b755ef28a3012576dae54984a989cd3262ead674f62bdce4af13feac3c064 -DIST NVIDIA-Linux-x86_64-465.24.02.run 235706017 BLAKE2B 383e7ceee60de40ff74f31ce380c0d4bc6a2f4200a1b1a2e0cb54ce1ce17e216fe953cab18cf6b888de51ab25bdec3c7bc068bbbe1128fb11ac9f40399508752 SHA512 1beb59554a8fafdd61f4ebe6ffc1b714eb2cf67efe0aa7ddae5b146c9c4d932820f93dd91ec79162b65582364cab8ba9559ebf8f5174814eb670bb522f0e357f -DIST NVIDIA-Linux-x86_64-465.27.run 235656975 BLAKE2B 8da00b35fc0fe08d22be426bca7162a10095a06739c8a1b901d8d1ffa60e1a2dbb1cbf34f24c46aa5872a1edd1132d43309790031527598c33134c72804ed3ee SHA512 1d43f436b1305faa2981de6ebfa0916d10127005b6cb765ab6bf0d1e75529ec1eab973d0de6e3ebb39678d2b3f80f2ac9a661ed0c4690d8a823ac7822135cdb2 +DIST NVIDIA-Linux-x86_64-460.80.run 176338282 BLAKE2B ccc97bf40848257cb7a2e7016c831618b4755e9cc6bfd9bf8c60ac0b5d899354196ff2201e8f92ce4d0742d58edd519a2ff2959f35f22030106c4244ca3ac9db SHA512 4ccfdcce53412b337b71d7ccefad2bdc700e2597e78f4e4601e6779f504e3644fe1d29bee7c3a5aad49f39f737e7d35fdf53be002649a19e37cb7688f252347a +DIST NVIDIA-Linux-x86_64-465.31.run 236060463 BLAKE2B dfa877ddeb31961c7cdb621c30b1c61282152c27787e45542ee4a411ad8a08f732b149996a0b522638ad98f47a7c7f575a0f8b65e82413aee7823a6f0ac58426 SHA512 3ea65eda463320d0e2301e45daa5a725bd07f664ab117053f106b981801ae314faef320304f4b87dd8eb8868f9f86478b23fbca51d27ddc3968a5f5300e8cbf9 DIST nvidia-installer-390.141.tar.gz 205299 BLAKE2B b95ddcf9a8d61247572d73faa04558564962782b0eb222601315d741d1ee71fa0636fa87d31105ecc5ec61328d3174a3ed646046e02b6b5f29f071215a0e8bdd SHA512 3848a4ec17510bf4d3060e5ef8aafa1ad921215ec39d26c54b3bbdd8a5867c46e01d247b24b05ad6906fed7fb4ae6dc37346a7da6e5aae88b5b47584c0b07a02 DIST nvidia-installer-390.143.tar.gz 205320 BLAKE2B 5c27dd769ec5a2effc56ea86474ee45b86362c26844d2f902d7bb2ab8e58b2763f4f761341ce4051e85cfd8189eab9d441744f1b9946a6dc46105888dc5ba58a SHA512 a45cbae70e8d9f1108d5e2c04b4beee350b8469df987ff80793dda7fc4e6efe3a787db0d47e7dfe22b88b29647b99cc24ab418666d1ef2fc038143f574faba36 DIST nvidia-installer-450.102.04.tar.gz 197642 BLAKE2B 5d94dee76057eaea236090e2eb8cba4fdf90f4959a0ae26805bc771262a0eb05640846c191f2a5a5485e0584ae07ba64d2989201118594df747c3ac13503f90d SHA512 2c1608c0dd971122978a395edc5a51de6cb76d72aac45b4f9303e1a99e292ec0ddd9c03f2e95b10c357c0da1dc2824197c2553828eedbd0c4434b431aa593f6f DIST nvidia-installer-450.119.03.tar.gz 197635 BLAKE2B 01581676e11622e3c6c32171e699f13483e08a9b5256f6248cad190008a875b0b06561ff4d6732265c35b2429aaf6ba4cddf1a618d46730c88c5de63550bca9e SHA512 7491873e6324aefbe0dcbe57edeb2d1194352c6a9738c3b47f2562eb9e3ad58ca9519e5499f56d1208c2151900e2b43582fdbbe8ca80b6ebee824f8f8050c552 DIST nvidia-installer-460.67.tar.gz 198484 BLAKE2B 0eaf3e3eccd6749e4fe89394905dded58e739f42cbc33c8a91575f4505030a216670fc8c0fd4d1d42659acf301c9ba59d4052a80c6eba6c5db84ed022acb2620 SHA512 8fff0fa13a82cb7eaf2fd1d05be509e9124e67bb05810f8937fb1f16c4a2362a5c1a50bc9a5155cfc90a9bbcee38a54fb5ae0ae164e205900a49f6d21779d54f DIST nvidia-installer-460.73.01.tar.gz 198500 BLAKE2B 4036c8385e7ac59019ba2d189e227f46c52543d619aa9aa91bca726694bc0635e642a9e40b8fc785d7f7fe239062ca3bb7f4815f2c8f4722e6345b8a6f2a8493 SHA512 910e8dfb86147ecba6336f00d09f22d7505337832d0c0ace5d15fdfb355c22b6cd9d350bf469352db13971abb7379d980b05cd0c05271fe654122b92b4fa99ab -DIST nvidia-installer-465.24.02.tar.gz 200388 BLAKE2B 94a8b7daab32195b065ed950149fae31eee155161c4fca3370c61754566693b4034207576436ae09cb6f17d33c9df7f7022dff7f5c95a7fb9dbaebe9b181ec95 SHA512 3a7bb9dbc752fdef0846095966fe4fd064931a94cf98e6de7107184918ce1ec02b81310d8d31ae6146eceee592985c2170e81fe8d78998d9223912d67a7d5e26 -DIST nvidia-installer-465.27.tar.gz 200364 BLAKE2B 320644556e3df28691b73f275cf7c384c4437b7f272dc5a8ded40f7d6171bcf1bfe815f90bfc3c33eca2d1e4d1a446f9a188a8ce84d37153754ef53d162227a0 SHA512 3f969abd6d64096c1b49fb1d6edc86fbe7d8759135c20f74c7d558c287717858e452cba9f5c0c9c42dc0ff40a9bcee79042e3f093ff5b7ed6d726b70522d2add +DIST nvidia-installer-460.80.tar.bz2 144321 BLAKE2B 092014aaa5f41c0b6dcedcfc8fc9036e0c96e045c429d947313a70c933ab47bf0a2942b58747011d9b7ec78d1bb236b5600ee9f9cc44f5f916c40522d4041de2 SHA512 2b83cde25b0a5a267dd2c8e09574d1e78df8759ed31a0312233f39405789b4f3f105a5331f00e1098e82ac5a9e5e5c339b2745149e9eda94252013f0231abb0c +DIST nvidia-installer-465.31.tar.bz2 145645 BLAKE2B 455160cff1173a363d401083443f8c870d2e207c0b20ec6b8976e682c572a5d2561311dc8431ec66a022c4c99a6f9adcc38b9f5c1d29c3e365fd044de70222d0 SHA512 a9a0f377ea435a256faa0b5ee1edb8c8cec1d928f20d8c9fb8d0ded76bb6065033c7f09522a46c6d06a432a8d9486472052ada41558cb3271a05abd485fabbc2 DIST nvidia-modprobe-390.141.tar.gz 39965 BLAKE2B 46c01ec3e53569454a032e42561a81154712485ffb11d0393d9e9007a3825a33c8d045ea7296dd8465ad9b2cee36a639274c55ff31c70e93d334ac9fe724f7b1 SHA512 c0abec334fee4293a55a43edbcc6a7a8cd8ff6b6fbb954b428182542a24eba90f47100977c84ea9cbe557a39fc5fb90677b4f2227f49a6f30a56f6941508f40e DIST nvidia-modprobe-390.143.tar.gz 39968 BLAKE2B 09f043521f195327630c0ca575473da42e051e2d34def22dcfb54295a94ca85e95ff41ee9564765567df19b88f90aba3d8cfffd489054779f2ce7d29f6e64b76 SHA512 066aaf031907fe2ba424e3b92e677ae78b4a938308bea82b7aa20cf0ba5c3678f93b6c9bf8a41fcd4fadcdcc870674a2be777ddcc2a5018974bd56b09a9ef271 DIST nvidia-modprobe-450.102.04.tar.gz 42139 BLAKE2B 79218a4e76dacdafadd31e45a27d3578924db6a74894064ce856498121fbf9d80e7b07046dfc36426340e0cefd78b416b017202bc93858fdf8cc77ba335bbaf8 SHA512 ac9d8d8849606d7ef3772570c976e5efab36f66e83a62f959b28c88cd798bba860052033dc5eb18c0f9e4a6f2d8e6082456d9b1586977a23f240cfa3a750d7ef DIST nvidia-modprobe-450.119.03.tar.gz 42137 BLAKE2B 054879187d33fbaaf4debdaa530b5f70bf19347891b905ac519bcb612146f0c4481629b88b07a872a4aed0f13e25fbbba3d1ed7f96ec3bb8a5c8da0855a1822a SHA512 c299d08c82b3f226f5861a61c523100809eeca90f4573ef5c2d3968f74945aae652b7ad07c859ef31f1df5c3a8687f34af6cf1f5f26e45b928a702de4bc19e73 DIST nvidia-modprobe-460.67.tar.gz 43140 BLAKE2B 8243d355f9d51495c9d09f25ccbcb39c0a6ef472cbfaded98f10818fae655e1cf62ff2edcf40baea72b8cca9eebc947742b2516bb057410239193201bb843538 SHA512 16c8239b54988622196e0eea113173e44ff8b60cdcdf585bf859e6440aff2c6699bb107962776e69056dd7d5e3bbd6289ea628a2255ac27e22ef79521e9baad3 DIST nvidia-modprobe-460.73.01.tar.gz 43136 BLAKE2B eca07b2573b0771989c6fa78a97336151a4ce157f363af0fabe3636d734c5ef4086e3e8e93913a20b0ac2bc1feb2e558575e128f5bc3a5264c13a32de406a055 SHA512 1b8462197cabd99116aeafcae26440eb3b6a535e3fa1de8a941b2fa14dc83944d1722fd58a4a99c76695f1e301cefdd805a3ad7eceee1b0d8a432b91e0c12ffc -DIST nvidia-modprobe-465.24.02.tar.gz 43380 BLAKE2B 83930261cd5aa6b1407fe9f6678c3c2695c19fa905561aedde4f11e86c3f7cd2d722af60acf29d4f7e8d54ce0a4cc9546951318937a69b7ec7140f7cbb87157d SHA512 82b9091a634ed94513e6b557bba8ce701609312d5e664db0f098800e345e58d9b7bdcfe032902c17c1b089b18edc9b4431e4d0b1e40812ddbe147d837638037d -DIST nvidia-modprobe-465.27.tar.gz 43380 BLAKE2B 96db7eb09d923d8b6495ffd43b3d4840ef9272aff9dc3d870d843c687ba59995b3062bb22d2acb2a7352075dabc407a8407a3aeef52735d600104a5f380038b1 SHA512 1da798a4e7f6da9c7cfc73fb9f4233f6968bd83e5fd8b5f696603f50af155c4bff89a7887ec57d2e83c3a87962e239269fca2c958b67b981b4bbf8fa4e9a8c6b +DIST nvidia-modprobe-460.80.tar.bz2 38144 BLAKE2B 8d200c7e819197a1417b3917f4c9b91753c815300d3b2bb4e51597a6d6711191cf9e478dbb1e3ab32b722e77a0129fe172bc2bb40d789a9c659a2e5c61ea15ac SHA512 833728d28c67178c95ff4895ac1d17a459f1b87dcb7748229a282d850274038f58c5f2e5ff4e0915e4204a36ce679147c63706ba2c0ee01b27fa26e3809a6cce +DIST nvidia-modprobe-465.31.tar.bz2 38370 BLAKE2B 0c4c4974d8f1b017bd6676304d5714b19d494fa13bcd986641ab1b523dc20260fd050a1bf3bb729faa51420bb494ceac0b4124abb69fdca388c7e5b13e33c8f8 SHA512 37b1120a26257538ada0ab6d6af0f81ce2b59ac3ce7305ac7a448264fac2ba23156ec89c6e9adb60f4bc43ad0da9f09e7b0acf9f0ceb15bd28f3b86b926ae139 DIST nvidia-persistenced-390.141.tar.gz 55984 BLAKE2B c4e889d15643f6e8a4e37b32d89e14acaa792c681863c74281b17e414021dc56e4692e91e7552762ef8b8ef977284ee2f307b14216a2562a9d30b2ab7a1ba522 SHA512 d9ea32c842d8d13a59128b28ce985fe3a421d2848eac30fc8a671a391c63516b58c46d3c5b21403b4e5b016577d23aebaec1f5b4e59b25a20668120f52e231a5 DIST nvidia-persistenced-390.143.tar.gz 55994 BLAKE2B 1cfa469b84ecc9abdf0423d624244e7023a63225dfb16ac93223c462230b50099e4b59493be2d10cd6f2717e31c02655c76797e3222947d561f02ff72a52dd46 SHA512 37c3eb0bcce83e9b9ac5bdefa736e26e94b82de379a0f5c29e1611631c79103a797e58f5d1dea34221dd3a3f1a521b6db556eed48b1f38465481da2509d2f21a DIST nvidia-persistenced-450.102.04.tar.gz 52485 BLAKE2B 1fec24c86875789303aee8bf4362c9c35f76957a2906e2682aa5c07e914cc2acde769439d88007420904a71526e9f0d03ab9d0a3c5dcd1355047e03958d006f9 SHA512 6c51daaed3e7ecdb8d98bdcf0618e50962895895f88cc45a5f861c08d3c10f590d4a6a3f0a683ce0dce0e327d5977da1a76fdde974a97031dc698120ef990b07 DIST nvidia-persistenced-450.119.03.tar.gz 52488 BLAKE2B bb6c759ce73f8c143d04e0cc5cb05cd0cb39f12f330485a0a4fc628b0ba3752f0bdee686f55675e60c1365ee7d9e0f9dd8c3c883ecb6fab9a1b78903664c20c9 SHA512 b8040d8bff15cb97252b6a7311c1cd0dbcf3dda17f91e8b46a1f950a388a0e2ed72d9ac59c808376dfdb1d1fd64fc721b55b95022f59afef17a37c20c646171b DIST nvidia-persistenced-460.67.tar.gz 53334 BLAKE2B 1354ec98fd2b95d264fd7df6219f639cf5d73173e6f0843a0880e6b18953904412cb756bd2c60432f6ae4c253d047515a9e32a128210fd94386ae6bc9a341b5c SHA512 0b4f7d8aa781c3536f6cd020225d2a3bab4b83498090419198488a2bec811534e61ba90461ae846bd09f4530f19984d77ca41edf0a851b1b700d1c0e053d537f DIST nvidia-persistenced-460.73.01.tar.gz 53338 BLAKE2B 5dac040fbc20a8fa94dd91845d71a78e437ef32a5d80751e7328c40b2e41c2ddf1966eba6dd23455a128e982a5cdb16fe9f5f80fb586d93842a27e103b111cac SHA512 00274992853e4d518b2cd1c8674fc56b8466da134320c318476ac94c1e8526a8f8511f040d68d7ebf62761029c8ce2e84de740d11b4e49c7a829a4cccc2c61ea -DIST nvidia-persistenced-465.24.02.tar.gz 53563 BLAKE2B c21bcd7e9013de984a78a1283f371bf8ff8849ffb2190b2e46288cb07e6703ccfb138542fe5cecc5d728b20e791368bcde2d3cd9f61193fc651d69181bc17616 SHA512 44f0b78809b22139ff05d3645cb056966f4a6e2144ecef79be5c2e2897cd38a1831ecfacaccecaeeb336ce928d25a841800acffb7cc19007b6a11388579370e0 -DIST nvidia-persistenced-465.27.tar.gz 53564 BLAKE2B bb76a591552832fbeae9811b667f45b2e9d136cb170eafe7c675e105c72c11bf6349a240123b6ec4dd53394e63e82a652f4b77080e09bc4a26bbca7f4104e917 SHA512 5e9e0f813cf4927c0746f07763214e3f302bc651a014663fd2a84696709a5e45d7645032690dd453445cc4f22bdd6e03baa3592799bacc8981fff509b3e42b13 +DIST nvidia-persistenced-460.80.tar.bz2 46035 BLAKE2B 91d872aa27f5469a098734e4fea8240b9557e53e8b8e77572ffd01a5263ef425dbff7bcb6bc372ee230609d75a408e50fa086a72bbc220f122f78502b1f0f4ba SHA512 db67b86fae141e2931eedabca5613456ce04013e7d4681a33d6f828327cb08b413825f028f0293e3c4d5255a563dfe2433377b6d4ad0f47afeca374daaad125f +DIST nvidia-persistenced-465.31.tar.bz2 46227 BLAKE2B 57d66035908a4d7e9525538da61fa8038b9c53459d75db20cac170fa851369f5a7f143d76243889510559ed1aa251c48023319bf99947f8cc23eca2bfd1a0919 SHA512 2a447fa7a6b839db5a366f1deda33d74dfb034e664861807b3127d538d3822f9a7ef378bc6a5288a43fc447c64082e0a70551d13d92d560013c81aa48fd91bf8 DIST nvidia-settings-390.141.tar.gz 1297261 BLAKE2B 452870df1ba598692f5da47444eb2daf4db40c79cac98c10b1c994c0ff39fc7936909b9d7788cbfe784999e68a2bdbbc12e85d63c3bc02ac872e6b3c46834697 SHA512 dbf7c389bbdc94291a1b974adfa33414148b1ab752aa7d948a27e91ee1bceb3b8435aceb6b7ef3cb806333572db11b5524667045ef7686b119d7955d2699cb04 DIST nvidia-settings-390.143.tar.gz 1297258 BLAKE2B d63b48c03069d4d2ae7f7034b4bc13ff3a1004bd64ce54ee553e614cb88cb081842b6c1428fd556e031ce69361927074822c5c620d2cde8d37a5887051ff56de SHA512 7bbef03e77e73bb1e05585cfaf6823913e2446b1df8353044ae01f80693bb884fdcc1b38fa51b171756edaa234479cda027d6569d025b120b7b64f226f8eedce DIST nvidia-settings-450.102.04.tar.gz 1229675 BLAKE2B 166b73a0e9fe1cc1c16f83128aa94f3b9ef44fc71004e80c2681299dd564df6b458b52bedfd60eaaecf6142d0ea7d5147cb9c509d4db4e6b85bc72dd4dc75751 SHA512 c514bb3cc72954a52f4821674f9b783ebc0bd8c7294a296716619ddad15f2b63f50ada47797dee1386709deb7d407cb1d6c04532b7ca6e03d84234555751c9a9 DIST nvidia-settings-450.119.03.tar.gz 1229730 BLAKE2B 17c7f4803b1a5ead8ea6616f3575325459aa6abb4759f7146bd99b4cac8c4cde80b92fa2d82897392a5fed20d4f324418ac9990caa4557b0d457e7f3b24fcb71 SHA512 f0c2226e05063bfd78453b561a92e28f64711ba3ce3d82026c39db3cd44959a2cf98f8a781fb604108bf6ef9dfe52cad4a9270b94005d8e4e5134f6ea4966da7 DIST nvidia-settings-460.67.tar.gz 1233189 BLAKE2B 33ffceefea4e184cb1873cdce97db26637e87cd20c82bcabcbfe88bcb084ac3d833ac5688cafa33a5a89383040d5c1c5d46de9c3f9a8ba6174574aa57aea2e46 SHA512 d1828379aa477394747ae3e5d3505e864d38a349dd159a04cb263613380afea9aea2081300b0d2b8ae205b800bfe6e8ba504e612989da394d757f00e4399b617 DIST nvidia-settings-460.73.01.tar.gz 1233791 BLAKE2B 7f32764907f1444ed8a819e5cde7bc6306134eb69afeee8bb4dc2e0c2eb2b929ca00b16b5b698c0fe9dc0cdd3589814442fe008462896f9f02e760e320bb5253 SHA512 12ea1eb791b7b11b54a4e9518efc9c40ac8e33325996e23ff7cedcb33d32e0f83f6b15695b93c7adc9f95aaa7c6a56a6838c900796733cd5d9b642124cc1b207 -DIST nvidia-settings-465.24.02.tar.gz 1233945 BLAKE2B 183d74af414d5e61ac75b61f32312e8a63fab6e5fc174d3f7ba11379e30bd2d28740674aa6452fea09bea2d13999ed6718c5d875935101ceadd9b5d594ca5b61 SHA512 0cefc7111476c9206e373d9af50018721c88df899758786d155a0f51806b13adddf139805d41fb19437c824ba1cdcee20703100c78a068afc7ccce49204e7466 -DIST nvidia-settings-465.27.tar.gz 1233948 BLAKE2B b1c04e5e6104b619a331600a6105d2b93a95004763f7b17d6da2e6c1a3808c76ca8ca8d12a1c523d368dc1db5796d8c441aa3b0b72e188b360d78e201293b329 SHA512 11c700bd3236f642ced900601efaaaab03a85c67016419c0a9a6719ce59b42bdf8c333f116029cf18dc97ebbc2c22c6b26b475e8d106a28fb088a04ed98d0350 +DIST nvidia-settings-460.80.tar.bz2 1061084 BLAKE2B 5604552faef43afda01cd88155d4448aff44a0d08c05a2985042f6d5f28d9510157b11e8131893e4cde474ccf155083e0545ac20586f602de2b45083436bf3a9 SHA512 31abc8a1f62cfa67414a943222a37411e8e5045a0d15a1d7ae8c269c78ab2820d45a2bb0b7e85bea158b365a0093e0796eea12becc32652a41ee13ad8f3b87b6 +DIST nvidia-settings-465.31.tar.bz2 1061200 BLAKE2B a7085e3eddd6e978b7efe349c3f9471210db139a1911e2c57377b7890d7bc9c1d258df16e57af3f031b9c1e19c65086bc8ad01958819c06c4d104ed770bbf6c7 SHA512 1a5631ad64fa2959682c86c6188a2f5f5c864faff85bfda0554d783183f17ce61b13c6adc1125cd7dc24276de32ce152d3fe0e438c58ce57929e6c950a628143 DIST nvidia-xconfig-390.141.tar.gz 140293 BLAKE2B 08ee93be953f75dbe078c557af7c062092ce8a3b53af0735d43b7feabe6d1c99390b9533027fbc5017d207a70dfa5aecf88d211905bf8f0e846f769a6ea16c2b SHA512 9fedee2f720d86bd24e393328249bf970a1f242b9e750543e757eb13ca30f6ecfda6c63441093ab96ae28d5f38d4e55cc6de6316eb82d2a2f33074144a1eef2f DIST nvidia-xconfig-390.143.tar.gz 140282 BLAKE2B 3de0fe4bc0a049381e4504002bbe94887334310ca7b17d83add1237d7c15b7783e4f418acba3e261da564b1c00ca244f4ad02f3d2cbca0f0f68ee2900098fb36 SHA512 0c82dda4dd6db0c21cd9a2b88e4a77129bc4a0be8a17b398497328f4f1cb5c319f0428d7fbc3b0177d69246d55f96b03dd740d3480d67bb03049cd0cbe190132 DIST nvidia-xconfig-450.102.04.tar.gz 141072 BLAKE2B 0d299429ccb10f351de0e7b81fa7ce8199da83db346483a7d791fd77276ff6d70b46ba153cdf6503b945d80f4a0108a6ec02a3955c9d7310de901f0e3b1e6e36 SHA512 f5752d7c49d1cb3c0061caace8cf5899c8d61e76f0b7080e05d70cd77758496dd8646a1551d93a12c8ad5f9fcfd53a49c51206af96f36ec1eec7ccfe59505f2d DIST nvidia-xconfig-450.119.03.tar.gz 141079 BLAKE2B 15200bdc8cfecb2575d95803b62fd110c4ff5bbfbe529ffda35455caba1ce3de91b26b21e40604cf5f57bdca0d6da2754a578ffb376a5582d46c6bbdf0adccbe SHA512 d30f46d56dc3dc0e2ee4c26acb8a229ffb47b5fc45dc288c1c25d197d0138b2cc0a0e94f4a821d5613b359f12b5a34872d7631a9d606916e9f92c61e87cfb0cb DIST nvidia-xconfig-460.67.tar.gz 142323 BLAKE2B 09c7281de09a2c2968b5f4a48eca63110e6db988429c844b55f8efc28fbcd9d44c79ad47149c25f657c2a98ae7576c01b2c9b7f643b8321fe1393adc571ebcaa SHA512 0e65c81ec40d3eaeec036fbd8f46a3052a75ff0ad200c58438ff6c782a5764e62e51d03b4a2080770c32522894641288ac495f62bc39c3d5658b1ff87c9f6cdd DIST nvidia-xconfig-460.73.01.tar.gz 142326 BLAKE2B eb833095365c18fd264086d333d366bf18b312055c59cfe3c50df5d94e4ff3e8dafcd11aab4de1ddfc8594b99216f14054d77263a02063497f6b665a9339a09c SHA512 3e292232a1593cc2893d673b176c1c9738b5c3d8127432d35d5a87d1a142311aec91ff5d59cc2074b1ea2411ac9c188c898fbc6a4c032718f1def92bd862b6dc -DIST nvidia-xconfig-465.24.02.tar.gz 142550 BLAKE2B d0247e4c3cbbd093f8e6a4af4873cc9f85f2b07440bf2aa37c54a54c0e66c7e81dd6dda9381880b0b49a0a3a568cd9bcc8688e9d3534305ec8ceb9857e91293c SHA512 549f6e961eb9406837b02f7a2d0ef8ae61b67117b3e72c0a0edd44cade00ff881a9e14c6101253097021f7950ed7a32fb7df94ef79887a07d5a13098969c1e13 -DIST nvidia-xconfig-465.27.tar.gz 142553 BLAKE2B 01d2f1e843e31fc33edd8072b69bb0d15bbc92e1098917c95b0e5b196310307d29dfec646709a6c954a076503b516e66819228657e1d0c6c154b13b7ebb29f2b SHA512 ff668493049e1946fff2eb649edcfd382ed540da3229e240ebd0589a8db1fef00b0db4e56d4d74b54be0d085b79c92a9753d2685ca6b3f5211212515fba89848 +DIST nvidia-xconfig-460.80.tar.bz2 108464 BLAKE2B 2e4a19d662aff7cb21ef02ea2adaa4997c08ebcc588f96836fb01e6f12bf5f09217ebd49ab8b4ace95f246dc752d3e312915f3e64f131132fbaf0d75685a27dc SHA512 7c1bd0726cd99cea98f9dfa1e7ad4dab049a7555f647edce4c9e081af315c5c32f76b27b9d543056e5547cbe26cf55811f885f61c08a378cc91181494a3053f1 +DIST nvidia-xconfig-465.31.tar.bz2 108616 BLAKE2B 3ed2e0df9e109534192df6a451bfae6c7f71db5d6f56c1d498daf64d60aa6271cab3dc7a0ed956364a14c96259e7816c62c01b73ea109696791c6282b6d0acaf SHA512 bbd0dbb1be452dff7e94ae4a58234d08d7004af02d7b4aba5623712c884b14a7828cc4d930b099231e149d6cae23336704f7a991f0b9ff87e2be967d535e54ab EBUILD nvidia-drivers-390.141-r2.ebuild 10849 BLAKE2B ddd98ffc162302957d18aa4a4688f098ad26bea8d7a12f86146998b3e23a8cac87b0e94628127f47d10b90edeb91d6c90fbfe70a5dd65c788ca40481359fa88d SHA512 c48adaff9f9f95f06a5b973036d5b885856dd954716fb04a9f8d651d2554f64bbeecce3c673db069a007f122ae2bd46c9121e376ed9a71af3eff5b089ae0ed42 EBUILD nvidia-drivers-390.143-r1.ebuild 10851 BLAKE2B 2297d5aae4dee4d7acac7a29fd3070b3037e2c05aec47854e6519a1977acc1bd71b658739fb5ffb1ee277734c19218369ece3f1fba22cd6a2a51cf0faa88c23d SHA512 6b8e80f74528fe4abbac946d0815e61c65420fc20f466a287ded5887cce13bb5880fb3fc76737dd44fdd7b74c36a1be45289eff0e0d7917df458671fddc91785 EBUILD nvidia-drivers-450.102.04-r1.ebuild 11071 BLAKE2B a792c5e83e93e11142ff81ef106f20826e30f374c09760584f9d50d8e49befee62fbddd7a1334b0f622557fb561d19a24c6ce8e7ea2245c2d35de899d746e2c1 SHA512 20197c57a202b1455f98b37ed5157a2996d40023ea9b5cf43c019c29a88deb54209591b45b0a71af9af001d2b92595f40fcba6543319348ca79ed56542c76ebe EBUILD nvidia-drivers-450.119.03.ebuild 11249 BLAKE2B a45267cb693c1ca82ad161798570f384cb4db962f483eeee4616c2369cf811f5342ef1d772e35def0637a98989a73ce9b691665f316658c17838e5da47b334e2 SHA512 337a91bb85c3b00f31ef4c54abcbc2b289325ff569536a2f69d8634b6927d0e3a6765b1907ccd3336f8ab2462a1af14352317fb60775c9df6e0cc7e161208528 EBUILD nvidia-drivers-460.67.ebuild 11233 BLAKE2B c7b180f613c520a5a450af53354d7ef22a25e9a88f85fa6c43b60a2a8626e41515a3e77b6e7d1e745c381a218ed45705c08c3befe92ac1feb072c9cc9e524594 SHA512 89046a08b8b968d9b0146455b70761924b867c0bbe2e6a0145a8f698d329f592bdc332632f50bca998e7d2fcf369d2c61262d12bdd65f513f1d6df07ee61d313 EBUILD nvidia-drivers-460.73.01.ebuild 11234 BLAKE2B d718ff03860759fcbd523a1bedde81500efda774a9a9d36415e8bf8845ce54bdb6f12ec9f37e4e72adaef962a3836ddb199222a40e0095cbc982f7221f1af7f1 SHA512 afe1c81ca6985151af389f9c230392ceafadc743fe5c025171b6729157cb97ed59cb35489742d6c7baf7b09f8353459467e2bf7148f712fc834c658dbbb306d4 -EBUILD nvidia-drivers-465.24.02.ebuild 11353 BLAKE2B 3f0e866da5fd8db8ff96ca6e1aa978b2a3b6273132e66a3bd543d456b2cda6076ffcd9e96c4360af1329e0b2ed0fb223b819629dc9eb65e4819da38968fd8a80 SHA512 fe6ff772b8579cf69d57073419a3f393e474d448de0a925388c576ff0e6aa05ecf79d988a53d192cbe13475e5e60dad0d9c9d66958d413d781f1a0a5ebafbead -EBUILD nvidia-drivers-465.27.ebuild 11356 BLAKE2B c0e4039484d00f93df688b2fdd47d65c9f8b3a2654deb47daf04ad99c4707b243214edba3f478bf832169231335a79396e010ff60acc3da9461947a0e12aa68c SHA512 f8fb2b7890f3edde7f3b31ca8a440acb209036647b43d845282de41cea34abfdd4ded2188aec49419bd73f36a207da74fb8f56fc6fa25467784145dfc3551524 +EBUILD nvidia-drivers-460.80.ebuild 11081 BLAKE2B 6ae3f863567f115dd0aa62f1152b9af0aababe7520dcb93046cf9eeafa64a26ba9cada5ecb49db7d8b6632456df9067cb7009d7a96364258714d02e21b0da0e6 SHA512 facd10d3780bf0c0c057c1d4f2226fc24b70922256baa9ed3cdc6df38c7c9ffb1d3c65e0e34ad26e213ef5d019564d98f2f2c56b7ca412beffbc52c30aacf379 +EBUILD nvidia-drivers-465.31.ebuild 11200 BLAKE2B e354806fd7175b2e318a050975c0de2a3735137da82f1b1f823507dee22141e444deedad8da12ac0b6dde682df77e8babaded4a760a4d1fba18f55d55ac4fb62 SHA512 f61e16e77d99896c2f558253e8a95f29aa2874157b6f0ed902285b46c46cba64eba1431deff28142b6f959c67f4df0ef8faee7345e4b74b1b002962d3a12f09f MISC metadata.xml 888 BLAKE2B c1692e287a60432083543e47445339c17c3bbfb8d61fa58b8205e7dc8bbed33bea60f47fa6674c563c72c3c56e9766ae4f33b4a943dfae76c30e51603b158156 SHA512 c8d9975e1c5be02971bbfbcb545686034f6f02956d0dde98afd5d9779478e883c2ead731e9ccab8cd0b695437dd1d1cbcc41dd234210b78d40294bfcb07128ab diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-460.80.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-460.80.ebuild new file mode 100644 index 000000000000..7817ab07bcea --- /dev/null +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-460.80.ebuild @@ -0,0 +1,407 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MODULES_OPTIONAL_USE="driver" +inherit desktop linux-info linux-mod multilib-build optfeature \ + readme.gentoo-r1 systemd toolchain-funcs unpacker + +NV_KERNEL_MAX="5.12" +NV_URI="https://download.nvidia.com/XFree86/" + +DESCRIPTION="NVIDIA Accelerated Graphics Driver" +HOMEPAGE="https://www.nvidia.com/download/index.aspx" +SRC_URI=" + amd64? ( ${NV_URI}Linux-x86_64/${PV}/NVIDIA-Linux-x86_64-${PV}.run ) + arm64? ( ${NV_URI}Linux-aarch64/${PV}/NVIDIA-Linux-aarch64-${PV}.run ) + ${NV_URI}nvidia-installer/nvidia-installer-${PV}.tar.bz2 + ${NV_URI}nvidia-modprobe/nvidia-modprobe-${PV}.tar.bz2 + ${NV_URI}nvidia-persistenced/nvidia-persistenced-${PV}.tar.bz2 + ${NV_URI}nvidia-settings/nvidia-settings-${PV}.tar.bz2 + ${NV_URI}nvidia-xconfig/nvidia-xconfig-${PV}.tar.bz2" +# nvidia-installer is unused but here for GPL-2's "distribute sources" +S="${WORKDIR}" + +LICENSE="GPL-2 MIT NVIDIA-r2 ZLIB" +SLOT="0/${PV%%.*}" +KEYWORDS="-* ~amd64" +IUSE="+X +driver static-libs +tools" + +COMMON_DEPEND=" + acct-group/video + acct-user/nvpd + net-libs/libtirpc + tools? ( + dev-libs/atk + dev-libs/glib:2 + dev-libs/jansson + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:3 + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXxf86vm + x11-libs/pango + )" +RDEPEND=" + ${COMMON_DEPEND} + X? ( + media-libs/libglvnd[X,${MULTILIB_USEDEP}] + x11-libs/libX11[${MULTILIB_USEDEP}] + x11-libs/libXext[${MULTILIB_USEDEP}] + )" +DEPEND=" + ${COMMON_DEPEND} + static-libs? ( + x11-libs/libX11 + x11-libs/libXext + ) + tools? ( + media-libs/libglvnd + sys-apps/dbus + x11-base/xorg-proto + x11-libs/libXrandr + x11-libs/libXv + x11-libs/libvdpau + )" +BDEPEND=" + app-misc/pax-utils + virtual/pkgconfig" + +QA_PREBUILT="opt/* usr/lib*" + +PATCHES=( + "${FILESDIR}"/nvidia-modprobe-390.141-uvm-perms.patch +) +DOCS=( + README.txt NVIDIA_Changelog supported-gpus/supported-gpus.json + nvidia-settings/doc/{FRAMELOCK,NV-CONTROL-API}.txt +) +HTML_DOCS=( html/. ) + +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS="Users should be in the 'video' group to use NVIDIA devices. +You can add yourself by using: gpasswd -a my-user video + +For general information on using nvidia-drivers, please see: +https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers" + +pkg_setup() { + use driver || return + + local CONFIG_CHECK=" + PROC_FS + ~DRM_KMS_HELPER + ~SYSVIPC + ~!LOCKDEP + !DEBUG_MUTEXES" + local ERROR_DRM_KMS_HELPER="CONFIG_DRM_KMS_HELPER: is not set but needed for Xorg auto-detection + of drivers (no custom config), and optional nvidia-drm.modeset=1. + Cannot be directly selected in the kernel's menuconfig, so enable + options such as CONFIG_DRM_FBDEV_EMULATION instead." + + if kernel_is -lt 5 10; then + CONFIG_CHECK+=" PM" # needed since 460.67 (bug #778920) + local ERROR_PM="CONFIG_PM: is not set but needed with kernel version <5.10" + fi + + BUILD_PARAMS='NV_VERBOSE=1 IGNORE_CC_MISMATCH=yes SYSSRC="${KV_DIR}" SYSOUT="${KV_OUT_DIR}"' + BUILD_TARGETS="modules" # defaults' clean sometimes deletes modules + MODULE_NAMES=" + nvidia(video:kernel) + nvidia-drm(video:kernel) + nvidia-modeset(video:kernel) + nvidia-uvm(video:kernel)" + + linux-mod_pkg_setup + + if [[ ${MERGE_TYPE} != binary ]] && kernel_is -gt ${NV_KERNEL_MAX/./ }; then + ewarn "Kernel ${KV_MAJOR}.${KV_MINOR} is either known to break this version of nvidia-drivers" + ewarn "or was not tested with it. It is recommended to use one of:" + ewarn " <=sys-kernel/gentoo-kernel-${NV_KERNEL_MAX}" + ewarn " <=sys-kernel/gentoo-sources-${NV_KERNEL_MAX}" + ewarn "You are free to try or use /etc/portage/patches, but support will" + ewarn "not be given and issues wait until NVIDIA releases a fixed version." + ewarn + ewarn "Do _not_ file a bug report if run into issues." + ewarn + fi +} + +src_prepare() { + # make user patches usable across versions + rm nvidia-modprobe && mv nvidia-modprobe{-${PV},} || die + rm nvidia-persistenced && mv nvidia-persistenced{-${PV},} || die + rm nvidia-settings && mv nvidia-settings{-${PV},} || die + rm nvidia-xconfig && mv nvidia-xconfig{-${PV},} || die + + default + + # prevent detection of incomplete kernel DRM support (bug #603818) + sed 's/defined(CONFIG_DRM)/defined(CONFIG_DRM_KMS_HELPER)/' \ + -i kernel/conftest.sh || die + + sed -e '/Exec=\|Icon=/s/_.*/nvidia-settings/' \ + -e '/Categories=/s/_.*/System;Settings;/' \ + -i nvidia-settings/doc/nvidia-settings.desktop || die + + # remove gtk2 support (bug #592730) + sed '/^GTK2LIB = /d;/INSTALL.*GTK2LIB/,+1d' \ + -i nvidia-settings/src/Makefile || die + + sed 's/__USER__/nvpd/' \ + nvidia-persistenced/init/systemd/nvidia-persistenced.service.template \ + > nvidia-persistenced.service || die + + gzip -d nvidia-{cuda-mps-control,smi}.1.gz || die +} + +src_compile() { + nvidia-drivers_make() { + emake -C nvidia-${1} ${2} \ + PREFIX="${EPREFIX}/usr" \ + HOST_CC="$(tc-getBUILD_CC)" \ + HOST_LD="$(tc-getBUILD_LD)" \ + NV_USE_BUNDLED_LIBJANSSON=0 \ + NV_VERBOSE=1 DO_STRIP= OUTPUTDIR=out + } + + tc-export AR CC LD OBJCOPY + + # may no longer be relevant but kept as a safety + export DISTCC_DISABLE=1 CCACHE_DISABLE=1 + + use driver && linux-mod_src_compile + + nvidia-drivers_make modprobe + nvidia-drivers_make persistenced + use X && nvidia-drivers_make xconfig + + if use tools; then + nvidia-drivers_make settings + elif use static-libs; then + nvidia-drivers_make settings/src out/libXNVCtrl.a + fi +} + +src_install() { + nvidia-drivers_make_install() { + emake -C nvidia-${1} install \ + DESTDIR="${D}" \ + PREFIX="${EPREFIX}/usr" \ + LIBDIR="${ED}/usr/$(get_libdir)" \ + NV_USE_BUNDLED_LIBJANSSON=0 \ + NV_VERBOSE=1 DO_STRIP= MANPAGE_GZIP= OUTPUTDIR=out + } + + nvidia-drivers_libs_install() { + local libs=( + EGL_nvidia + GLESv1_CM_nvidia + GLESv2_nvidia + cuda + nvcuvid + nvidia-allocator + nvidia-eglcore + nvidia-encode + nvidia-glcore + nvidia-glsi + nvidia-glvkspirv + nvidia-ml + nvidia-opencl + nvidia-opticalflow + nvidia-ptxjitcompiler + nvidia-tls + ) + use amd64 && libs+=( nvidia-compiler ) + + if use X; then + libs+=( + GLX_nvidia + vdpau_nvidia + ) + if use amd64; then + libs+=( + nvidia-fbc + nvidia-ifr + ) + fi + fi + + local libdir=. + if [[ ${ABI} == x86 ]]; then + libdir+=/32 + else + libs+=( + nvidia-cbl + nvidia-cfg + nvidia-rtcore + nvoptix + ) + use amd64 && libs+=( nvidia-ngx ) + fi + + local lib soname + for lib in "${libs[@]}"; do + lib=lib${lib}.so.${PV} + + # auto-detect soname and create appropriate symlinks + soname=$(scanelf -qF'%S#F' ${lib}) || die "Scanning ${lib} failed" + if [[ ${soname} && ${soname} != ${lib} ]]; then + ln -s ${lib} ${libdir}/${soname} || die + fi + ln -s ${lib} ${libdir}/${lib%.so*}.so || die + + dolib.so ${libdir}/${lib%.so*}* + done + } + + if use driver; then + linux-mod_src_install + + insinto /etc/modprobe.d + newins "${FILESDIR}"/nvidia-460.conf nvidia.conf + doins "${FILESDIR}"/nvidia-blacklist-nouveau.conf + doins "${FILESDIR}"/nvidia-rmmod.conf + + # used for gpu verification with binpkgs (not kept) + insinto /usr/share/nvidia + doins supported-gpus/supported-gpus.json + fi + + if use X; then + exeinto /usr/$(get_libdir)/xorg/modules/drivers + doexe nvidia_drv.so + + exeinto /usr/$(get_libdir)/xorg/modules/extensions + newexe libglxserver_nvidia.so{.${PV},} + + insinto /usr/share/X11/xorg.conf.d + newins {,50-}nvidia-drm-outputclass.conf + + # vulkan icd uses libGLX_nvidia.so and so requires X + insinto /usr/share/vulkan/icd.d + doins nvidia_icd.json + insinto /usr/share/vulkan/implicit_layer.d + doins nvidia_layers.json + fi + + insinto /usr/share/glvnd/egl_vendor.d + doins 10_nvidia.json + + insinto /etc/OpenCL/vendors + doins nvidia.icd + + insinto /etc/nvidia + newins nvidia-application-profiles{-${PV},}-rc + + # install built helpers + nvidia-drivers_make_install modprobe + # allow video group to load mods and create devs (bug #505092) + fowners root:video /usr/bin/nvidia-modprobe + fperms 4710 /usr/bin/nvidia-modprobe + + nvidia-drivers_make_install persistenced + newconfd "${FILESDIR}/nvidia-persistenced.confd" nvidia-persistenced + newinitd "${FILESDIR}/nvidia-persistenced.initd" nvidia-persistenced + systemd_dounit nvidia-persistenced.service + + use X && nvidia-drivers_make_install xconfig + + if use tools; then + nvidia-drivers_make_install settings + doicon nvidia-settings/doc/nvidia-settings.png + domenu nvidia-settings/doc/nvidia-settings.desktop + + insinto /usr/share/nvidia + newins nvidia-application-profiles{-${PV},}-key-documentation + + exeinto /etc/X11/xinit/xinitrc.d + newexe "${FILESDIR}"/95-nvidia-settings-r1 95-nvidia-settings + fi + + if use static-libs; then + dolib.a nvidia-settings/src/out/libXNVCtrl.a + + insinto /usr/include/NVCtrl + doins nvidia-settings/src/libXNVCtrl/NVCtrl{Lib,}.h + fi + + # install prebuilt-only helpers + exeinto /opt/bin + + doexe nvidia-cuda-mps-control + doman nvidia-cuda-mps-control.1 + doexe nvidia-cuda-mps-server + + doexe nvidia-debugdump + dobin nvidia-bug-report.sh + + doexe nvidia-smi + doman nvidia-smi.1 + + # install prebuilt-only libraries + multilib_foreach_abi nvidia-drivers_libs_install + + # install systemd sleep services + exeinto /lib/systemd/system-sleep + doexe nvidia + dobin nvidia-sleep.sh + systemd_dounit nvidia-{hibernate,resume,suspend}.service + + einstalldocs + readme.gentoo_create_doc +} + +pkg_preinst() { + use driver || return + linux-mod_pkg_preinst + + # set video group id based on live system (bug #491414) + local g=$(getent group video | cut -d: -f3) + [[ ${g} ]] || die "Failed to determine video group id" + sed "s/PACKAGE/${PF}/;s/VIDEOGID/${g}/" \ + -i "${ED}"/etc/modprobe.d/nvidia.conf || die + + # try to find driver mismatches using temporary supported-gpus.json + for g in $(grep -l 0x10de /sys/bus/pci/devices/*/vendor 2>/dev/null); do + g=$(grep -io "\"devid\":\"$(<${g%vendor}device)\"[^}]*branch\":\"[0-9]*" \ + "${ED}"/usr/share/nvidia/supported-gpus.json 2>/dev/null) + if [[ ${g} ]]; then + g=$((${g##*\"}+1)) + if ver_test -ge ${g}; then + NV_LEGACY_MASK=">=${CATEGORY}/${PN}-${g}" + break + fi + fi + done + rm "${ED}"/usr/share/nvidia/supported-gpus.json || die +} + +pkg_postinst() { + use driver && linux-mod_pkg_postinst + + readme.gentoo_print_elog + + optfeature "wayland EGLStream with nvidia-drm.modeset=1" gui-libs/egl-wayland + + if [[ -r /proc/driver/nvidia/version && + $(grep -o ' [0-9.]* ' /proc/driver/nvidia/version) != " ${PV} " ]]; then + ewarn "Currently loaded NVIDIA modules do not match the newly installed" + ewarn "libraries and will lead to GPU-using application issues." + use driver && ewarn "The easiest way to fix this is usually to reboot." + fi + + if [[ ${NV_LEGACY_MASK} ]]; then + ewarn "You are installing a version of nvidia-drivers known not to work" + ewarn "with a GPU of the current system. If unwanted, add the mask:" + if [[ -d ${EROOT}/etc/portage/package.mask ]]; then + ewarn " echo '${NV_LEGACY_MASK}' > ${EROOT}/etc/portage/package.mask/${PN}" + else + ewarn " echo '${NV_LEGACY_MASK}' >> ${EROOT}/etc/portage/package.mask" + fi + ewarn "...then downgrade to a legacy branch if possible. For details, see:" + ewarn "https://www.nvidia.com/object/IO_32667.html" + fi +} diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-465.24.02.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-465.24.02.ebuild deleted file mode 100644 index c5544af8ebf7..000000000000 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-465.24.02.ebuild +++ /dev/null @@ -1,409 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -MODULES_OPTIONAL_USE="driver" -inherit desktop linux-info linux-mod multilib-build optfeature \ - readme.gentoo-r1 systemd toolchain-funcs unpacker - -NV_KERNEL_MAX="5.12" -NV_BIN_URI="https://download.nvidia.com/XFree86/Linux-" -NV_GIT_URI="https://github.com/NVIDIA/nvidia-" - -DESCRIPTION="NVIDIA Accelerated Graphics Driver" -HOMEPAGE="https://www.nvidia.com/download/index.aspx" -SRC_URI=" - amd64? ( ${NV_BIN_URI}x86_64/${PV}/NVIDIA-Linux-x86_64-${PV}.run ) - arm64? ( ${NV_BIN_URI}aarch64/${PV}/NVIDIA-Linux-aarch64-${PV}.run ) - ${NV_GIT_URI}installer/archive/${PV}.tar.gz -> nvidia-installer-${PV}.tar.gz - ${NV_GIT_URI}modprobe/archive/${PV}.tar.gz -> nvidia-modprobe-${PV}.tar.gz - ${NV_GIT_URI}persistenced/archive/${PV}.tar.gz -> nvidia-persistenced-${PV}.tar.gz - ${NV_GIT_URI}settings/archive/${PV}.tar.gz -> nvidia-settings-${PV}.tar.gz - ${NV_GIT_URI}xconfig/archive/${PV}.tar.gz -> nvidia-xconfig-${PV}.tar.gz" -# nvidia-installer is unused but here for GPL-2's "distribute sources" -S="${WORKDIR}" - -LICENSE="GPL-2 MIT NVIDIA-r2 ZLIB" -SLOT="0/${PV%%.*}" -KEYWORDS="-* ~amd64" -IUSE="+X +driver static-libs +tools" - -COMMON_DEPEND=" - acct-group/video - acct-user/nvpd - net-libs/libtirpc - tools? ( - dev-libs/atk - dev-libs/glib:2 - dev-libs/jansson - x11-libs/cairo - x11-libs/gdk-pixbuf:2 - x11-libs/gtk+:3 - x11-libs/libX11 - x11-libs/libXext - x11-libs/libXxf86vm - x11-libs/pango - )" -RDEPEND=" - ${COMMON_DEPEND} - X? ( - media-libs/libglvnd[X,${MULTILIB_USEDEP}] - x11-libs/libX11[${MULTILIB_USEDEP}] - x11-libs/libXext[${MULTILIB_USEDEP}] - )" -DEPEND=" - ${COMMON_DEPEND} - static-libs? ( - x11-libs/libX11 - x11-libs/libXext - ) - tools? ( - media-libs/libglvnd - sys-apps/dbus - x11-base/xorg-proto - x11-libs/libXrandr - x11-libs/libXv - x11-libs/libvdpau - )" -BDEPEND=" - app-misc/pax-utils - virtual/pkgconfig" - -QA_PREBUILT="opt/* usr/lib*" - -PATCHES=( - "${FILESDIR}"/nvidia-modprobe-390.141-uvm-perms.patch -) -DOCS=( - README.txt NVIDIA_Changelog supported-gpus/supported-gpus.json - nvidia-settings/doc/{FRAMELOCK,NV-CONTROL-API}.txt -) -HTML_DOCS=( html/. ) - -DISABLE_AUTOFORMATTING="yes" -DOC_CONTENTS="Users should be in the 'video' group to use NVIDIA devices. -You can add yourself by using: gpasswd -a my-user video - -For general information on using nvidia-drivers, please see: -https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers" - -pkg_setup() { - use driver || return - - local CONFIG_CHECK=" - PROC_FS - ~DRM_KMS_HELPER - ~SYSVIPC - ~!LOCKDEP - !DEBUG_MUTEXES" - local ERROR_DRM_KMS_HELPER="CONFIG_DRM_KMS_HELPER: is not set but needed for Xorg auto-detection - of drivers (no custom config), and optional nvidia-drm.modeset=1. - Cannot be directly selected in the kernel's menuconfig, so enable - options such as CONFIG_DRM_FBDEV_EMULATION instead." - - if kernel_is -lt 5 10; then - CONFIG_CHECK+=" PM" # needed since 460.67 (bug #778920) - local ERROR_PM="CONFIG_PM: is not set but needed with kernel version <5.10" - fi - - BUILD_PARAMS='NV_VERBOSE=1 IGNORE_CC_MISMATCH=yes SYSSRC="${KV_DIR}" SYSOUT="${KV_OUT_DIR}"' - BUILD_TARGETS="modules" # defaults' clean sometimes deletes modules - MODULE_NAMES=" - nvidia(video:kernel) - nvidia-drm(video:kernel) - nvidia-modeset(video:kernel) - nvidia-uvm(video:kernel)" - # nvidia-peermem(video:kernel) - skipping unless there is a demand for it - - linux-mod_pkg_setup - - if [[ ${MERGE_TYPE} != binary ]] && kernel_is -gt ${NV_KERNEL_MAX/./ }; then - ewarn "Kernel ${KV_MAJOR}.${KV_MINOR} is either known to break this version of nvidia-drivers" - ewarn "or was not tested with it. It is recommended to use one of:" - ewarn " <=sys-kernel/gentoo-kernel-${NV_KERNEL_MAX}" - ewarn " <=sys-kernel/gentoo-sources-${NV_KERNEL_MAX}" - ewarn "You are free to try or use /etc/portage/patches, but support will" - ewarn "not be given and issues wait until NVIDIA releases a fixed version." - ewarn - ewarn "Do _not_ file a bug report if run into issues." - ewarn - fi -} - -src_prepare() { - # make user patches usable across versions - rm nvidia-modprobe && mv nvidia-modprobe{-${PV},} || die - rm nvidia-persistenced && mv nvidia-persistenced{-${PV},} || die - rm nvidia-settings && mv nvidia-settings{-${PV},} || die - rm nvidia-xconfig && mv nvidia-xconfig{-${PV},} || die - - default - - # prevent detection of incomplete kernel DRM support (bug #603818) - sed 's/defined(CONFIG_DRM)/defined(CONFIG_DRM_KMS_HELPER)/' \ - -i kernel/conftest.sh || die - - sed -e '/Exec=\|Icon=/s/_.*/nvidia-settings/' \ - -e '/Categories=/s/_.*/System;Settings;/' \ - -i nvidia-settings/doc/nvidia-settings.desktop || die - - # remove gtk2 support (bug #592730) - sed '/^GTK2LIB = /d;/INSTALL.*GTK2LIB/,+1d' \ - -i nvidia-settings/src/Makefile || die - - sed 's/__USER__/nvpd/' \ - nvidia-persistenced/init/systemd/nvidia-persistenced.service.template \ - > nvidia-persistenced.service || die - - gzip -d nvidia-{cuda-mps-control,smi}.1.gz || die -} - -src_compile() { - nvidia-drivers_make() { - emake -C nvidia-${1} ${2} \ - PREFIX="${EPREFIX}/usr" \ - HOST_CC="$(tc-getBUILD_CC)" \ - HOST_LD="$(tc-getBUILD_LD)" \ - NV_USE_BUNDLED_LIBJANSSON=0 \ - NV_VERBOSE=1 DO_STRIP= OUTPUTDIR=out - } - - tc-export AR CC LD OBJCOPY - - # may no longer be relevant but kept as a safety - export DISTCC_DISABLE=1 CCACHE_DISABLE=1 - - use driver && linux-mod_src_compile - - nvidia-drivers_make modprobe - nvidia-drivers_make persistenced - use X && nvidia-drivers_make xconfig - - if use tools; then - nvidia-drivers_make settings - elif use static-libs; then - nvidia-drivers_make settings/src out/libXNVCtrl.a - fi -} - -src_install() { - nvidia-drivers_make_install() { - emake -C nvidia-${1} install \ - DESTDIR="${D}" \ - PREFIX="${EPREFIX}/usr" \ - LIBDIR="${ED}/usr/$(get_libdir)" \ - NV_USE_BUNDLED_LIBJANSSON=0 \ - NV_VERBOSE=1 DO_STRIP= MANPAGE_GZIP= OUTPUTDIR=out - } - - nvidia-drivers_libs_install() { - local libs=( - EGL_nvidia - GLESv1_CM_nvidia - GLESv2_nvidia - cuda - nvcuvid - nvidia-allocator - nvidia-eglcore - nvidia-encode - nvidia-glcore - nvidia-glsi - nvidia-glvkspirv - nvidia-ml - nvidia-opencl - nvidia-opticalflow - nvidia-ptxjitcompiler - nvidia-tls - ) - use amd64 && libs+=( nvidia-compiler ) - - if use X; then - libs+=( - GLX_nvidia - vdpau_nvidia - ) - if use amd64; then - libs+=( - nvidia-fbc - nvidia-ifr - ) - fi - fi - - local libdir=. - if [[ ${ABI} == x86 ]]; then - libdir+=/32 - else - libs+=( - nvidia-cbl - nvidia-cfg - nvidia-rtcore - nvoptix - ) - use amd64 && libs+=( nvidia-ngx ) - fi - - local lib soname - for lib in "${libs[@]}"; do - lib=lib${lib}.so.${PV} - - # auto-detect soname and create appropriate symlinks - soname=$(scanelf -qF'%S#F' ${lib}) || die "Scanning ${lib} failed" - if [[ ${soname} && ${soname} != ${lib} ]]; then - ln -s ${lib} ${libdir}/${soname} || die - fi - ln -s ${lib} ${libdir}/${lib%.so*}.so || die - - dolib.so ${libdir}/${lib%.so*}* - done - } - - if use driver; then - linux-mod_src_install - - insinto /etc/modprobe.d - newins "${FILESDIR}"/nvidia-460.conf nvidia.conf - doins "${FILESDIR}"/nvidia-blacklist-nouveau.conf - doins "${FILESDIR}"/nvidia-rmmod.conf - - # used for gpu verification with binpkgs (not kept) - insinto /usr/share/nvidia - doins supported-gpus/supported-gpus.json - fi - - if use X; then - exeinto /usr/$(get_libdir)/xorg/modules/drivers - doexe nvidia_drv.so - - exeinto /usr/$(get_libdir)/xorg/modules/extensions - newexe libglxserver_nvidia.so{.${PV},} - - insinto /usr/share/X11/xorg.conf.d - newins {,50-}nvidia-drm-outputclass.conf - - # vulkan icd uses libGLX_nvidia.so and so requires X - insinto /usr/share/vulkan/icd.d - doins nvidia_icd.json - insinto /usr/share/vulkan/implicit_layer.d - doins nvidia_layers.json - fi - - insinto /usr/share/glvnd/egl_vendor.d - doins 10_nvidia.json - - insinto /etc/OpenCL/vendors - doins nvidia.icd - - insinto /etc/nvidia - newins nvidia-application-profiles{-${PV},}-rc - - # install built helpers - nvidia-drivers_make_install modprobe - # allow video group to load mods and create devs (bug #505092) - fowners root:video /usr/bin/nvidia-modprobe - fperms 4710 /usr/bin/nvidia-modprobe - - nvidia-drivers_make_install persistenced - newconfd "${FILESDIR}/nvidia-persistenced.confd" nvidia-persistenced - newinitd "${FILESDIR}/nvidia-persistenced.initd" nvidia-persistenced - systemd_dounit nvidia-persistenced.service - - use X && nvidia-drivers_make_install xconfig - - if use tools; then - nvidia-drivers_make_install settings - doicon nvidia-settings/doc/nvidia-settings.png - domenu nvidia-settings/doc/nvidia-settings.desktop - - insinto /usr/share/nvidia - newins nvidia-application-profiles{-${PV},}-key-documentation - - exeinto /etc/X11/xinit/xinitrc.d - newexe "${FILESDIR}"/95-nvidia-settings-r1 95-nvidia-settings - fi - - if use static-libs; then - dolib.a nvidia-settings/src/out/libXNVCtrl.a - - insinto /usr/include/NVCtrl - doins nvidia-settings/src/libXNVCtrl/NVCtrl{Lib,}.h - fi - - # install prebuilt-only helpers - exeinto /opt/bin - - doexe nvidia-cuda-mps-control - doman nvidia-cuda-mps-control.1 - doexe nvidia-cuda-mps-server - - doexe nvidia-debugdump - dobin nvidia-bug-report.sh - - doexe nvidia-smi - doman nvidia-smi.1 - - # install prebuilt-only libraries - multilib_foreach_abi nvidia-drivers_libs_install - - # install systemd sleep services - exeinto /lib/systemd/system-sleep - doexe systemd/system-sleep/nvidia - dobin systemd/nvidia-sleep.sh - systemd_dounit systemd/system/nvidia-{hibernate,resume,suspend}.service - - einstalldocs - readme.gentoo_create_doc -} - -pkg_preinst() { - use driver || return - linux-mod_pkg_preinst - - # set video group id based on live system (bug #491414) - local g=$(getent group video | cut -d: -f3) - [[ ${g} ]] || die "Failed to determine video group id" - sed "s/PACKAGE/${PF}/;s/VIDEOGID/${g}/" \ - -i "${ED}"/etc/modprobe.d/nvidia.conf || die - - # try to find driver mismatches using temporary supported-gpus.json - for g in $(grep -l 0x10de /sys/bus/pci/devices/*/vendor 2>/dev/null); do - g=$(grep -io "\"devid\":\"$(<${g%vendor}device)\"[^}]*branch\":\"[0-9]*" \ - "${ED}"/usr/share/nvidia/supported-gpus.json 2>/dev/null) - if [[ ${g} ]]; then - g=$((${g##*\"}+1)) - if ver_test -ge ${g}; then - NV_LEGACY_MASK=">=${CATEGORY}/${PN}-${g}" - break - fi - fi - done - rm "${ED}"/usr/share/nvidia/supported-gpus.json || die -} - -pkg_postinst() { - use driver && linux-mod_pkg_postinst - - readme.gentoo_print_elog - - optfeature "wayland EGLStream with nvidia-drm.modeset=1" gui-libs/egl-wayland - - if [[ -r /proc/driver/nvidia/version && - $(grep -o ' [0-9.]* ' /proc/driver/nvidia/version) != " ${PV} " ]]; then - ewarn "Currently loaded NVIDIA modules do not match the newly installed" - ewarn "libraries and will lead to GPU-using application issues." - use driver && ewarn "The easiest way to fix this is usually to reboot." - fi - - if [[ ${NV_LEGACY_MASK} ]]; then - ewarn "You are installing a version of nvidia-drivers known not to work" - ewarn "with a GPU of the current system. If unwanted, add the mask:" - if [[ -d ${EROOT}/etc/portage/package.mask ]]; then - ewarn " echo '${NV_LEGACY_MASK}' > ${EROOT}/etc/portage/package.mask/${PN}" - else - ewarn " echo '${NV_LEGACY_MASK}' >> ${EROOT}/etc/portage/package.mask" - fi - ewarn "...then downgrade to a legacy branch if possible. For details, see:" - ewarn "https://www.nvidia.com/object/IO_32667.html" - fi -} diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-465.27.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-465.27.ebuild deleted file mode 100644 index e1dad9d4961c..000000000000 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-465.27.ebuild +++ /dev/null @@ -1,409 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -MODULES_OPTIONAL_USE="driver" -inherit desktop linux-info linux-mod multilib-build optfeature \ - readme.gentoo-r1 systemd toolchain-funcs unpacker - -NV_KERNEL_MAX="5.12" -NV_BIN_URI="https://us.download.nvidia.com/XFree86/" -NV_GIT_URI="https://github.com/NVIDIA/nvidia-" - -DESCRIPTION="NVIDIA Accelerated Graphics Driver" -HOMEPAGE="https://www.nvidia.com/download/index.aspx" -SRC_URI=" - amd64? ( ${NV_BIN_URI}Linux-x86_64/${PV}/NVIDIA-Linux-x86_64-${PV}.run ) - arm64? ( ${NV_BIN_URI}aarch64/${PV}/NVIDIA-Linux-aarch64-${PV}.run ) - ${NV_GIT_URI}installer/archive/${PV}.tar.gz -> nvidia-installer-${PV}.tar.gz - ${NV_GIT_URI}modprobe/archive/${PV}.tar.gz -> nvidia-modprobe-${PV}.tar.gz - ${NV_GIT_URI}persistenced/archive/${PV}.tar.gz -> nvidia-persistenced-${PV}.tar.gz - ${NV_GIT_URI}settings/archive/${PV}.tar.gz -> nvidia-settings-${PV}.tar.gz - ${NV_GIT_URI}xconfig/archive/${PV}.tar.gz -> nvidia-xconfig-${PV}.tar.gz" -# nvidia-installer is unused but here for GPL-2's "distribute sources" -S="${WORKDIR}" - -LICENSE="GPL-2 MIT NVIDIA-r2 ZLIB" -SLOT="0/${PV%%.*}" -KEYWORDS="-* ~amd64" -IUSE="+X +driver static-libs +tools" - -COMMON_DEPEND=" - acct-group/video - acct-user/nvpd - net-libs/libtirpc - tools? ( - dev-libs/atk - dev-libs/glib:2 - dev-libs/jansson - x11-libs/cairo - x11-libs/gdk-pixbuf:2 - x11-libs/gtk+:3 - x11-libs/libX11 - x11-libs/libXext - x11-libs/libXxf86vm - x11-libs/pango - )" -RDEPEND=" - ${COMMON_DEPEND} - X? ( - media-libs/libglvnd[X,${MULTILIB_USEDEP}] - x11-libs/libX11[${MULTILIB_USEDEP}] - x11-libs/libXext[${MULTILIB_USEDEP}] - )" -DEPEND=" - ${COMMON_DEPEND} - static-libs? ( - x11-libs/libX11 - x11-libs/libXext - ) - tools? ( - media-libs/libglvnd - sys-apps/dbus - x11-base/xorg-proto - x11-libs/libXrandr - x11-libs/libXv - x11-libs/libvdpau - )" -BDEPEND=" - app-misc/pax-utils - virtual/pkgconfig" - -QA_PREBUILT="opt/* usr/lib*" - -PATCHES=( - "${FILESDIR}"/nvidia-modprobe-390.141-uvm-perms.patch -) -DOCS=( - README.txt NVIDIA_Changelog supported-gpus/supported-gpus.json - nvidia-settings/doc/{FRAMELOCK,NV-CONTROL-API}.txt -) -HTML_DOCS=( html/. ) - -DISABLE_AUTOFORMATTING="yes" -DOC_CONTENTS="Users should be in the 'video' group to use NVIDIA devices. -You can add yourself by using: gpasswd -a my-user video - -For general information on using nvidia-drivers, please see: -https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers" - -pkg_setup() { - use driver || return - - local CONFIG_CHECK=" - PROC_FS - ~DRM_KMS_HELPER - ~SYSVIPC - ~!LOCKDEP - !DEBUG_MUTEXES" - local ERROR_DRM_KMS_HELPER="CONFIG_DRM_KMS_HELPER: is not set but needed for Xorg auto-detection - of drivers (no custom config), and optional nvidia-drm.modeset=1. - Cannot be directly selected in the kernel's menuconfig, so enable - options such as CONFIG_DRM_FBDEV_EMULATION instead." - - if kernel_is -lt 5 10; then - CONFIG_CHECK+=" PM" # needed since 460.67 (bug #778920) - local ERROR_PM="CONFIG_PM: is not set but needed with kernel version <5.10" - fi - - BUILD_PARAMS='NV_VERBOSE=1 IGNORE_CC_MISMATCH=yes SYSSRC="${KV_DIR}" SYSOUT="${KV_OUT_DIR}"' - BUILD_TARGETS="modules" # defaults' clean sometimes deletes modules - MODULE_NAMES=" - nvidia(video:kernel) - nvidia-drm(video:kernel) - nvidia-modeset(video:kernel) - nvidia-uvm(video:kernel)" - # nvidia-peermem(video:kernel) - skipping unless there is a demand for it - - linux-mod_pkg_setup - - if [[ ${MERGE_TYPE} != binary ]] && kernel_is -gt ${NV_KERNEL_MAX/./ }; then - ewarn "Kernel ${KV_MAJOR}.${KV_MINOR} is either known to break this version of nvidia-drivers" - ewarn "or was not tested with it. It is recommended to use one of:" - ewarn " <=sys-kernel/gentoo-kernel-${NV_KERNEL_MAX}" - ewarn " <=sys-kernel/gentoo-sources-${NV_KERNEL_MAX}" - ewarn "You are free to try or use /etc/portage/patches, but support will" - ewarn "not be given and issues wait until NVIDIA releases a fixed version." - ewarn - ewarn "Do _not_ file a bug report if run into issues." - ewarn - fi -} - -src_prepare() { - # make user patches usable across versions - rm nvidia-modprobe && mv nvidia-modprobe{-${PV},} || die - rm nvidia-persistenced && mv nvidia-persistenced{-${PV},} || die - rm nvidia-settings && mv nvidia-settings{-${PV},} || die - rm nvidia-xconfig && mv nvidia-xconfig{-${PV},} || die - - default - - # prevent detection of incomplete kernel DRM support (bug #603818) - sed 's/defined(CONFIG_DRM)/defined(CONFIG_DRM_KMS_HELPER)/' \ - -i kernel/conftest.sh || die - - sed -e '/Exec=\|Icon=/s/_.*/nvidia-settings/' \ - -e '/Categories=/s/_.*/System;Settings;/' \ - -i nvidia-settings/doc/nvidia-settings.desktop || die - - # remove gtk2 support (bug #592730) - sed '/^GTK2LIB = /d;/INSTALL.*GTK2LIB/,+1d' \ - -i nvidia-settings/src/Makefile || die - - sed 's/__USER__/nvpd/' \ - nvidia-persistenced/init/systemd/nvidia-persistenced.service.template \ - > nvidia-persistenced.service || die - - gzip -d nvidia-{cuda-mps-control,smi}.1.gz || die -} - -src_compile() { - nvidia-drivers_make() { - emake -C nvidia-${1} ${2} \ - PREFIX="${EPREFIX}/usr" \ - HOST_CC="$(tc-getBUILD_CC)" \ - HOST_LD="$(tc-getBUILD_LD)" \ - NV_USE_BUNDLED_LIBJANSSON=0 \ - NV_VERBOSE=1 DO_STRIP= OUTPUTDIR=out - } - - tc-export AR CC LD OBJCOPY - - # may no longer be relevant but kept as a safety - export DISTCC_DISABLE=1 CCACHE_DISABLE=1 - - use driver && linux-mod_src_compile - - nvidia-drivers_make modprobe - nvidia-drivers_make persistenced - use X && nvidia-drivers_make xconfig - - if use tools; then - nvidia-drivers_make settings - elif use static-libs; then - nvidia-drivers_make settings/src out/libXNVCtrl.a - fi -} - -src_install() { - nvidia-drivers_make_install() { - emake -C nvidia-${1} install \ - DESTDIR="${D}" \ - PREFIX="${EPREFIX}/usr" \ - LIBDIR="${ED}/usr/$(get_libdir)" \ - NV_USE_BUNDLED_LIBJANSSON=0 \ - NV_VERBOSE=1 DO_STRIP= MANPAGE_GZIP= OUTPUTDIR=out - } - - nvidia-drivers_libs_install() { - local libs=( - EGL_nvidia - GLESv1_CM_nvidia - GLESv2_nvidia - cuda - nvcuvid - nvidia-allocator - nvidia-eglcore - nvidia-encode - nvidia-glcore - nvidia-glsi - nvidia-glvkspirv - nvidia-ml - nvidia-opencl - nvidia-opticalflow - nvidia-ptxjitcompiler - nvidia-tls - ) - use amd64 && libs+=( nvidia-compiler ) - - if use X; then - libs+=( - GLX_nvidia - vdpau_nvidia - ) - if use amd64; then - libs+=( - nvidia-fbc - nvidia-ifr - ) - fi - fi - - local libdir=. - if [[ ${ABI} == x86 ]]; then - libdir+=/32 - else - libs+=( - nvidia-cbl - nvidia-cfg - nvidia-rtcore - nvoptix - ) - use amd64 && libs+=( nvidia-ngx ) - fi - - local lib soname - for lib in "${libs[@]}"; do - lib=lib${lib}.so.${PV} - - # auto-detect soname and create appropriate symlinks - soname=$(scanelf -qF'%S#F' ${lib}) || die "Scanning ${lib} failed" - if [[ ${soname} && ${soname} != ${lib} ]]; then - ln -s ${lib} ${libdir}/${soname} || die - fi - ln -s ${lib} ${libdir}/${lib%.so*}.so || die - - dolib.so ${libdir}/${lib%.so*}* - done - } - - if use driver; then - linux-mod_src_install - - insinto /etc/modprobe.d - newins "${FILESDIR}"/nvidia-460.conf nvidia.conf - doins "${FILESDIR}"/nvidia-blacklist-nouveau.conf - doins "${FILESDIR}"/nvidia-rmmod.conf - - # used for gpu verification with binpkgs (not kept) - insinto /usr/share/nvidia - doins supported-gpus/supported-gpus.json - fi - - if use X; then - exeinto /usr/$(get_libdir)/xorg/modules/drivers - doexe nvidia_drv.so - - exeinto /usr/$(get_libdir)/xorg/modules/extensions - newexe libglxserver_nvidia.so{.${PV},} - - insinto /usr/share/X11/xorg.conf.d - newins {,50-}nvidia-drm-outputclass.conf - - # vulkan icd uses libGLX_nvidia.so and so requires X - insinto /usr/share/vulkan/icd.d - doins nvidia_icd.json - insinto /usr/share/vulkan/implicit_layer.d - doins nvidia_layers.json - fi - - insinto /usr/share/glvnd/egl_vendor.d - doins 10_nvidia.json - - insinto /etc/OpenCL/vendors - doins nvidia.icd - - insinto /etc/nvidia - newins nvidia-application-profiles{-${PV},}-rc - - # install built helpers - nvidia-drivers_make_install modprobe - # allow video group to load mods and create devs (bug #505092) - fowners root:video /usr/bin/nvidia-modprobe - fperms 4710 /usr/bin/nvidia-modprobe - - nvidia-drivers_make_install persistenced - newconfd "${FILESDIR}/nvidia-persistenced.confd" nvidia-persistenced - newinitd "${FILESDIR}/nvidia-persistenced.initd" nvidia-persistenced - systemd_dounit nvidia-persistenced.service - - use X && nvidia-drivers_make_install xconfig - - if use tools; then - nvidia-drivers_make_install settings - doicon nvidia-settings/doc/nvidia-settings.png - domenu nvidia-settings/doc/nvidia-settings.desktop - - insinto /usr/share/nvidia - newins nvidia-application-profiles{-${PV},}-key-documentation - - exeinto /etc/X11/xinit/xinitrc.d - newexe "${FILESDIR}"/95-nvidia-settings-r1 95-nvidia-settings - fi - - if use static-libs; then - dolib.a nvidia-settings/src/out/libXNVCtrl.a - - insinto /usr/include/NVCtrl - doins nvidia-settings/src/libXNVCtrl/NVCtrl{Lib,}.h - fi - - # install prebuilt-only helpers - exeinto /opt/bin - - doexe nvidia-cuda-mps-control - doman nvidia-cuda-mps-control.1 - doexe nvidia-cuda-mps-server - - doexe nvidia-debugdump - dobin nvidia-bug-report.sh - - doexe nvidia-smi - doman nvidia-smi.1 - - # install prebuilt-only libraries - multilib_foreach_abi nvidia-drivers_libs_install - - # install systemd sleep services - exeinto /lib/systemd/system-sleep - doexe systemd/system-sleep/nvidia - dobin systemd/nvidia-sleep.sh - systemd_dounit systemd/system/nvidia-{hibernate,resume,suspend}.service - - einstalldocs - readme.gentoo_create_doc -} - -pkg_preinst() { - use driver || return - linux-mod_pkg_preinst - - # set video group id based on live system (bug #491414) - local g=$(getent group video | cut -d: -f3) - [[ ${g} ]] || die "Failed to determine video group id" - sed "s/PACKAGE/${PF}/;s/VIDEOGID/${g}/" \ - -i "${ED}"/etc/modprobe.d/nvidia.conf || die - - # try to find driver mismatches using temporary supported-gpus.json - for g in $(grep -l 0x10de /sys/bus/pci/devices/*/vendor 2>/dev/null); do - g=$(grep -io "\"devid\":\"$(<${g%vendor}device)\"[^}]*branch\":\"[0-9]*" \ - "${ED}"/usr/share/nvidia/supported-gpus.json 2>/dev/null) - if [[ ${g} ]]; then - g=$((${g##*\"}+1)) - if ver_test -ge ${g}; then - NV_LEGACY_MASK=">=${CATEGORY}/${PN}-${g}" - break - fi - fi - done - rm "${ED}"/usr/share/nvidia/supported-gpus.json || die -} - -pkg_postinst() { - use driver && linux-mod_pkg_postinst - - readme.gentoo_print_elog - - optfeature "wayland EGLStream with nvidia-drm.modeset=1" gui-libs/egl-wayland - - if [[ -r /proc/driver/nvidia/version && - $(grep -o ' [0-9.]* ' /proc/driver/nvidia/version) != " ${PV} " ]]; then - ewarn "Currently loaded NVIDIA modules do not match the newly installed" - ewarn "libraries and will lead to GPU-using application issues." - use driver && ewarn "The easiest way to fix this is usually to reboot." - fi - - if [[ ${NV_LEGACY_MASK} ]]; then - ewarn "You are installing a version of nvidia-drivers known not to work" - ewarn "with a GPU of the current system. If unwanted, add the mask:" - if [[ -d ${EROOT}/etc/portage/package.mask ]]; then - ewarn " echo '${NV_LEGACY_MASK}' > ${EROOT}/etc/portage/package.mask/${PN}" - else - ewarn " echo '${NV_LEGACY_MASK}' >> ${EROOT}/etc/portage/package.mask" - fi - ewarn "...then downgrade to a legacy branch if possible. For details, see:" - ewarn "https://www.nvidia.com/object/IO_32667.html" - fi -} diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-465.31.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-465.31.ebuild new file mode 100644 index 000000000000..ebf2ce56a5a7 --- /dev/null +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-465.31.ebuild @@ -0,0 +1,408 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MODULES_OPTIONAL_USE="driver" +inherit desktop linux-info linux-mod multilib-build optfeature \ + readme.gentoo-r1 systemd toolchain-funcs unpacker + +NV_KERNEL_MAX="5.12" +NV_URI="https://download.nvidia.com/XFree86/" + +DESCRIPTION="NVIDIA Accelerated Graphics Driver" +HOMEPAGE="https://www.nvidia.com/download/index.aspx" +SRC_URI=" + amd64? ( ${NV_URI}Linux-x86_64/${PV}/NVIDIA-Linux-x86_64-${PV}.run ) + arm64? ( ${NV_URI}Linux-aarch64/${PV}/NVIDIA-Linux-aarch64-${PV}.run ) + ${NV_URI}nvidia-installer/nvidia-installer-${PV}.tar.bz2 + ${NV_URI}nvidia-modprobe/nvidia-modprobe-${PV}.tar.bz2 + ${NV_URI}nvidia-persistenced/nvidia-persistenced-${PV}.tar.bz2 + ${NV_URI}nvidia-settings/nvidia-settings-${PV}.tar.bz2 + ${NV_URI}nvidia-xconfig/nvidia-xconfig-${PV}.tar.bz2" +# nvidia-installer is unused but here for GPL-2's "distribute sources" +S="${WORKDIR}" + +LICENSE="GPL-2 MIT NVIDIA-r2 ZLIB" +SLOT="0/${PV%%.*}" +KEYWORDS="-* ~amd64" +IUSE="+X +driver static-libs +tools" + +COMMON_DEPEND=" + acct-group/video + acct-user/nvpd + net-libs/libtirpc + tools? ( + dev-libs/atk + dev-libs/glib:2 + dev-libs/jansson + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:3 + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXxf86vm + x11-libs/pango + )" +RDEPEND=" + ${COMMON_DEPEND} + X? ( + media-libs/libglvnd[X,${MULTILIB_USEDEP}] + x11-libs/libX11[${MULTILIB_USEDEP}] + x11-libs/libXext[${MULTILIB_USEDEP}] + )" +DEPEND=" + ${COMMON_DEPEND} + static-libs? ( + x11-libs/libX11 + x11-libs/libXext + ) + tools? ( + media-libs/libglvnd + sys-apps/dbus + x11-base/xorg-proto + x11-libs/libXrandr + x11-libs/libXv + x11-libs/libvdpau + )" +BDEPEND=" + app-misc/pax-utils + virtual/pkgconfig" + +QA_PREBUILT="opt/* usr/lib*" + +PATCHES=( + "${FILESDIR}"/nvidia-modprobe-390.141-uvm-perms.patch +) +DOCS=( + README.txt NVIDIA_Changelog supported-gpus/supported-gpus.json + nvidia-settings/doc/{FRAMELOCK,NV-CONTROL-API}.txt +) +HTML_DOCS=( html/. ) + +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS="Users should be in the 'video' group to use NVIDIA devices. +You can add yourself by using: gpasswd -a my-user video + +For general information on using nvidia-drivers, please see: +https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers" + +pkg_setup() { + use driver || return + + local CONFIG_CHECK=" + PROC_FS + ~DRM_KMS_HELPER + ~SYSVIPC + ~!LOCKDEP + !DEBUG_MUTEXES" + local ERROR_DRM_KMS_HELPER="CONFIG_DRM_KMS_HELPER: is not set but needed for Xorg auto-detection + of drivers (no custom config), and optional nvidia-drm.modeset=1. + Cannot be directly selected in the kernel's menuconfig, so enable + options such as CONFIG_DRM_FBDEV_EMULATION instead." + + if kernel_is -lt 5 10; then + CONFIG_CHECK+=" PM" # needed since 460.67 (bug #778920) + local ERROR_PM="CONFIG_PM: is not set but needed with kernel version <5.10" + fi + + BUILD_PARAMS='NV_VERBOSE=1 IGNORE_CC_MISMATCH=yes SYSSRC="${KV_DIR}" SYSOUT="${KV_OUT_DIR}"' + BUILD_TARGETS="modules" # defaults' clean sometimes deletes modules + MODULE_NAMES=" + nvidia(video:kernel) + nvidia-drm(video:kernel) + nvidia-modeset(video:kernel) + nvidia-uvm(video:kernel)" + # nvidia-peermem(video:kernel) - skipping unless there is a demand for it + + linux-mod_pkg_setup + + if [[ ${MERGE_TYPE} != binary ]] && kernel_is -gt ${NV_KERNEL_MAX/./ }; then + ewarn "Kernel ${KV_MAJOR}.${KV_MINOR} is either known to break this version of nvidia-drivers" + ewarn "or was not tested with it. It is recommended to use one of:" + ewarn " <=sys-kernel/gentoo-kernel-${NV_KERNEL_MAX}" + ewarn " <=sys-kernel/gentoo-sources-${NV_KERNEL_MAX}" + ewarn "You are free to try or use /etc/portage/patches, but support will" + ewarn "not be given and issues wait until NVIDIA releases a fixed version." + ewarn + ewarn "Do _not_ file a bug report if run into issues." + ewarn + fi +} + +src_prepare() { + # make user patches usable across versions + rm nvidia-modprobe && mv nvidia-modprobe{-${PV},} || die + rm nvidia-persistenced && mv nvidia-persistenced{-${PV},} || die + rm nvidia-settings && mv nvidia-settings{-${PV},} || die + rm nvidia-xconfig && mv nvidia-xconfig{-${PV},} || die + + default + + # prevent detection of incomplete kernel DRM support (bug #603818) + sed 's/defined(CONFIG_DRM)/defined(CONFIG_DRM_KMS_HELPER)/' \ + -i kernel/conftest.sh || die + + sed -e '/Exec=\|Icon=/s/_.*/nvidia-settings/' \ + -e '/Categories=/s/_.*/System;Settings;/' \ + -i nvidia-settings/doc/nvidia-settings.desktop || die + + # remove gtk2 support (bug #592730) + sed '/^GTK2LIB = /d;/INSTALL.*GTK2LIB/,+1d' \ + -i nvidia-settings/src/Makefile || die + + sed 's/__USER__/nvpd/' \ + nvidia-persistenced/init/systemd/nvidia-persistenced.service.template \ + > nvidia-persistenced.service || die + + gzip -d nvidia-{cuda-mps-control,smi}.1.gz || die +} + +src_compile() { + nvidia-drivers_make() { + emake -C nvidia-${1} ${2} \ + PREFIX="${EPREFIX}/usr" \ + HOST_CC="$(tc-getBUILD_CC)" \ + HOST_LD="$(tc-getBUILD_LD)" \ + NV_USE_BUNDLED_LIBJANSSON=0 \ + NV_VERBOSE=1 DO_STRIP= OUTPUTDIR=out + } + + tc-export AR CC LD OBJCOPY + + # may no longer be relevant but kept as a safety + export DISTCC_DISABLE=1 CCACHE_DISABLE=1 + + use driver && linux-mod_src_compile + + nvidia-drivers_make modprobe + nvidia-drivers_make persistenced + use X && nvidia-drivers_make xconfig + + if use tools; then + nvidia-drivers_make settings + elif use static-libs; then + nvidia-drivers_make settings/src out/libXNVCtrl.a + fi +} + +src_install() { + nvidia-drivers_make_install() { + emake -C nvidia-${1} install \ + DESTDIR="${D}" \ + PREFIX="${EPREFIX}/usr" \ + LIBDIR="${ED}/usr/$(get_libdir)" \ + NV_USE_BUNDLED_LIBJANSSON=0 \ + NV_VERBOSE=1 DO_STRIP= MANPAGE_GZIP= OUTPUTDIR=out + } + + nvidia-drivers_libs_install() { + local libs=( + EGL_nvidia + GLESv1_CM_nvidia + GLESv2_nvidia + cuda + nvcuvid + nvidia-allocator + nvidia-eglcore + nvidia-encode + nvidia-glcore + nvidia-glsi + nvidia-glvkspirv + nvidia-ml + nvidia-opencl + nvidia-opticalflow + nvidia-ptxjitcompiler + nvidia-tls + ) + use amd64 && libs+=( nvidia-compiler ) + + if use X; then + libs+=( + GLX_nvidia + vdpau_nvidia + ) + if use amd64; then + libs+=( + nvidia-fbc + nvidia-ifr + ) + fi + fi + + local libdir=. + if [[ ${ABI} == x86 ]]; then + libdir+=/32 + else + libs+=( + nvidia-cbl + nvidia-cfg + nvidia-rtcore + nvoptix + ) + use amd64 && libs+=( nvidia-ngx ) + fi + + local lib soname + for lib in "${libs[@]}"; do + lib=lib${lib}.so.${PV} + + # auto-detect soname and create appropriate symlinks + soname=$(scanelf -qF'%S#F' ${lib}) || die "Scanning ${lib} failed" + if [[ ${soname} && ${soname} != ${lib} ]]; then + ln -s ${lib} ${libdir}/${soname} || die + fi + ln -s ${lib} ${libdir}/${lib%.so*}.so || die + + dolib.so ${libdir}/${lib%.so*}* + done + } + + if use driver; then + linux-mod_src_install + + insinto /etc/modprobe.d + newins "${FILESDIR}"/nvidia-460.conf nvidia.conf + doins "${FILESDIR}"/nvidia-blacklist-nouveau.conf + doins "${FILESDIR}"/nvidia-rmmod.conf + + # used for gpu verification with binpkgs (not kept) + insinto /usr/share/nvidia + doins supported-gpus/supported-gpus.json + fi + + if use X; then + exeinto /usr/$(get_libdir)/xorg/modules/drivers + doexe nvidia_drv.so + + exeinto /usr/$(get_libdir)/xorg/modules/extensions + newexe libglxserver_nvidia.so{.${PV},} + + insinto /usr/share/X11/xorg.conf.d + newins {,50-}nvidia-drm-outputclass.conf + + # vulkan icd uses libGLX_nvidia.so and so requires X + insinto /usr/share/vulkan/icd.d + doins nvidia_icd.json + insinto /usr/share/vulkan/implicit_layer.d + doins nvidia_layers.json + fi + + insinto /usr/share/glvnd/egl_vendor.d + doins 10_nvidia.json + + insinto /etc/OpenCL/vendors + doins nvidia.icd + + insinto /etc/nvidia + newins nvidia-application-profiles{-${PV},}-rc + + # install built helpers + nvidia-drivers_make_install modprobe + # allow video group to load mods and create devs (bug #505092) + fowners root:video /usr/bin/nvidia-modprobe + fperms 4710 /usr/bin/nvidia-modprobe + + nvidia-drivers_make_install persistenced + newconfd "${FILESDIR}/nvidia-persistenced.confd" nvidia-persistenced + newinitd "${FILESDIR}/nvidia-persistenced.initd" nvidia-persistenced + systemd_dounit nvidia-persistenced.service + + use X && nvidia-drivers_make_install xconfig + + if use tools; then + nvidia-drivers_make_install settings + doicon nvidia-settings/doc/nvidia-settings.png + domenu nvidia-settings/doc/nvidia-settings.desktop + + insinto /usr/share/nvidia + newins nvidia-application-profiles{-${PV},}-key-documentation + + exeinto /etc/X11/xinit/xinitrc.d + newexe "${FILESDIR}"/95-nvidia-settings-r1 95-nvidia-settings + fi + + if use static-libs; then + dolib.a nvidia-settings/src/out/libXNVCtrl.a + + insinto /usr/include/NVCtrl + doins nvidia-settings/src/libXNVCtrl/NVCtrl{Lib,}.h + fi + + # install prebuilt-only helpers + exeinto /opt/bin + + doexe nvidia-cuda-mps-control + doman nvidia-cuda-mps-control.1 + doexe nvidia-cuda-mps-server + + doexe nvidia-debugdump + dobin nvidia-bug-report.sh + + doexe nvidia-smi + doman nvidia-smi.1 + + # install prebuilt-only libraries + multilib_foreach_abi nvidia-drivers_libs_install + + # install systemd sleep services + exeinto /lib/systemd/system-sleep + doexe systemd/system-sleep/nvidia + dobin systemd/nvidia-sleep.sh + systemd_dounit systemd/system/nvidia-{hibernate,resume,suspend}.service + + einstalldocs + readme.gentoo_create_doc +} + +pkg_preinst() { + use driver || return + linux-mod_pkg_preinst + + # set video group id based on live system (bug #491414) + local g=$(getent group video | cut -d: -f3) + [[ ${g} ]] || die "Failed to determine video group id" + sed "s/PACKAGE/${PF}/;s/VIDEOGID/${g}/" \ + -i "${ED}"/etc/modprobe.d/nvidia.conf || die + + # try to find driver mismatches using temporary supported-gpus.json + for g in $(grep -l 0x10de /sys/bus/pci/devices/*/vendor 2>/dev/null); do + g=$(grep -io "\"devid\":\"$(<${g%vendor}device)\"[^}]*branch\":\"[0-9]*" \ + "${ED}"/usr/share/nvidia/supported-gpus.json 2>/dev/null) + if [[ ${g} ]]; then + g=$((${g##*\"}+1)) + if ver_test -ge ${g}; then + NV_LEGACY_MASK=">=${CATEGORY}/${PN}-${g}" + break + fi + fi + done + rm "${ED}"/usr/share/nvidia/supported-gpus.json || die +} + +pkg_postinst() { + use driver && linux-mod_pkg_postinst + + readme.gentoo_print_elog + + optfeature "wayland EGLStream with nvidia-drm.modeset=1" gui-libs/egl-wayland + + if [[ -r /proc/driver/nvidia/version && + $(grep -o ' [0-9.]* ' /proc/driver/nvidia/version) != " ${PV} " ]]; then + ewarn "Currently loaded NVIDIA modules do not match the newly installed" + ewarn "libraries and will lead to GPU-using application issues." + use driver && ewarn "The easiest way to fix this is usually to reboot." + fi + + if [[ ${NV_LEGACY_MASK} ]]; then + ewarn "You are installing a version of nvidia-drivers known not to work" + ewarn "with a GPU of the current system. If unwanted, add the mask:" + if [[ -d ${EROOT}/etc/portage/package.mask ]]; then + ewarn " echo '${NV_LEGACY_MASK}' > ${EROOT}/etc/portage/package.mask/${PN}" + else + ewarn " echo '${NV_LEGACY_MASK}' >> ${EROOT}/etc/portage/package.mask" + fi + ewarn "...then downgrade to a legacy branch if possible. For details, see:" + ewarn "https://www.nvidia.com/object/IO_32667.html" + fi +} diff --git a/x11-drivers/xf86-video-amdgpu/Manifest b/x11-drivers/xf86-video-amdgpu/Manifest index dc2828cda4d2..98d1e42ae4e2 100644 --- a/x11-drivers/xf86-video-amdgpu/Manifest +++ b/x11-drivers/xf86-video-amdgpu/Manifest @@ -1,5 +1,5 @@ AUX xf86-video-amdgpu-19.1.0-Fix-link-failure-with-gcc-10.patch 848 BLAKE2B a4f7b14f2c3568ea3b0a1d568e8a144b8e7a1872b8723ba4d452df2c75e814eae3aa9cb336ad0c4a44639f10ea6cc66a9bce6d0ad33b730fd45f50f7d77b6df4 SHA512 1f4e580a11ddee24114a5f7692ec8331eafe57492f7f59461f8043132a2fc48d71adce2f7a831b6394804161689c13023711178c25fb34c2d299a9dada603fe4 DIST xf86-video-amdgpu-19.1.0.tar.bz2 441746 BLAKE2B 75906c9b2200174711360e8cf095b8537e62618747afe5ec13f5a36ad8b61001b94e9df675df2026a61e66b6ea05e0e022640d487851d62ca4ed5ce61dd5aae7 SHA512 ccdaa2378492da1a2f3d18fedacd1318c4708da534a8a959276a82730d5420619d83ad1ec8d7835c55655fe56123cd9bffb44e6223c5a97033c01f598af4a173 -EBUILD xf86-video-amdgpu-19.1.0.ebuild 630 BLAKE2B 365afef9947c8c211ec7be9234516f15389d95ffa1be09b020a80b5d5299c6d03154ebc2f227911844d198635578e1d751ebfd1dd24e675bd886faad62567363 SHA512 9814cb84dfc010986f913ecc3ea403235b4df6858e00d5e42bde8c86d1cac30bdd5e66250c313f02f0b2ce4151249a41038bc40dc3ec27c09b1f93f2b5928a79 +EBUILD xf86-video-amdgpu-19.1.0.ebuild 629 BLAKE2B 1f93b25f75de10b7e3b71fd8d5a78370d6395978f5ef82695979ae9ff3ca6618c834e77acde34bffa6e92e30cb56267a8dc3a2045fbd4e1979c87084bd31d64a SHA512 fac323b81cc04858c3e000fecde83b660c20563bbfacf083f22dc56c7795a878e8aec03dd15928752bce19b5326480172fb89c4decf43350938f2376d7ce7fb6 EBUILD xf86-video-amdgpu-9999.ebuild 557 BLAKE2B 4acc38d1587451eb60056590aa5a6f578f2a3b190ebe77c76e7807ff9ac7280bc88e428a2b980d06c396d3c82fad76b869961cb33852a2156a39605f3f3d135f SHA512 6456b7b9c1ec69d93455a5ab260baaa83412474d0cb9ec904138fc9e31ab3f9455bbe2fcdac4ecf1d1653d1fefcf3389ed7f9779fb5d5c1c70906a97a4455b14 MISC metadata.xml 230 BLAKE2B 70bf59e64305ef14908197f2aa7ffbc1769ade265097da68e001245451658af5921760c91cb74aae717543ea0017e2471fd94bfc5c4c447d2d60e2c23aa3b007 SHA512 d7a2643abd1904cc5ff4d91cbb6f1baeb7f75fd1db542c5e14f19412f4f0bd4b903f8e703a7662ba7482c79dac5529057760b6427599d35e0842755fd946e057 diff --git a/x11-drivers/xf86-video-amdgpu/xf86-video-amdgpu-19.1.0.ebuild b/x11-drivers/xf86-video-amdgpu/xf86-video-amdgpu-19.1.0.ebuild index 92c575e22710..e784f9deaa06 100644 --- a/x11-drivers/xf86-video-amdgpu/xf86-video-amdgpu-19.1.0.ebuild +++ b/x11-drivers/xf86-video-amdgpu/xf86-video-amdgpu-19.1.0.ebuild @@ -8,7 +8,7 @@ inherit xorg-3 if [[ ${PV} == 9999* ]]; then SRC_URI="" else - KEYWORDS="amd64 ~ppc64 ~riscv x86" + KEYWORDS="amd64 ppc64 ~riscv x86" fi DESCRIPTION="Accelerated Open Source driver for AMDGPU cards" diff --git a/x11-drivers/xf86-video-ast/Manifest b/x11-drivers/xf86-video-ast/Manifest index 2f0583232e3c..fccedefc3d99 100644 --- a/x11-drivers/xf86-video-ast/Manifest +++ b/x11-drivers/xf86-video-ast/Manifest @@ -1,3 +1,3 @@ DIST xf86-video-ast-1.1.5.tar.bz2 339848 BLAKE2B 48ebb8f54307a467eb952ff57dce4cc9da11b627354c54e11426133dee029765390c8c61f0b724bfc66c2f86aa5938ddad49707847b50648d875dccf5c4be9fd SHA512 067c2ce3e74c83fe1531213308753cb80482d177c93009c99dc49e95bfa6ff058d81cc716d6c343b9ca1e0eb7aedf3b84beb12ad08b8cd4d9f43e11f9e192e8e -EBUILD xf86-video-ast-1.1.5.ebuild 225 BLAKE2B f7b3489d2cfc40d6e483fc097583bcd7c265aa3069036ed092347d2f1e52cc2285c9619c58657330e44cda1d59eee87ece4aa1e538da7fb1ab1e51c9ba40b549 SHA512 4e9744a59436ab4bb9f166f92d3f23fa263f0a8efbc9b18dbac36bc8b90b766d862a23d1b18f863f0988b59542db557027658f5f742f906f8b0031752492e51a +EBUILD xf86-video-ast-1.1.5.ebuild 224 BLAKE2B 62b99a679af9ceff70e9070bd14b1bd393a48cb364c3e433315a0ea7c399852cc826d01b23f302af18898f632927186465194085a4be9bb40f1aab77c63d7595 SHA512 165b209858242f141c873e14506f0e786cf30bced24a415787ef75d8f48051aae349c54f9a8038e7b29093df8760dbccf32b862fb5260d01b07a6d6d3e956ac0 MISC metadata.xml 230 BLAKE2B 70bf59e64305ef14908197f2aa7ffbc1769ade265097da68e001245451658af5921760c91cb74aae717543ea0017e2471fd94bfc5c4c447d2d60e2c23aa3b007 SHA512 d7a2643abd1904cc5ff4d91cbb6f1baeb7f75fd1db542c5e14f19412f4f0bd4b903f8e703a7662ba7482c79dac5529057760b6427599d35e0842755fd946e057 diff --git a/x11-drivers/xf86-video-ast/xf86-video-ast-1.1.5.ebuild b/x11-drivers/xf86-video-ast/xf86-video-ast-1.1.5.ebuild index 4093c3e7fd2a..ff7da2486ff6 100644 --- a/x11-drivers/xf86-video-ast/xf86-video-ast-1.1.5.ebuild +++ b/x11-drivers/xf86-video-ast/xf86-video-ast-1.1.5.ebuild @@ -8,4 +8,4 @@ inherit xorg-3 DESCRIPTION="X.Org driver for ASpeedTech cards" LICENSE="MIT" -KEYWORDS="amd64 ~ppc ~ppc64 x86" +KEYWORDS="amd64 ~ppc ppc64 x86" -- cgit v1.2.3