Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-drivers/nvidia-drivers/
Date: Mon, 07 Feb 2022 21:13:36
Message-Id: 1644268300.48948713f238a734ddc80071ddb60fa9e6d5a966.ionen@gentoo
1 commit: 48948713f238a734ddc80071ddb60fa9e6d5a966
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 7 20:52:36 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 7 21:11:40 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48948713
7
8 x11-drivers/nvidia-drivers: drop vulnerable 470.94, 495.*
9
10 Users affected by bug #830482 (with unpatched Xorg) should
11 use stable 470.103.01 rather than vulnerable 495.44-r2.
12
13 Bug: https://bugs.gentoo.org/830482
14 Bug: https://bugs.gentoo.org/832867
15 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
16
17 x11-drivers/nvidia-drivers/Manifest | 21 -
18 .../nvidia-drivers/nvidia-drivers-470.94.ebuild | 445 -------------------
19 .../nvidia-drivers/nvidia-drivers-495.44-r2.ebuild | 493 ---------------------
20 .../nvidia-drivers-495.46-r10.ebuild | 462 -------------------
21 4 files changed, 1421 deletions(-)
22
23 diff --git a/x11-drivers/nvidia-drivers/Manifest b/x11-drivers/nvidia-drivers/Manifest
24 index 687ee157f3a9..f45d7cc51628 100644
25 --- a/x11-drivers/nvidia-drivers/Manifest
26 +++ b/x11-drivers/nvidia-drivers/Manifest
27 @@ -1,55 +1,34 @@
28 DIST NVIDIA-Linux-aarch64-460.91.03.run 111886330 BLAKE2B 24ab316e216caa61f7edb4dbcb34541709d3229d495e6ead95e99db7403cddee03467ee28d007f0fa3c4f2fa267e1994533c90a7a67885e9e76d501ab0f8aaa5 SHA512 edcfd3b11afe625c8996cda488a8de2e0e40eb4b95c8cf0ead9e1226d7cee8140a83c247d745ceefe997a39cfcf3e3f9bde575d97aa39090f97f88817d89cb28
29 DIST NVIDIA-Linux-aarch64-470.103.01.run 184497677 BLAKE2B 13ad81da2fb8d887187b2685625c831b74db91729ff82553336c6d266312783c4a01675659ebfe4ad6d011c53d871e28e7522f948ef66c258dafea0e33794acd SHA512 5a9881dd9204b81e78c2a5f29bb95682c3c4b334e520030c368f27e795995df0637a6265b1ca74197026d0de02a5f4e0cf7bb91fb6f2dcbbbb7607be9fcb7647
30 -DIST NVIDIA-Linux-aarch64-470.94.run 183639436 BLAKE2B a2e7af432e9d6a65e44c6b0af12b6d01048944c879aadb13c17ce13834d463ddbf3bda7029b16986fb5212f4d18f0c96010cb22ef014b5f2af0523e746cc2ca3 SHA512 e27b04ec5025b5ce1d6cd78306f55f5699032fc350f78fb7a731a82ec4691ba0764fd3e36d8738d38f17cafd93988c7542d55c370e219bdbab6d0e7eb2f9a5fd
31 -DIST NVIDIA-Linux-aarch64-495.44.run 210477242 BLAKE2B 8fb5419be19ab4feab158fb43f142fdc1471b756f7d43afac1c9e787465a991e291cac725dda266b2f454022aea7cb3e249c6f132963a89c97564ef378e876b4 SHA512 4d2ed853bc3d7812652f3e677ca1cf56f1b2563bc0a43cee2cf4544f8d3b30d8f29ccc994fc8f95e2c8b40b04efdca066b616983bf2e2fb9247d2d9a8503d4ea
32 -DIST NVIDIA-Linux-aarch64-495.46.run 211122869 BLAKE2B 2193f9de186b727af4f22999f6890c1b06a89e88308d5f0cc317b5b1088c62313b34efb4cbd782bc9565083191c443e5cd10b6c8cf89a988153c1abff4e9b1ec SHA512 c830482fa75e841f33a32bd28e842892613968e3e23928f1e1fa45672ef2349fbd33af59341cc4e789f702163b17b10a861b071b42f90e037050769c83ae53b9
33 DIST NVIDIA-Linux-aarch64-510.47.03.run 210713072 BLAKE2B ee775c9022c76adcb8e39661830d832b12ee53e5b6a33c9b98bf1532ef26bb49a2bb9e09bdd869517e8dab712af162e0263c3989b7023b4c34e27eb135fd9136 SHA512 1079910394542a123965f09a741a3690f68a96a8251995a6ca66c47711acbf93cef79f98110595667e19f895e024dc6fb6f57c470f80fe8075ffea74cfe05f94
34 DIST NVIDIA-Linux-x86-390.147.run 49303088 BLAKE2B 5a3a02b88af1ee8699b0c6c3fa222d9176338f10437a88c874126c7bacf64ddc44d03d8a44542cba989129af6336e46cae775713458a16d78ea75e4e004dfffb SHA512 c5d47e2a8c034e158093feeefa2455ec49d676fbd1700118aedba0c3b84be4e2060402d0e27e50d1a674de10f369f8e5ca2da8c61f1d0560d2105d33d7238359
35 DIST NVIDIA-Linux-x86_64-390.147.run 85930997 BLAKE2B a8085c9abc1c31251788a8f5abdc2090c9085b3028e364184244bbf24d822dc3266877c88b30f403507fa2dd511c68ec67e1f188d6b0f1f4d7d792881d5253fc SHA512 0d8bda32e916d71da2ea74bc12a4f3cb0a0c2ddda27511cf3c89bbf4aeb28db68f6b7261639d88dd1c0180b91213c09de930d233158268c5d9ab3b223510e964
36 DIST NVIDIA-Linux-x86_64-460.91.03.run 178201292 BLAKE2B 4d407b7bb3a99ab71c62c3cd18dc3549c98a24e7af28276e6e6a21dd33efcab017fed3f782f6dfb060c4437cd718f19c2f9900de367cc47bf19fa2718a18ad55 SHA512 4ac11130fe5a8f1c26f459e9c19660b3ff6f23011e9f77b09ca948fc42609e523ecea70d3bf6def50a75b4a3079ab280018753fb6e53875d9bb8093a033e3b70
37 DIST NVIDIA-Linux-x86_64-470.103.01.run 272484410 BLAKE2B 42a19ed990f49d4ceefc1006f3e6e4b69135ad2aaf497c648b9afe7941a81aba3a51296cb14bc419352cdf70f850484d2a55784184fdb820186193501422d742 SHA512 3dc19774a6fef5e6ec0cb9451df4268f77cb31b0a9ede253bf9cf805a048ad457a7bfec852aaeab3e3e297b3353840a3d6c9c7ddc75d57b2b000ab4e0b15530b
38 DIST NVIDIA-Linux-x86_64-470.62.22.run 272128606 BLAKE2B 727aac085a73c4c953ddb58a5b887b70eb65b5b89cdd556d122d89d351444fbed0adfa3c34627a9ab0d13c42ac93732d9fa023e580894117dd0c06098b386208 SHA512 9e9f6a665034495bbfd438567fb9a0998adbfcc979fd1e0370d355b4f312e4c1fb5162b15e5264cc89d3aca6dcaf84ce7ebfff0885ac783dfcd8be3b99b3b96f
39 -DIST NVIDIA-Linux-x86_64-470.94.run 272262854 BLAKE2B 23785ec9d434f48793547a3a0d8708c0928b1926f9d8973d872f1745291095cba494310b2fa25a62f3d29bfb4f660fa1ef78d49da651d8a094a23d64ca110e8a SHA512 b70542af04691da623b494d49fcbd58c58b83388fdb1c7ea6dcc779755b595444a324f613840ccbba0d9029456668376fe6049a3e4496c6054efbbf1e0a59c0f
40 -DIST NVIDIA-Linux-x86_64-495.44.run 282259831 BLAKE2B ca11406a5b1b25d9691ec61d4125457c22438b8f0af0651043235f72ee75c4b264cfde7b04840bbec15c22bc5eb657a46326b49941e6c776a8990430cf052818 SHA512 bc9054e6028ba172906e6eb9a0b8f5cfc3ae74d57f3e95e0f9057879e3af07a4b19479e80d81e948872bc47bbd674f77f5f81d4debd2e2c3ce45058cd9211802
41 -DIST NVIDIA-Linux-x86_64-495.46.run 280886811 BLAKE2B 156917245f37a5da9121cf570616d6367eec66998a50136f1db0c521fc725e68db27acd5741a9fc3e3d502a2c7e90ccde68a7e56346cb8f5fc65ea419c2f0576 SHA512 859548fa81478acb994b40434fc85824976b1f83bc15846290898854db84ea3c6550586a1d7e89ff3afa248310d2bcf4d2d52d5d8e91cf74e3f7e4108a7002ad
42 DIST NVIDIA-Linux-x86_64-510.47.03.run 328823536 BLAKE2B 1693b505ce019074394e508dac14c2b5e281f3f871ca84db180fbfebc96c04b2f51feb8fbe0358d4cc2148c14c37c1b603737bf27b794d9d23b2c49a2f36f956 SHA512 7488b1ae99acfa4cd6f8fd071a0e7652dcc9e499ff587d1dfdaf5d202a5b9daa43ed014876d2b2c9caf7f7c531ec380540f30833bb9790395cf159d177f2e803
43 DIST nvidia-installer-390.147.tar.bz2 150157 BLAKE2B 3bf5317aaa3bdb0e6dc3b3e21ad3dbacf6dc782a643b0fa9badf354361891ab25660b57dd408e346f219d469af317a4851937e1cb77ffe59a39e9d98a92f3a40 SHA512 24bd8a2959062551abf2ea039ac95eba224d58c175f59f1386a6d43459ad43b2bddf17f00b53c1c71c45eca3b7a2281dcf05cc65030f6f8bed16d0f0b9f9c282
44 DIST nvidia-installer-460.91.03.tar.bz2 144463 BLAKE2B b8c381158f614331fbfd04dcfdd7227fcb3eb16cbe4e3cbcbb34ba6af2370b05ebd72dc46375b2099b950817e6a0565c418e62b6364f1d7269f78c1dce5f5535 SHA512 10c873597202a1d8aa0dc4629b1e64f8c1f65a68c91f6babe312cf9fabbb9257b77d03a3917c0f4f5d6994e90cf58c6c7d9a802a675ea3ef60b571c9b7abc391
45 DIST nvidia-installer-470.103.01.tar.bz2 146121 BLAKE2B 06da3693cf8edba849b802f2255dcf2086ba3846f83ef19a02cb813ea2c07a6904f8a49e263018fb8b40c9fece7ab4422d95a50d12030ae6815ec60a7edac055 SHA512 b080f32394a6163c34e152561b80cca9277a53e0b38c5225b91daddc2169403e2ff4cf63a30b488ee0c3a954b21d32065b5624fb9dd33e672313909b9096de02
46 DIST nvidia-installer-470.86.tar.bz2 146359 BLAKE2B e1df27887ef7168dc50d54fd688fa04e80f79065c26386aa8f5f2b0726302a0dde51093d93c24d4145d0ff72cea14e76eee4fb9503c16a562c211dab9b2fdeaf SHA512 8bcc9a32d9f6c3cb778838124be5b112edf1b38753842bb436db74ae6448b4b7a367b79585f28bee9f2a41844e71083cea9b59beab99c14598a8d855ac432113
47 -DIST nvidia-installer-470.94.tar.gz 201064 BLAKE2B e8cdace018638567094e377731eaa324a2650c1ecded96f71dc9c0381112b300fa24b1c07d3051944483533fbe0605265fc963b8fd9f0fbf00a4089a9d68cffe SHA512 31b304aa2e94c716c75afbf7b5ec7d04c51958bb7ef7ced1fbad8bb8d208a93428b8318628bb1c5ee44f49476a5fee8a13137fc48eb9c2ae79207f1e79850844
48 -DIST nvidia-installer-495.44.tar.bz2 147036 BLAKE2B a340d1629ab133d072cd7d673a474ec834c2cd71f35b2e98d837deaa6535a784c93978ec484c5060ff28cf845d5cffa08b368b3b8b18a7ddabb4a7cb1c7a0ad0 SHA512 9f9f592b2d73515a484720eb421774a28b39af0ba3fbea127d1987533ed0f42104f640da6211f9eee63cc1063aad68dddfe8d378e3ef590c7f77d54e56bbb8bd
49 -DIST nvidia-installer-495.46.tar.gz 202462 BLAKE2B 2ad427e0c4df3ba1ef2faa7b92c4a21465961b6fb6d5f6f1997a8d1039b35341789168f82c0b9397f57f1574cb97418b69823fe5b5d321188a841e7347bb0f8c SHA512 c2fc5935e6736ea6e146a711ff05267ec42da6b1f7286589556a77f97fa02e30dacf098f9e23319ebf70808ae93275bdf3309740c6210a7d57636b483f11be74
50 DIST nvidia-installer-510.47.03.tar.bz2 144264 BLAKE2B 1c0f5b2840794252f6458b4db9d293da265508e0d165a0c04487e9efa8f727a4b08a5b6a7fc36ded4efba18dd9f71a2b9a8bf13fc81914c63ba85d117da38139 SHA512 c91832d29e3b5f13bccc4d24533b5e8ffc7c71312fba1264332344b359c312a755c678b6ba76e6740aadbd532046822c73ae16a80b77b461a88bba4f863938fc
51 DIST nvidia-modprobe-390.147.tar.bz2 35340 BLAKE2B acb49dea0c5d9d802b7c2f9f8127106bd6f9e2aaa7875941ca94c1d81377411e8d9c53357e7f9aa0170c87e349f6379a45391965e7897d0158951a4c0056a835 SHA512 a731fc990557f40fdd0fba45bcfeb99c315d0579a2d2f49bf6f84c55c91f52a9e65c358bc5a3882483ab8e9d66b546de31adcaba46a494bfc0836a0690c3d0db
52 DIST nvidia-modprobe-460.91.03.tar.bz2 38144 BLAKE2B 660b381f8757fe8862f7c4a971e44d3124afa3783d52af29543b8ed67486ba03b76c0b5d8dfadc5da8fdcc2c8799ec5f9c3016fd58e9c209fcc3ae897fb0436b SHA512 aa47a9c0744b8e11e87d2c0f300b13fee435cd5225444be7fb0b6bea49af33811dfa723a9ccfe904c7de2b5a8da36b707c1024eb495e3f0b587e3231a4bc4f39
53 DIST nvidia-modprobe-470.103.01.tar.bz2 38347 BLAKE2B bd86b8f76d040ea9bad06312b24d839413515c24867e88174d40e9dd0d9006d42fa57f8e789a8a0e8859dd1c1122ef6e57ea25fdda08eedcba10d9291181245c SHA512 ea86b083dd82ff7d8926d337f2aeccbd73cd614a85579cfcbb4ad7225565aa54f151e6d2b5d35b96eb413c3673158025348416193db5045809d743cc98d65281
54 DIST nvidia-modprobe-470.86.tar.bz2 38361 BLAKE2B eacef469888392d5993d018421e50cc594fadfcbe1367f13b68519c15d097759a91d3e294e3dc7391d2e3f93783fcd2e696ef25a7b4aad90abd18d992c480623 SHA512 5478bdd01aa7af79fcc6264b347b78bf68d2ade77eac388eb6968db72056859443778d0aad7bae1d5d63c01af332a21504fff13ac3e226446c8a71beef777860
55 -DIST nvidia-modprobe-470.94.tar.gz 43366 BLAKE2B b8e5fa22ab229eab0107f89b4f8f19e489b19e83044909e637fb1a2ea2692be55f8c5b264d89f9acce0617d8f0e37d02686be472e3f8c246b7545a906614990f SHA512 6940ee2ac676cb9da2c7dabff9c23ca3f7e4dff9b7010fb442f56e9f9fe0bccde5b777e1f7f492c72d85b1a58bd142492b95aa9fb177a36b61c6142a051d888a
56 -DIST nvidia-modprobe-495.44.tar.bz2 38377 BLAKE2B f1695c778c25d41795b1bda43df68a1dea9c3d16fc00acebe5948aeffd8aef174cb864d85260565fad8ac8c454ad3ad0cfb76529d9f88c3f10547de11492c61c SHA512 cdf7331609ce2a400f2b0e987bdbd2450a07e837971ac94b5ab746874259e6e7a4bff5eb8b9518f786365af74e8650f1c5ddfb745f867a6777825f550a6a74c0
57 -DIST nvidia-modprobe-495.46.tar.gz 43480 BLAKE2B 32b6592ca1df822227adc9a05848e98b09cfbde676b152d432aaea43ba753ccd8451515b37e275ef58159c468502b7e6d8020ce82d140c63176cd2bbdc65d1aa SHA512 1b6ba93ea72a6dbe345d360fc189ab3be038e2bf1bc93c8be2656aaaf0a81cd3a71aeefc244a71ad20db42a9e5f3145934a6c4cae70f0e8935d9891fe784676b
58 DIST nvidia-modprobe-510.47.03.tar.bz2 39064 BLAKE2B 6d8ce559474d5d7898af4274ead2d5c3846eda120e36ef6652de586bca6af7847b95c9fd40a9a935ada5fe452ef1b9ac1ec62f5ea9262faf241b6c20950cd5e3 SHA512 97166aa4ef1757ba60a75257f64f86cee1b50f4d4ee51bc38efdb75cdd99602fae1efe926de505ee1015fcffc1dab5c6830cf956ecf16d6a1c37f49e93677a8e
59 DIST nvidia-persistenced-390.147.tar.bz2 48712 BLAKE2B d8b2587c8b4374dcff198d8aae1468d30197d9b097badddbec34f0c41e3c4ab4f27b568f152a4c7a4416b3ee15194ae07442c45c50d086a6f4e7e69a5c54f42d SHA512 5877f7b0a40d54b1ca746b2fa1f1270d1ff605068dcf944e078d4cb547bc6f79c08ea9d4fbe3e94e8cd528b9721a89147d43ac849df71b2dc1d903fe1439c4a5
60 DIST nvidia-persistenced-460.91.03.tar.bz2 46160 BLAKE2B f7f34cc12de2a4d69184c60caf7a8e8025b58005ade0a3e9a1a0e95856055f7211a710a1145d674d8a2e97cf70a43175cbc5c9a5dabc49ce378623be1720c6ea SHA512 c3ff5875353c264cb224b3f512ff8308bf1b0b95282e34500d88da2574719c3c514581e5900841b089c2e6f0fe29198fa06a11668de8e21c59f9f96244a74757
61 DIST nvidia-persistenced-470.103.01.tar.bz2 46549 BLAKE2B ad25193ba3abe1a5a30233aedb1596822a4af1aa74e6862c4449567408bd84ab40526301f600bfeae938c443f26dfdabd7f912888cfd2e307fc7867d7750180e SHA512 00ab77bb84b90bfeced488353db674334796b10bbd9c8da9ed682d668db800aa7bbcba20033d21bbee6663f0659dd17daf3298cb1384f41a89409a5f3a162de6
62 DIST nvidia-persistenced-470.86.tar.bz2 46523 BLAKE2B 29b60ff1a4e7db8ff8a2b32ab6ff2efd5d5010cb66ba1678e76a55fbe4b9f51ced06f9939ee2b44d5e073d7cc5b7b246fd2a531d9607b452a9a85cf6519c783e SHA512 6194ebc246d305ad5cc4276c1d2fa06c383e28ee8accef0e39ef3dedf637684837c10b78ee2b96a0b77d3e6e5e3c3555fe12629984f8ebc6358b96e303cb81a2
63 -DIST nvidia-persistenced-470.94.tar.gz 53991 BLAKE2B 461fd202d58036f205ef4ad80a5584e7081f4bfd8ee2637764dca2965e00a7488661b6247f6eb3a1980c2e23c39227a545545dc08381e52662bb8411e593b76a SHA512 998aa4c6ff9966fce893c5b6cdffce93703fec2c48382e13411a1d8c64eb9eacf567afe87d8bdd0b5d33426a73be1f01e3f84a3bda0f71ad855c221411297c2d
64 -DIST nvidia-persistenced-495.44.tar.bz2 46259 BLAKE2B ed34bb3b82a24fe7e651eaf671469988f32a9fa4782f0a8d8f08499b85cee596996611f08fe8e26a295a3073ae6a5bd59c44a1d9c6db41138339656e932aa7df SHA512 d295caaad65336495e22ebf890f6a1d323b9fabd0fb4900c8d4e37044f472836327743fceb6d433bd1ef61dffe8a84a655ddf81b2eff085c7e913105a05cb47e
65 -DIST nvidia-persistenced-495.46.tar.gz 53692 BLAKE2B 0c449f2a870d3e29d7119250ecab962dca55a81f6cbbd110be05a7b8a739ca1f130ba255712425fe7f3d770a83f819c40c2464df2ca4c03b94df075d33f034b5 SHA512 402db637fff090dfea2bf26d44060297e21f53c23bb2abdd22e945f90d2fb5141621fa73b732257bb2fab488522b669af9b03c821467dc23f6b9f4dc00998917
66 DIST nvidia-persistenced-510.47.03.tar.bz2 47100 BLAKE2B 89a5ea2be6787868224134129b5f97c37d7cb0d17fb2bc4c49ce5dea0fac3c7555f08c0f850bc0487208d2b8d570406526812c01fbdb7bed7cb4669dd31e3f0e SHA512 00e65a042bd590a119b0952ea587475ca3fc6cf1baacf7a97f813ab343800145cb8ce4baf809d7f4c955477cebdf98b300364501df67f625b5143719399ea0a8
67 DIST nvidia-settings-390.147.tar.bz2 1109104 BLAKE2B b0a2e0c832901db65f41e54d66d61abd9afbc528d1e8095e314d7ce5c1bf73c7bc8cc1857d909d9eab2e3b9ee97831c15c52f2725a8c9f84e00416c4e3db23d1 SHA512 67c30df042b9a9b923f05a26bd2e0bd85487fab0fe2c730ac48025561d652ff0f7455a56cc7951ed8ba2a300e019fa0e52fcd912b644d0d88fd2ac0e63de2327
68 DIST nvidia-settings-460.91.03.tar.bz2 1061093 BLAKE2B 13f1da07eda3a0e7e96ac69091e4a34fcd75a8f459a4db3840c64272dd54080694c4df3b7c326884ff032eb1b8708b5e19107b112afee2c80eed242281292b02 SHA512 172ea3366065aa30e71a5a47b31366d076477b8801a8a37e0d76972406e69c8872daa80011ee020960bc5e00163c4e9e5f63aa4f0dc726065671d76851b4ad71
69 DIST nvidia-settings-470.103.01.tar.bz2 1062124 BLAKE2B a9b95174a2309668951bb090812c9d2098d7bdefa210b396523eb59887fb3ea62f517398ab63cc9cfb395f90e6535c308fd43fb0ac406afba17713e01e98b19d SHA512 62be59eae75965762b5caf6bfb71ca993ee23cc0d12d385a7e67e62c8f9180555078dfae736cc6d6bc0b52525780e32e0b76152c5e4a1be669c6dd181c0f2465
70 DIST nvidia-settings-470.86.tar.bz2 1062317 BLAKE2B 348c0346cb224eacceb570c833d74dbafc79be0fa54cf1953a96ba4198e0c76784e482284fc6790edab31bdcff3a70fe870e4634c5442b455db9c92332b28747 SHA512 4a53f4d3f52e569c4957890fbc4a4c7b2429bbca5ec07901ebb20f1848cc9a5da3e36e206719419462076793bba0b51d37a11e0856be371a19f5b7f0f2da26e7
71 -DIST nvidia-settings-470.94.tar.gz 1235132 BLAKE2B 7f46d7225b18c2e287d1d6aa72408dcfbd2a6afacb02679c6d229de02518aa3d584a1987841914079a23b424eb18ff9b13d6ca28d63b3d539c7b271213fb6b26 SHA512 d8a8a1574d27ec77e25e13bbfff60b3e673b125c2053788c83481c3684af8cb51c2ae19267b01827bb4c53eef84645a9d9a4ea840159414bf51162148067652d
72 -DIST nvidia-settings-495.44.tar.bz2 1062420 BLAKE2B 98d5ac73f279bc3d415e3902946eca15fe4d61978dde5b21a96e9e1367129b9949078bd2c3778d344237ff4b9cf65a2921025a6410394f007dd97f441dc320f4 SHA512 e69bb32e47a43368de1959a0c8a877281bba0139119b1a34f6da86e006a8b0dce5bafe0fd017221be40a6bddcd93934e9479cbb8f04fb979b84f5f206835118e
73 -DIST nvidia-settings-495.46.tar.gz 1235052 BLAKE2B aa4396b56a41f19f0876a135b6c2de0f74b3d8a50fb7ad51b00394868c3354cb85d0cb54dac146537010ea4d091daf02149e5ffc5d59f8ca27f2e08b9d798dd3 SHA512 f9019d651f482aa35ccade111dabcc6d21e2dcb229a6102d5b8c9c72df648fa053a01bf0d3efef27d974aed2a23cbfc5022ebb6e9a93eba309b0863068d2423a
74 DIST nvidia-settings-510.47.03.tar.bz2 1075444 BLAKE2B 6b8b215ec94e12fbb82f4468cb8b3368eee7185840ea64d388c9a556d2355d864f32c66cb7ad4b9132b7494e642c2804ee1736d3ffa337ff7240dc950854a7bc SHA512 6e522bfa39f74556d315fb04c8f2ba7e9e7bd0adbc5a73a926b33fc8ee367ac07a9020cbaafe2dbe574e1b07f27fd03c9ac920df1ac6bd42be80335d04186b31
75 DIST nvidia-xconfig-390.147.tar.bz2 107426 BLAKE2B c7004dab351581176a4e00fc099a12374cb29f3306769724c874a17600d6c11e79ac807fe218022d72ccf83ed33789d2378b0cdba35e5f94458e30631d725384 SHA512 a530c649ff7e75706ba37072ee58d64d4758348a45b953396a0e9d2608e1d7c3d299298cb50b1e8ee0bf2f6f8817bca64637b77e18aab0685a4edd630f18fb9a
76 DIST nvidia-xconfig-460.91.03.tar.bz2 108477 BLAKE2B d95505e508ca16d8ebe8c22c445a1b686c32a626c379b1b48e2a8101969fc03b90446953cc30e945da9388237fa1b9e5f83417aba1fb062d58866a523c256769 SHA512 4bb8f7fc42e7fa5e3897884bd7e722c4fe8ab1e4a87cad4136e1764cdd91d4795f817dcee63a20279315b4839d92fe5244d073ea2310c704f8aacd38bacb28a4
77 DIST nvidia-xconfig-470.103.01.tar.bz2 108687 BLAKE2B 2e5de637f9ba7bb516fd1a6801f8ee5be2934f99503bd20a62eaf87c0105d7624ef8de993614b1316ea8d203f9b7a6be07d3c9d5005d8a6306b7fc89cc0bb443 SHA512 abbabb3bf650395237759cbfaa39565893156ae87d07855bc96bfa0f46e10f34fd9efb628ef184f4dd525f80c63c62938b9661c9a4f3f5e1e5420ae1fdf26f0e
78 DIST nvidia-xconfig-470.86.tar.bz2 108946 BLAKE2B 8711d46e18db89c94fe9986e3ea296504d1d4795be745f9ab9eac35e499220335fe882258bc52c1a9dedd7848c9715f8bf481e3690913204db71584b0913b85e SHA512 ea658567b7532ae3a33a1783ef224b7f57db34391280f529352cce042b8104ee8092b3585b7eef8cd5b295e4f8246e872d935c32edf746ca38651b2df21e7e6a
79 -DIST nvidia-xconfig-470.94.tar.gz 142577 BLAKE2B 0687d78a05d4b990bad18a27544874dc79fdef7a7d5e7f5393f10ad7e874cfe51b27919ab61e2c7670e0d89848f80f68660eac0294bab27f004b8c98b650a102 SHA512 88611ed7a0894c218ad536a9819182a1f94d85c24bc3ef1b2959134147ba8d623bf1b35bd8f30ad2367704b3846f23d84ebe5b94f08936ec97ed26ac63d40add
80 -DIST nvidia-xconfig-495.44.tar.bz2 108699 BLAKE2B 8027d9b14f16c792e0839746c549979017e52724a5826cad3b53cda0fa2638b6f7dfe72353e36b84084f4a56a004cd91f87ff1d1d9e542b5d760e47092268993 SHA512 624aa71f319d7d8e3383580eda5c6cfc986ef4c3a9c14493cd561cd3ba758763d79731bb7e7e03fc89d3b8a3a8b65cee324de1d9980b5725678ccd50cb26175e
81 -DIST nvidia-xconfig-495.46.tar.gz 142633 BLAKE2B 1df2a080dba81b3c9e984a1d2e7d49f3e8adf9f1afb28dfe6a41a9f54b03e4830d42851a16583703c2bf88f11989851aaf23fc8dad0d3b5f2f8c3885dbb5db7e SHA512 b60d65e421460e4bdad579b36a141e82b869d34ca21849bdc33a445466c1b8ab505ab4ab82d6801e05f85dcac286566ec792d8c7708ba511aebfebc29ec0447d
82 DIST nvidia-xconfig-510.47.03.tar.bz2 109758 BLAKE2B 503ea2850ab5f64648f84675da66e4d0fa50bccdc10355df9295987cc7c3c744076671030b9bda619c22e9c8e824be13dd852d33227cabacde102282acf95796 SHA512 45ca5ddcb744b27ba4661aef38496782ced640945f659894e262b239f565afd1ec5aab254b62ab87c00ca4cda346bc91ec70738736724aedf79c7845b4a0b03a
83
84 diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-470.94.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-470.94.ebuild
85 deleted file mode 100644
86 index 3da2d49715ad..000000000000
87 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-470.94.ebuild
88 +++ /dev/null
89 @@ -1,445 +0,0 @@
90 -# Copyright 1999-2022 Gentoo Authors
91 -# Distributed under the terms of the GNU General Public License v2
92 -
93 -EAPI=7
94 -
95 -MODULES_OPTIONAL_USE="driver"
96 -inherit desktop flag-o-matic linux-mod multilib readme.gentoo-r1 \
97 - systemd toolchain-funcs unpacker
98 -
99 -NV_KERNEL_MAX="5.15"
100 -NV_URI="https://download.nvidia.com/XFree86/"
101 -
102 -DESCRIPTION="NVIDIA Accelerated Graphics Driver"
103 -HOMEPAGE="https://www.nvidia.com/download/index.aspx"
104 -SRC_URI="
105 - amd64? ( https://us.download.nvidia.com/XFree86/Linux-x86_64/${PV}/NVIDIA-Linux-x86_64-${PV}.run )
106 - arm64? ( https://us.download.nvidia.com/XFree86/aarch64/${PV}/NVIDIA-Linux-aarch64-${PV}.run )
107 - $(printf "https://github.com/NVIDIA/%s/archive/refs/tags/${PV}.tar.gz -> %s-${PV}.tar.gz " \
108 - nvidia-{installer,modprobe,persistenced,settings,xconfig}{,})"
109 -# nvidia-installer is unused but here for GPL-2's "distribute sources"
110 -S="${WORKDIR}"
111 -
112 -LICENSE="NVIDIA-r2 BSD BSD-2 GPL-2 MIT ZLIB curl openssl"
113 -SLOT="0/${PV%%.*}"
114 -KEYWORDS="-* amd64"
115 -IUSE="+X abi_x86_32 abi_x86_64 +driver persistenced static-libs +tools wayland"
116 -
117 -COMMON_DEPEND="
118 - acct-group/video
119 - sys-libs/glibc
120 - persistenced? (
121 - acct-user/nvpd
122 - net-libs/libtirpc:=
123 - )
124 - tools? (
125 - dev-libs/atk
126 - dev-libs/glib:2
127 - dev-libs/jansson:=
128 - media-libs/harfbuzz:=
129 - x11-libs/cairo
130 - x11-libs/gdk-pixbuf:2
131 - x11-libs/gtk+:3
132 - x11-libs/libX11
133 - x11-libs/libXext
134 - x11-libs/libXxf86vm
135 - x11-libs/pango
136 - )"
137 -RDEPEND="
138 - ${COMMON_DEPEND}
139 - X? (
140 - media-libs/libglvnd[X,abi_x86_32(-)?]
141 - x11-libs/libX11[abi_x86_32(-)?]
142 - x11-libs/libXext[abi_x86_32(-)?]
143 - )
144 - wayland? (
145 - ~gui-libs/egl-wayland-1.1.7
146 - media-libs/libglvnd
147 - )"
148 -DEPEND="
149 - ${COMMON_DEPEND}
150 - static-libs? (
151 - x11-libs/libX11
152 - x11-libs/libXext
153 - )
154 - tools? (
155 - media-libs/libglvnd
156 - sys-apps/dbus
157 - x11-base/xorg-proto
158 - x11-libs/libXrandr
159 - x11-libs/libXv
160 - x11-libs/libvdpau
161 - )"
162 -BDEPEND="
163 - sys-devel/m4
164 - virtual/pkgconfig"
165 -
166 -QA_PREBUILT="lib/firmware/* opt/bin/* usr/lib*"
167 -
168 -PATCHES=(
169 - "${FILESDIR}"/nvidia-modprobe-390.141-uvm-perms.patch
170 - "${FILESDIR}"/nvidia-settings-390.144-desktop.patch
171 - "${FILESDIR}"/nvidia-settings-390.144-no-gtk2.patch
172 - "${FILESDIR}"/nvidia-settings-390.144-raw-ldflags.patch
173 -)
174 -
175 -pkg_setup() {
176 - use driver || return
177 -
178 - local CONFIG_CHECK="
179 - PROC_FS
180 - ~DRM_KMS_HELPER
181 - ~SYSVIPC
182 - ~!LOCKDEP
183 - ~!SLUB_DEBUG_ON
184 - !DEBUG_MUTEXES"
185 - local ERROR_DRM_KMS_HELPER="CONFIG_DRM_KMS_HELPER: is not set but needed for Xorg auto-detection
186 - of drivers (no custom config), and for wayland / nvidia-drm.modeset=1.
187 - Cannot be directly selected in the kernel's menuconfig, and may need
188 - selection of a DRM device even if unused, e.g. CONFIG_DRM_AMDGPU=m or
189 - DRM_I915=y, DRM_NOUVEAU=m also acceptable if a module and not built-in."
190 -
191 - use amd64 && kernel_is -ge 5 8 && CONFIG_CHECK+=" X86_PAT" #817764
192 -
193 - MODULE_NAMES="
194 - nvidia(video:kernel)
195 - nvidia-drm(video:kernel)
196 - nvidia-modeset(video:kernel)
197 - nvidia-peermem(video:kernel)
198 - nvidia-uvm(video:kernel)"
199 -
200 - linux-mod_pkg_setup
201 -
202 - [[ ${MERGE_TYPE} == binary ]] && return
203 -
204 - BUILD_PARAMS='NV_VERBOSE=1 IGNORE_CC_MISMATCH=yes SYSSRC="${KV_DIR}" SYSOUT="${KV_OUT_DIR}"'
205 - BUILD_TARGETS="modules"
206 -
207 - if linux_chkconfig_present CC_IS_CLANG; then
208 - ewarn "Warning: building ${PN} with a clang-built kernel is experimental"
209 -
210 - BUILD_PARAMS+=' CC=${CHOST}-clang'
211 - if linux_chkconfig_present LD_IS_LLD; then
212 - BUILD_PARAMS+=' LD=ld.lld'
213 - if linux_chkconfig_present LTO_CLANG_THIN; then
214 - # kernel enables cache by default leading to sandbox violations
215 - BUILD_PARAMS+=' ldflags-y=--thinlto-cache-dir= LDFLAGS_MODULE=--thinlto-cache-dir='
216 - fi
217 - fi
218 - fi
219 -
220 - if kernel_is -gt ${NV_KERNEL_MAX/./ }; then
221 - ewarn "Kernel ${KV_MAJOR}.${KV_MINOR} is either known to break this version of ${PN}"
222 - ewarn "or was not tested with it. It is recommended to use one of:"
223 - ewarn " <=sys-kernel/gentoo-kernel-${NV_KERNEL_MAX}.x"
224 - ewarn " <=sys-kernel/gentoo-sources-${NV_KERNEL_MAX}.x"
225 - ewarn "You are free to try or use /etc/portage/patches, but support will"
226 - ewarn "not be given and issues wait until NVIDIA releases a fixed version."
227 - ewarn
228 - ewarn "Do _not_ file a bug report if run into issues."
229 - ewarn
230 - fi
231 -}
232 -
233 -src_prepare() {
234 - # make patches usable across versions
235 - rm nvidia-modprobe && mv nvidia-modprobe{-${PV},} || die
236 - rm nvidia-persistenced && mv nvidia-persistenced{-${PV},} || die
237 - rm nvidia-settings && mv nvidia-settings{-${PV},} || die
238 - rm nvidia-xconfig && mv nvidia-xconfig{-${PV},} || die
239 -
240 - default
241 -
242 - # prevent detection of incomplete kernel DRM support (bug #603818)
243 - sed 's/defined(CONFIG_DRM/defined(CONFIG_DRM_KMS_HELPER/g' \
244 - -i kernel/conftest.sh || die
245 -
246 - sed 's/__USER__/nvpd/' \
247 - nvidia-persistenced/init/systemd/nvidia-persistenced.service.template \
248 - > "${T}"/nvidia-persistenced.service || die
249 -
250 - # enable nvidia-drm.modeset=1 by default with USE=wayland
251 - cp "${FILESDIR}"/nvidia-470.conf "${T}"/nvidia.conf || die
252 - use !wayland || sed -i '/^#.*modeset=1$/s/^#//' "${T}"/nvidia.conf || die
253 -}
254 -
255 -src_compile() {
256 - tc-export AR CC LD OBJCOPY
257 -
258 - NV_ARGS=(
259 - PREFIX="${EPREFIX}"/usr
260 - HOST_CC="$(tc-getBUILD_CC)"
261 - HOST_LD="$(tc-getBUILD_LD)"
262 - NV_USE_BUNDLED_LIBJANSSON=0
263 - NV_VERBOSE=1 DO_STRIP= MANPAGE_GZIP= OUTPUTDIR=out
264 - )
265 -
266 - use driver && linux-mod_src_compile
267 -
268 - emake "${NV_ARGS[@]}" -C nvidia-modprobe
269 - use persistenced && emake "${NV_ARGS[@]}" -C nvidia-persistenced
270 - use X && emake "${NV_ARGS[@]}" -C nvidia-xconfig
271 -
272 - if use tools; then
273 - # cflags: avoid noisy logs, only use here and set first to let override
274 - # ldflags: abi currently needed if LD=ld.lld
275 - CFLAGS="-Wno-deprecated-declarations ${CFLAGS}" \
276 - RAW_LDFLAGS="$(get_abi_LDFLAGS) $(raw-ldflags)" \
277 - emake "${NV_ARGS[@]}" -C nvidia-settings
278 - elif use static-libs; then
279 - emake "${NV_ARGS[@]}" -C nvidia-settings/src out/libXNVCtrl.a
280 - fi
281 -}
282 -
283 -src_install() {
284 - local libdir=$(get_libdir) libdir32=$(ABI=x86 get_libdir)
285 -
286 - NV_ARGS+=( DESTDIR="${D}" LIBDIR="${ED}"/usr/${libdir} )
287 -
288 - local -A paths=(
289 - [APPLICATION_PROFILE]=/usr/share/nvidia
290 - [CUDA_ICD]=/etc/OpenCL/vendors
291 - [EGL_EXTERNAL_PLATFORM_JSON]=/usr/share/egl/egl_external_platform.d
292 - [FIRMWARE]=/lib/firmware/nvidia/${PV}
293 - [GLVND_EGL_ICD_JSON]=/usr/share/glvnd/egl_vendor.d
294 - [VULKAN_ICD_JSON]=/usr/share/vulkan
295 - [WINE_LIB]=/usr/${libdir}/nvidia/wine
296 - [XORG_OUTPUTCLASS_CONFIG]=/usr/share/X11/xorg.conf.d
297 -
298 - [GLX_MODULE_SHARED_LIB]=/usr/${libdir}/xorg/modules/extensions
299 - [GLX_MODULE_SYMLINK]=/usr/${libdir}/xorg/modules
300 - [XMODULE_SHARED_LIB]=/usr/${libdir}/xorg/modules
301 - )
302 -
303 - local skip_files=(
304 - $(usex X '' '
305 - libGLX_nvidia libglxserver_nvidia
306 - libnvidia-ifr
307 - nvidia_icd.json nvidia_layers.json')
308 - $(usex wayland '' 'libnvidia-vulkan-producer')
309 - libGLX_indirect # non-glvnd unused fallback
310 - libnvidia-gtk nvidia-{settings,xconfig} # built from source
311 - libnvidia-egl-wayland 10_nvidia_wayland # gui-libs/egl-wayland
312 - )
313 - local skip_modules=(
314 - $(usex X '' 'nvfbc vdpau xdriver')
315 - $(usex driver '' 'gsp')
316 - installer nvpd # handled separately / built from source
317 - )
318 - local skip_types=(
319 - GLVND_LIB GLVND_SYMLINK EGL_CLIENT.\* GLX_CLIENT.\* # media-libs/libglvnd
320 - OPENCL_WRAPPER.\* # virtual/opencl
321 - DOCUMENTATION DOT_DESKTOP .\*_SRC DKMS_CONF # handled separately / unused
322 - )
323 -
324 - local DOCS=(
325 - README.txt NVIDIA_Changelog supported-gpus/supported-gpus.json
326 - nvidia-settings/doc/{FRAMELOCK,NV-CONTROL-API}.txt
327 - )
328 - local HTML_DOCS=( html/. )
329 - einstalldocs
330 -
331 - local DISABLE_AUTOFORMATTING=yes
332 - local DOC_CONTENTS="\
333 -Trusted users should be in the 'video' group to use NVIDIA devices.
334 -You can add yourself by using: gpasswd -a my-user video\
335 -$(usex driver "
336 -
337 -Like all out-of-tree kernel modules, it is necessary to rebuild
338 -${PN} after upgrading or rebuilding the Linux kernel
339 -by for example running \`emerge @module-rebuild\`. Alternatively,
340 -if using a distribution kernel (sys-kernel/gentoo-kernel{,-bin}),
341 -this can be automated by setting USE=dist-kernel globally.
342 -
343 -Loaded kernel modules also must not mismatch with the installed
344 -${PN} version (excluding -r revision), meaning should
345 -ensure \`eselect kernel list\` points to the kernel that will be
346 -booted before building and preferably reboot after upgrading
347 -${PN} (the ebuild will emit a warning if mismatching).
348 -
349 -See '${EPREFIX}/etc/modprobe.d/nvidia.conf' for modules options." '')\
350 -$(use amd64 && usex abi_x86_32 '' "
351 -
352 -Note that without USE=abi_x86_32 on ${PN}, 32bit applications
353 -(typically using wine / steam) will not be able to use GPU acceleration.")
354 -
355 -For general information on using ${PN}, please see:
356 -https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers"
357 - readme.gentoo_create_doc
358 -
359 - if use driver; then
360 - linux-mod_src_install
361 -
362 - insinto /etc/modprobe.d
363 - doins "${T}"/nvidia.conf
364 -
365 - # used for gpu verification with binpkgs (not kept, see pkg_preinst)
366 - insinto /usr/share/nvidia
367 - doins supported-gpus/supported-gpus.json
368 - fi
369 -
370 - emake "${NV_ARGS[@]}" -C nvidia-modprobe install
371 - fowners :video /usr/bin/nvidia-modprobe #505092
372 - fperms 4710 /usr/bin/nvidia-modprobe
373 -
374 - if use persistenced; then
375 - emake "${NV_ARGS[@]}" -C nvidia-persistenced install
376 - newconfd "${FILESDIR}"/nvidia-persistenced.confd nvidia-persistenced
377 - newinitd "${FILESDIR}"/nvidia-persistenced.initd nvidia-persistenced
378 - systemd_dounit "${T}"/nvidia-persistenced.service
379 - fi
380 -
381 - if use tools; then
382 - emake "${NV_ARGS[@]}" -C nvidia-settings install
383 -
384 - doicon nvidia-settings/doc/nvidia-settings.png
385 - domenu nvidia-settings/doc/nvidia-settings.desktop
386 -
387 - exeinto /etc/X11/xinit/xinitrc.d
388 - newexe "${FILESDIR}"/95-nvidia-settings-r1 95-nvidia-settings
389 - fi
390 -
391 - if use static-libs; then
392 - dolib.a nvidia-settings/src/out/libXNVCtrl.a
393 -
394 - insinto /usr/include/NVCtrl
395 - doins nvidia-settings/src/libXNVCtrl/NVCtrl{Lib,}.h
396 - fi
397 -
398 - use X && emake "${NV_ARGS[@]}" -C nvidia-xconfig install
399 -
400 - # mimic nvidia-installer by reading .manifest to install files
401 - # 0:file 1:perms 2:type 3+:subtype/arguments -:module
402 - local m into
403 - while IFS=' ' read -ra m; do
404 - ! [[ ${#m[@]} -ge 2 && ${m[-1]} =~ MODULE: ]] ||
405 - eval '[[ " ${m[0]##*/}" =~ ^(\ '${skip_files[*]/%/.*|\\}' )$ ]]' ||
406 - eval '[[ " ${m[2]}" =~ ^(\ '${skip_types[*]/%/|\\}' )$ ]]' ||
407 - has ${m[-1]#MODULE:} "${skip_modules[@]}" && continue
408 -
409 - case ${m[2]} in
410 - MANPAGE)
411 - gzip -dc ${m[0]} | newman - ${m[0]%.gz}; assert
412 - continue
413 - ;;
414 - VDPAU_SYMLINK) m[4]=vdpau/; m[5]=${m[5]#vdpau/};; # .so to vdpau/
415 - esac
416 -
417 - if [[ -v paths[${m[2]}] ]]; then
418 - into=${paths[${m[2]}]}
419 - elif [[ ${m[2]} =~ _BINARY$ ]]; then
420 - into=/opt/bin
421 - elif [[ ${m[3]} == COMPAT32 ]]; then
422 - use abi_x86_32 || continue
423 - into=/usr/${libdir32}
424 - elif [[ ${m[2]} =~ _LIB$|_SYMLINK$ ]]; then
425 - into=/usr/${libdir}
426 - else
427 - die "No known installation path for ${m[0]}"
428 - fi
429 - [[ ${m[3]: -2} == ?/ ]] && into+=/${m[3]%/}
430 - [[ ${m[4]: -2} == ?/ ]] && into+=/${m[4]%/}
431 -
432 - if [[ ${m[2]} =~ _SYMLINK$ ]]; then
433 - [[ ${m[4]: -1} == / ]] && m[4]=${m[5]}
434 - dosym ${m[4]} ${into}/${m[0]}
435 - continue
436 - fi
437 - [[ ${m[0]} =~ ^libnvidia-ngx.so ]] &&
438 - dosym ${m[0]} ${into}/${m[0]%.so*}.so.1 # soname not in .manifest
439 -
440 - printf -v m[1] %o $((m[1] | 0200)) # 444->644
441 - insopts -m${m[1]}
442 - insinto ${into}
443 - doins ${m[0]}
444 - done < .manifest || die
445 -
446 - # MODULE:installer non-skipped extras
447 - exeinto /lib/systemd/system-sleep
448 - doexe systemd/system-sleep/nvidia
449 - dobin systemd/nvidia-sleep.sh
450 - systemd_dounit systemd/system/nvidia-{hibernate,resume,suspend}.service
451 -
452 - dobin nvidia-bug-report.sh
453 -}
454 -
455 -pkg_preinst() {
456 - has_version "${CATEGORY}/${PN}[abi_x86_32]" && NV_HAD_ABI32=
457 - has_version "${CATEGORY}/${PN}[wayland]" && NV_HAD_WAYLAND=
458 -
459 - use driver || return
460 - linux-mod_pkg_preinst
461 -
462 - # set video group id based on live system (bug #491414)
463 - local g=$(getent group video | cut -d: -f3)
464 - [[ ${g} ]] || die "Failed to determine video group id"
465 - sed -i "s/@VIDEOGID@/${g}/" "${ED}"/etc/modprobe.d/nvidia.conf || die
466 -
467 - # try to find driver mismatches using temporary supported-gpus.json
468 - for g in $(grep -l 0x10de /sys/bus/pci/devices/*/vendor 2>/dev/null); do
469 - g=$(grep -io "\"devid\":\"$(<${g%vendor}device)\"[^}]*branch\":\"[0-9]*" \
470 - "${ED}"/usr/share/nvidia/supported-gpus.json 2>/dev/null)
471 - if [[ ${g} ]]; then
472 - g=$((${g##*\"}+1))
473 - if ver_test -ge ${g}; then
474 - NV_LEGACY_MASK=">=${CATEGORY}/${PN}-${g}"
475 - break
476 - fi
477 - fi
478 - done
479 - rm "${ED}"/usr/share/nvidia/supported-gpus.json || die
480 -}
481 -
482 -pkg_postinst() {
483 - use driver && linux-mod_pkg_postinst
484 -
485 - readme.gentoo_print_elog
486 -
487 - if [[ -r /proc/driver/nvidia/version &&
488 - $(</proc/driver/nvidia/version) != *" ${PV} "* ]]; then
489 - ewarn "Currently loaded NVIDIA modules do not match the newly installed"
490 - ewarn "libraries and may prevent launching GPU-accelerated applications."
491 - use driver && ewarn "The easiest way to fix this is usually to reboot."
492 - fi
493 -
494 - if [[ $(</proc/cmdline) == *slub_debug=[!-]* ]]; then
495 - ewarn "Detected that the current kernel command line is using 'slub_debug=',"
496 - ewarn "this may lead to system instability/freezes with this version of"
497 - ewarn "${PN}. Bug: https://bugs.gentoo.org/796329"
498 - fi
499 -
500 - if [[ -v NV_LEGACY_MASK ]]; then
501 - ewarn
502 - ewarn "***WARNING***"
503 - ewarn
504 - ewarn "You are installing a version of ${PN} known not to work"
505 - ewarn "with a GPU of the current system. If unwanted, add the mask:"
506 - if [[ -d ${EROOT}/etc/portage/package.mask ]]; then
507 - ewarn " echo '${NV_LEGACY_MASK}' > ${EROOT}/etc/portage/package.mask/${PN}"
508 - else
509 - ewarn " echo '${NV_LEGACY_MASK}' >> ${EROOT}/etc/portage/package.mask"
510 - fi
511 - ewarn "...then downgrade to a legacy branch if possible. For details, see:"
512 - ewarn "https://www.nvidia.com/object/IO_32667.html"
513 - fi
514 -
515 - if use !abi_x86_32 && [[ -v NV_HAD_ABI32 ]]; then
516 - elog
517 - elog "USE=abi_x86_32 is disabled, 32bit applications will not be able to"
518 - elog "use nvidia-drivers for acceleration without it (e.g. commonly used"
519 - elog "with app-emulation/wine-* or steam). Re-enable if needed."
520 - fi
521 -
522 - if use wayland && use driver && [[ ! -v NV_HAD_WAYLAND ]]; then
523 - elog
524 - elog "With USE=wayland, this version of ${PN} sets nvidia-drm.modeset=1"
525 - elog "in '${EROOT}/etc/modprobe.d/nvidia.conf'. This feature is considered"
526 - elog "experimental but is required for wayland."
527 - elog
528 - elog "If you experience issues, either disable wayland or edit nvidia.conf."
529 - elog "Of note, may possibly cause issues with SLI and Reverse PRIME."
530 - elog
531 - elog "This version of ${PN} only supports EGLStream which is only"
532 - elog "supported by a few wayland compositors (e.g. kwin / mutter, not sway)."
533 - fi
534 -}
535
536 diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-495.44-r2.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-495.44-r2.ebuild
537 deleted file mode 100644
538 index 8d634642a59a..000000000000
539 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-495.44-r2.ebuild
540 +++ /dev/null
541 @@ -1,493 +0,0 @@
542 -# Copyright 1999-2022 Gentoo Authors
543 -# Distributed under the terms of the GNU General Public License v2
544 -
545 -EAPI=7
546 -
547 -MODULES_OPTIONAL_USE="driver"
548 -inherit desktop eapi8-dosym linux-mod multilib-build \
549 - readme.gentoo-r1 systemd toolchain-funcs unpacker
550 -
551 -NV_KERNEL_MAX="5.15"
552 -NV_URI="https://download.nvidia.com/XFree86/"
553 -
554 -DESCRIPTION="NVIDIA Accelerated Graphics Driver"
555 -HOMEPAGE="https://www.nvidia.com/download/index.aspx"
556 -SRC_URI="
557 - amd64? ( ${NV_URI}Linux-x86_64/${PV}/NVIDIA-Linux-x86_64-${PV}.run )
558 - arm64? ( ${NV_URI}Linux-aarch64/${PV}/NVIDIA-Linux-aarch64-${PV}.run )
559 - ${NV_URI}nvidia-installer/nvidia-installer-${PV}.tar.bz2
560 - ${NV_URI}nvidia-modprobe/nvidia-modprobe-${PV}.tar.bz2
561 - ${NV_URI}nvidia-persistenced/nvidia-persistenced-${PV}.tar.bz2
562 - ${NV_URI}nvidia-settings/nvidia-settings-${PV}.tar.bz2
563 - ${NV_URI}nvidia-xconfig/nvidia-xconfig-${PV}.tar.bz2"
564 -# nvidia-installer is unused but here for GPL-2's "distribute sources"
565 -S="${WORKDIR}"
566 -
567 -LICENSE="NVIDIA-r2 BSD GPL-2 MIT ZLIB"
568 -SLOT="0/${PV%%.*}"
569 -KEYWORDS="-* ~amd64"
570 -IUSE="+X +driver static-libs +tools wayland"
571 -RESTRICT="bindist"
572 -
573 -COMMON_DEPEND="
574 - acct-group/video
575 - acct-user/nvpd
576 - net-libs/libtirpc:=
577 - sys-libs/glibc
578 - tools? (
579 - dev-libs/atk
580 - dev-libs/glib:2
581 - dev-libs/jansson
582 - media-libs/harfbuzz:=
583 - x11-libs/cairo
584 - x11-libs/gdk-pixbuf:2
585 - x11-libs/gtk+:3
586 - x11-libs/libX11
587 - x11-libs/libXext
588 - x11-libs/libXxf86vm
589 - x11-libs/pango
590 - )"
591 -RDEPEND="
592 - ${COMMON_DEPEND}
593 - X? (
594 - media-libs/libglvnd[X,${MULTILIB_USEDEP}]
595 - x11-libs/libX11[${MULTILIB_USEDEP}]
596 - x11-libs/libXext[${MULTILIB_USEDEP}]
597 - )
598 - wayland? (
599 - >=gui-libs/egl-wayland-1.1.7-r1
600 - media-libs/libglvnd
601 - >=media-libs/mesa-21.2[gbm(+)]
602 - x11-libs/libdrm
603 - )"
604 -DEPEND="
605 - ${COMMON_DEPEND}
606 - static-libs? (
607 - x11-libs/libX11
608 - x11-libs/libXext
609 - )
610 - tools? (
611 - media-libs/libglvnd
612 - sys-apps/dbus
613 - x11-base/xorg-proto
614 - x11-libs/libXrandr
615 - x11-libs/libXv
616 - x11-libs/libvdpau
617 - )"
618 -BDEPEND="
619 - app-misc/pax-utils
620 - sys-devel/m4
621 - virtual/pkgconfig"
622 -
623 -QA_PREBUILT="lib/firmware/* opt/bin/* usr/lib*"
624 -
625 -PATCHES=(
626 - "${FILESDIR}"/nvidia-modprobe-390.141-uvm-perms.patch
627 -)
628 -
629 -pkg_setup() {
630 - use driver || return
631 -
632 - local CONFIG_CHECK="
633 - PROC_FS
634 - ~DRM_KMS_HELPER
635 - ~SYSVIPC
636 - ~!LOCKDEP
637 - ~!SLUB_DEBUG_ON
638 - !DEBUG_MUTEXES"
639 - local ERROR_DRM_KMS_HELPER="CONFIG_DRM_KMS_HELPER: is not set but needed for Xorg auto-detection
640 - of drivers (no custom config), and for wayland / nvidia-drm.modeset=1.
641 - Cannot be directly selected in the kernel's menuconfig, and may need
642 - selection of a DRM device even if unused, e.g. CONFIG_DRM_AMDGPU=m or
643 - DRM_I915=y, DRM_NOUVEAU=m also acceptable if a module and not built-in."
644 -
645 - use amd64 && kernel_is -ge 5 8 && CONFIG_CHECK+=" X86_PAT" #817764
646 -
647 - MODULE_NAMES="
648 - nvidia(video:kernel)
649 - nvidia-drm(video:kernel)
650 - nvidia-modeset(video:kernel)
651 - nvidia-peermem(video:kernel)
652 - nvidia-uvm(video:kernel)"
653 -
654 - linux-mod_pkg_setup
655 -
656 - [[ ${MERGE_TYPE} == binary ]] && return
657 -
658 - BUILD_PARAMS='NV_VERBOSE=1 IGNORE_CC_MISMATCH=yes SYSSRC="${KV_DIR}" SYSOUT="${KV_OUT_DIR}"'
659 - BUILD_TARGETS="modules" # defaults' clean sometimes deletes modules
660 -
661 - if linux_chkconfig_present CC_IS_CLANG; then
662 - ewarn "Warning: building ${PN} with a clang-built kernel is experimental."
663 -
664 - BUILD_PARAMS+=' CC=${CHOST}-clang'
665 - if linux_chkconfig_present LD_IS_LLD; then
666 - BUILD_PARAMS+=' LD=ld.lld'
667 - if linux_chkconfig_present LTO_CLANG_THIN; then
668 - # kernel enables cache by default leading to sandbox violations
669 - BUILD_PARAMS+=' ldflags-y=--thinlto-cache-dir= LDFLAGS_MODULE=--thinlto-cache-dir='
670 - fi
671 - fi
672 - fi
673 -
674 - if kernel_is -gt ${NV_KERNEL_MAX/./ }; then
675 - ewarn "Kernel ${KV_MAJOR}.${KV_MINOR} is either known to break this version of nvidia-drivers"
676 - ewarn "or was not tested with it. It is recommended to use one of:"
677 - ewarn " <=sys-kernel/gentoo-kernel-${NV_KERNEL_MAX}.x"
678 - ewarn " <=sys-kernel/gentoo-sources-${NV_KERNEL_MAX}.x"
679 - ewarn "You are free to try or use /etc/portage/patches, but support will"
680 - ewarn "not be given and issues wait until NVIDIA releases a fixed version."
681 - ewarn
682 - ewarn "Do _not_ file a bug report if run into issues."
683 - ewarn
684 - fi
685 -}
686 -
687 -src_prepare() {
688 - # make user patches usable across versions
689 - rm nvidia-modprobe && mv nvidia-modprobe{-${PV},} || die
690 - rm nvidia-persistenced && mv nvidia-persistenced{-${PV},} || die
691 - rm nvidia-settings && mv nvidia-settings{-${PV},} || die
692 - rm nvidia-xconfig && mv nvidia-xconfig{-${PV},} || die
693 -
694 - default
695 -
696 - # prevent detection of incomplete kernel DRM support (bug #603818)
697 - sed 's/defined(CONFIG_DRM/defined(CONFIG_DRM_KMS_HELPER/g' \
698 - -i kernel/conftest.sh || die
699 -
700 - sed -e '/Exec=\|Icon=/s/_.*/nvidia-settings/' \
701 - -e '/Categories=/s/_.*/System;Settings;/' \
702 - -i nvidia-settings/doc/nvidia-settings.desktop || die
703 -
704 - # remove gtk2 support (bug #592730)
705 - sed '/^GTK2LIB = /d;/INSTALL.*GTK2LIB/,+1d' \
706 - -i nvidia-settings/src/Makefile || die
707 -
708 - sed 's/__USER__/nvpd/' \
709 - nvidia-persistenced/init/systemd/nvidia-persistenced.service.template \
710 - > nvidia-persistenced.service || die
711 -
712 - # enable nvidia-drm.modeset=1 by default with USE=wayland
713 - cp "${FILESDIR}"/nvidia-470.conf "${T}"/nvidia.conf || die
714 - use !wayland || sed -i '/^#.*modeset=1$/s/^#//' "${T}"/nvidia.conf || die
715 -
716 - gzip -d nvidia-{cuda-mps-control,smi}.1.gz || die
717 -
718 - # temporary workaround for dbus powerd spam in 495 series
719 - # (jz -> jmp after nvidia.powerd.server, need RESTRICT=bindist)
720 - # https://forums.developer.nvidia.com/t/bug-nvidia-v495-29-05-driver-spamming-dbus-enabled-applications-with-invalid-messages/192892/14
721 - if use amd64; then
722 - sed 's/\x0f\x84\[\x01\x00\x00\x4c\x8d/\xe9\x5c\x01\x00\x00\x00\x4c\x8d/' \
723 - -i libnvidia-glcore.so.495.44 || die
724 - sed 's/\x0f\x84\x65\x01\x00\x00\x83\xec\x08\x89/\xe9\x66\x01\x00\x00\x00\x83\xec\x08\x89/' \
725 - -i 32/libnvidia-glcore.so.495.44 || die
726 - fi
727 -}
728 -
729 -src_compile() {
730 - nvidia-drivers_make() {
731 - emake -C nvidia-${1} ${2} \
732 - PREFIX="${EPREFIX}/usr" \
733 - HOST_CC="$(tc-getBUILD_CC)" \
734 - HOST_LD="$(tc-getBUILD_LD)" \
735 - NV_USE_BUNDLED_LIBJANSSON=0 \
736 - NV_VERBOSE=1 DO_STRIP= OUTPUTDIR=out
737 - }
738 -
739 - tc-export AR CC LD OBJCOPY
740 -
741 - # may no longer be relevant but kept as a safety
742 - export DISTCC_DISABLE=1 CCACHE_DISABLE=1
743 -
744 - use driver && linux-mod_src_compile
745 -
746 - nvidia-drivers_make modprobe
747 - nvidia-drivers_make persistenced
748 - use X && nvidia-drivers_make xconfig
749 -
750 - if use tools; then
751 - nvidia-drivers_make settings
752 - elif use static-libs; then
753 - nvidia-drivers_make settings/src out/libXNVCtrl.a
754 - fi
755 -}
756 -
757 -src_install() {
758 - nvidia-drivers_make_install() {
759 - emake -C nvidia-${1} install \
760 - DESTDIR="${D}" \
761 - PREFIX="${EPREFIX}/usr" \
762 - LIBDIR="${ED}/usr/$(get_libdir)" \
763 - NV_USE_BUNDLED_LIBJANSSON=0 \
764 - NV_VERBOSE=1 DO_STRIP= MANPAGE_GZIP= OUTPUTDIR=out
765 - }
766 -
767 - nvidia-drivers_libs_install() {
768 - local libs=(
769 - EGL_nvidia
770 - GLESv1_CM_nvidia
771 - GLESv2_nvidia
772 - cuda
773 - nvcuvid
774 - nvidia-allocator
775 - nvidia-eglcore
776 - nvidia-encode
777 - nvidia-glcore
778 - nvidia-glsi
779 - nvidia-glvkspirv
780 - nvidia-ml
781 - nvidia-opencl
782 - nvidia-opticalflow
783 - nvidia-ptxjitcompiler
784 - nvidia-tls
785 - $(usex X '
786 - GLX_nvidia
787 - nvidia-fbc
788 - vdpau_nvidia
789 - ' '')
790 - $(usex amd64 nvidia-compiler '')
791 - )
792 -
793 - local libdir=.
794 - if [[ ${ABI} == x86 ]]; then
795 - libdir+=/32
796 - else
797 - libs+=(
798 - libnvidia-nvvm.so.4.0.0
799 - nvidia-cfg
800 - nvidia-ngx
801 - nvidia-rtcore
802 - nvoptix
803 - $(usex wayland '
804 - libnvidia-egl-gbm.so.1.1.0
805 - nvidia-vulkan-producer
806 - ' '')
807 - )
808 - fi
809 -
810 - local lib soname
811 - for lib in "${libs[@]}"; do
812 - [[ ${lib:0:3} != lib ]] && lib=lib${lib}.so.${PV}
813 -
814 - # auto-detect soname and create appropriate symlinks
815 - soname=$(scanelf -qF'%S#F' ${lib}) || die "Scanning ${lib} failed"
816 - if [[ ${soname} && ${soname} != ${lib} ]]; then
817 - ln -s ${lib} ${libdir}/${soname} || die
818 - fi
819 - ln -s ${lib} ${libdir}/${lib%.so*}.so || die
820 -
821 - dolib.so ${libdir}/${lib%.so*}*
822 - done
823 - }
824 -
825 - if use driver; then
826 - linux-mod_src_install
827 -
828 - insinto /etc/modprobe.d
829 - doins "${T}"/nvidia.conf
830 -
831 - insinto /lib/firmware/nvidia/${PV}
832 - doins firmware/gsp.bin
833 -
834 - # used for gpu verification with binpkgs (not kept)
835 - insinto /usr/share/nvidia
836 - doins supported-gpus/supported-gpus.json
837 - fi
838 -
839 - if use X; then
840 - exeinto /usr/$(get_libdir)/xorg/modules/drivers
841 - doexe nvidia_drv.so
842 -
843 - exeinto /usr/$(get_libdir)/xorg/modules/extensions
844 - newexe libglxserver_nvidia.so{.${PV},}
845 -
846 - insinto /usr/share/X11/xorg.conf.d
847 - newins {,50-}nvidia-drm-outputclass.conf
848 -
849 - # vulkan icd uses libGLX_nvidia.so and so requires X
850 - insinto /usr/share/vulkan/icd.d
851 - doins nvidia_icd.json
852 - insinto /usr/share/vulkan/implicit_layer.d
853 - doins nvidia_layers.json
854 - fi
855 -
856 - if use wayland; then
857 - insinto /usr/share/egl/egl_external_platform.d
858 - doins 15_nvidia_gbm.json
859 -
860 - dosym8 -r /usr/$(get_libdir)/{libnvidia-allocator.so.1,gbm/nvidia-drm_gbm.so}
861 - fi
862 -
863 - insinto /usr/share/glvnd/egl_vendor.d
864 - doins 10_nvidia.json
865 -
866 - insinto /etc/OpenCL/vendors
867 - doins nvidia.icd
868 -
869 - insinto /etc/nvidia
870 - newins nvidia-application-profiles{-${PV},}-rc
871 -
872 - # install built helpers
873 - nvidia-drivers_make_install modprobe
874 - # allow video group to load mods and create devs (bug #505092)
875 - fowners :video /usr/bin/nvidia-modprobe
876 - fperms 4710 /usr/bin/nvidia-modprobe
877 -
878 - nvidia-drivers_make_install persistenced
879 - newconfd "${FILESDIR}"/nvidia-persistenced.confd nvidia-persistenced
880 - newinitd "${FILESDIR}"/nvidia-persistenced.initd nvidia-persistenced
881 - systemd_dounit nvidia-persistenced.service
882 -
883 - use X && nvidia-drivers_make_install xconfig
884 -
885 - if use tools; then
886 - nvidia-drivers_make_install settings
887 - doicon nvidia-settings/doc/nvidia-settings.png
888 - domenu nvidia-settings/doc/nvidia-settings.desktop
889 -
890 - insinto /usr/share/nvidia
891 - newins nvidia-application-profiles{-${PV},}-key-documentation
892 -
893 - exeinto /etc/X11/xinit/xinitrc.d
894 - newexe "${FILESDIR}"/95-nvidia-settings-r1 95-nvidia-settings
895 - fi
896 -
897 - if use static-libs; then
898 - dolib.a nvidia-settings/src/out/libXNVCtrl.a
899 -
900 - insinto /usr/include/NVCtrl
901 - doins nvidia-settings/src/libXNVCtrl/NVCtrl{Lib,}.h
902 - fi
903 -
904 - # install prebuilt-only helpers
905 - exeinto /opt/bin
906 -
907 - doexe nvidia-cuda-mps-control
908 - doman nvidia-cuda-mps-control.1
909 - doexe nvidia-cuda-mps-server
910 -
911 - doexe nvidia-debugdump
912 - dobin nvidia-bug-report.sh
913 -
914 - doexe nvidia-ngx-updater
915 -
916 - doexe nvidia-smi
917 - doman nvidia-smi.1
918 -
919 - # install prebuilt-only libraries
920 - multilib_foreach_abi nvidia-drivers_libs_install
921 -
922 - # install dlls for optional use with proton/wine
923 - insinto /usr/$(get_libdir)/nvidia/wine
924 - use amd64 && doins {_,}nvngx.dll
925 -
926 - # install systemd sleep services
927 - exeinto /lib/systemd/system-sleep
928 - doexe systemd/system-sleep/nvidia
929 - dobin systemd/nvidia-sleep.sh
930 - systemd_dounit systemd/system/nvidia-{hibernate,resume,suspend}.service
931 -
932 - # create README.gentoo
933 - local DISABLE_AUTOFORMATTING=yes
934 - local DOC_CONTENTS=\
935 -"Trusted users should be in the 'video' group to use NVIDIA devices.
936 -You can add yourself by using: gpasswd -a my-user video
937 -
938 -See '${EPREFIX}/etc/modprobe.d/nvidia.conf' for modules options.
939 -
940 -For general information on using nvidia-drivers, please see:
941 -https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers"
942 - readme.gentoo_create_doc
943 -
944 - local DOCS=(
945 - README.txt NVIDIA_Changelog supported-gpus/supported-gpus.json
946 - nvidia-settings/doc/{FRAMELOCK,NV-CONTROL-API}.txt
947 - )
948 - local HTML_DOCS=( html/. )
949 - einstalldocs
950 -}
951 -
952 -pkg_preinst() {
953 - has_version "${CATEGORY}/${PN}[abi_x86_32]" && NV_HAD_ABI32=1
954 - has_version "${CATEGORY}/${PN}[wayland]" && NV_HAD_WAYLAND=1
955 -
956 - use driver || return
957 - linux-mod_pkg_preinst
958 -
959 - # set video group id based on live system (bug #491414)
960 - local g=$(getent group video | cut -d: -f3)
961 - [[ ${g} ]] || die "Failed to determine video group id"
962 - sed -i "s/@VIDEOGID@/${g}/" "${ED}"/etc/modprobe.d/nvidia.conf || die
963 -
964 - # try to find driver mismatches using temporary supported-gpus.json
965 - for g in $(grep -l 0x10de /sys/bus/pci/devices/*/vendor 2>/dev/null); do
966 - g=$(grep -io "\"devid\":\"$(<${g%vendor}device)\"[^}]*branch\":\"[0-9]*" \
967 - "${ED}"/usr/share/nvidia/supported-gpus.json 2>/dev/null)
968 - if [[ ${g} ]]; then
969 - g=$((${g##*\"}+1))
970 - if ver_test -ge ${g}; then
971 - NV_LEGACY_MASK=">=${CATEGORY}/${PN}-${g}"
972 - break
973 - fi
974 - fi
975 - done
976 - rm "${ED}"/usr/share/nvidia/supported-gpus.json || die
977 -}
978 -
979 -pkg_postinst() {
980 - use driver && linux-mod_pkg_postinst
981 -
982 - readme.gentoo_print_elog
983 -
984 - if [[ -r /proc/driver/nvidia/version &&
985 - $(grep -o ' [0-9.]* ' /proc/driver/nvidia/version) != " ${PV} " ]]; then
986 - ewarn "Currently loaded NVIDIA modules do not match the newly installed"
987 - ewarn "libraries and will lead to GPU-using application issues."
988 - use driver && ewarn "The easiest way to fix this is usually to reboot."
989 - fi
990 -
991 - if [[ $(</proc/cmdline) == *slub_debug=[!-]* ]]; then
992 - ewarn "Detected that the current kernel command line is using 'slub_debug=',"
993 - ewarn "this may lead to system instability/freezes with this version of"
994 - ewarn "${PN}. Bug: https://bugs.gentoo.org/796329"
995 - fi
996 -
997 - if [[ ${NV_LEGACY_MASK} ]]; then
998 - ewarn
999 - ewarn "***WARNING***"
1000 - ewarn
1001 - ewarn "You are installing a version of nvidia-drivers known not to work"
1002 - ewarn "with a GPU of the current system. If unwanted, add the mask:"
1003 - if [[ -d ${EROOT}/etc/portage/package.mask ]]; then
1004 - ewarn " echo '${NV_LEGACY_MASK}' > ${EROOT}/etc/portage/package.mask/${PN}"
1005 - else
1006 - ewarn " echo '${NV_LEGACY_MASK}' >> ${EROOT}/etc/portage/package.mask"
1007 - fi
1008 - ewarn "...then downgrade to a legacy branch if possible. For details, see:"
1009 - ewarn "https://www.nvidia.com/object/IO_32667.html"
1010 - fi
1011 -
1012 - if use !abi_x86_32 && [[ ${NV_HAD_ABI32} ]]; then
1013 - elog
1014 - elog "USE=abi_x86_32 is disabled, 32bit applications will not be able to"
1015 - elog "use nvidia-drivers for acceleration without it (e.g. commonly used"
1016 - elog "with app-emulation/wine-*). Re-enable if needed."
1017 - fi
1018 -
1019 - if use wayland && use driver && [[ ! ${NV_HAD_WAYLAND} ]]; then
1020 - elog
1021 - elog "With USE=wayland, this version of ${PN} sets nvidia-drm.modeset=1"
1022 - elog "in '${EROOT}/etc/modprobe.d/nvidia.conf'. This feature is considered"
1023 - elog "experimental but is required for EGLStream (used for wayland acceleration"
1024 - elog "in compositors that support it)."
1025 - elog
1026 - elog "If you experience issues, please comment out the option from nvidia.conf."
1027 - elog "Of note, may possibly cause issues with SLI and Reverse PRIME."
1028 - fi
1029 -
1030 - ewarn
1031 - ewarn "This revision of ${PN} is applying a binary patch to prevent heavy"
1032 - ewarn "dbus spamming while using OpenGL. If you experience issues, please try to"
1033 - ewarn "mask =${CATEGORY}/${PN}-${PVR} to use NVIDIA's intended version."
1034 -}
1035
1036 diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-495.46-r10.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-495.46-r10.ebuild
1037 deleted file mode 100644
1038 index b5c5e7ed205f..000000000000
1039 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-495.46-r10.ebuild
1040 +++ /dev/null
1041 @@ -1,462 +0,0 @@
1042 -# Copyright 1999-2022 Gentoo Authors
1043 -# Distributed under the terms of the GNU General Public License v2
1044 -
1045 -EAPI=7
1046 -
1047 -MODULES_OPTIONAL_USE="driver"
1048 -inherit desktop flag-o-matic linux-mod multilib readme.gentoo-r1 \
1049 - systemd toolchain-funcs unpacker
1050 -
1051 -NV_KERNEL_MAX="5.15"
1052 -
1053 -DESCRIPTION="NVIDIA Accelerated Graphics Driver"
1054 -HOMEPAGE="https://www.nvidia.com/download/index.aspx"
1055 -SRC_URI="
1056 - amd64? ( https://us.download.nvidia.com/XFree86/Linux-x86_64/${PV}/NVIDIA-Linux-x86_64-${PV}.run )
1057 - arm64? ( https://us.download.nvidia.com/XFree86/aarch64/${PV}/NVIDIA-Linux-aarch64-${PV}.run )
1058 - $(printf "https://github.com/NVIDIA/%s/archive/refs/tags/${PV}.tar.gz -> %s-${PV}.tar.gz " \
1059 - nvidia-{installer,modprobe,persistenced,settings,xconfig}{,})"
1060 -# nvidia-installer is unused but here for GPL-2's "distribute sources"
1061 -S="${WORKDIR}"
1062 -
1063 -LICENSE="NVIDIA-r2 BSD BSD-2 GPL-2 MIT ZLIB curl openssl"
1064 -SLOT="0/${PV%%.*}"
1065 -KEYWORDS="-* ~amd64"
1066 -IUSE="+X abi_x86_32 abi_x86_64 +driver persistenced static-libs +tools wayland"
1067 -RESTRICT="bindist"
1068 -
1069 -COMMON_DEPEND="
1070 - acct-group/video
1071 - sys-libs/glibc
1072 - persistenced? (
1073 - acct-user/nvpd
1074 - net-libs/libtirpc:=
1075 - )
1076 - tools? (
1077 - dev-libs/atk
1078 - dev-libs/glib:2
1079 - dev-libs/jansson:=
1080 - media-libs/harfbuzz:=
1081 - x11-libs/cairo
1082 - x11-libs/gdk-pixbuf:2
1083 - x11-libs/gtk+:3
1084 - x11-libs/libX11
1085 - x11-libs/libXext
1086 - x11-libs/libXxf86vm
1087 - x11-libs/pango
1088 - )"
1089 -RDEPEND="
1090 - ${COMMON_DEPEND}
1091 - X? (
1092 - media-libs/libglvnd[X,abi_x86_32(-)?]
1093 - x11-libs/libX11[abi_x86_32(-)?]
1094 - x11-libs/libXext[abi_x86_32(-)?]
1095 - )
1096 - wayland? (
1097 - >=gui-libs/egl-wayland-1.1.7-r1
1098 - media-libs/libglvnd
1099 - >=media-libs/mesa-21.2[gbm(+)]
1100 - x11-libs/libdrm
1101 - )"
1102 -DEPEND="
1103 - ${COMMON_DEPEND}
1104 - static-libs? (
1105 - x11-libs/libX11
1106 - x11-libs/libXext
1107 - )
1108 - tools? (
1109 - media-libs/libglvnd
1110 - sys-apps/dbus
1111 - x11-base/xorg-proto
1112 - x11-libs/libXrandr
1113 - x11-libs/libXv
1114 - x11-libs/libvdpau
1115 - )"
1116 -BDEPEND="
1117 - sys-devel/m4
1118 - virtual/pkgconfig"
1119 -
1120 -QA_PREBUILT="lib/firmware/* opt/bin/* usr/lib*"
1121 -
1122 -PATCHES=(
1123 - "${FILESDIR}"/nvidia-modprobe-390.141-uvm-perms.patch
1124 - "${FILESDIR}"/nvidia-settings-390.144-desktop.patch
1125 - "${FILESDIR}"/nvidia-settings-390.144-no-gtk2.patch
1126 - "${FILESDIR}"/nvidia-settings-390.144-raw-ldflags.patch
1127 -)
1128 -
1129 -pkg_setup() {
1130 - use driver || return
1131 -
1132 - local CONFIG_CHECK="
1133 - PROC_FS
1134 - ~DRM_KMS_HELPER
1135 - ~SYSVIPC
1136 - ~!LOCKDEP
1137 - ~!SLUB_DEBUG_ON
1138 - !DEBUG_MUTEXES"
1139 - local ERROR_DRM_KMS_HELPER="CONFIG_DRM_KMS_HELPER: is not set but needed for Xorg auto-detection
1140 - of drivers (no custom config), and for wayland / nvidia-drm.modeset=1.
1141 - Cannot be directly selected in the kernel's menuconfig, and may need
1142 - selection of a DRM device even if unused, e.g. CONFIG_DRM_AMDGPU=m or
1143 - DRM_I915=y, DRM_NOUVEAU=m also acceptable if a module and not built-in."
1144 -
1145 - use amd64 && kernel_is -ge 5 8 && CONFIG_CHECK+=" X86_PAT" #817764
1146 -
1147 - MODULE_NAMES="
1148 - nvidia(video:kernel)
1149 - nvidia-drm(video:kernel)
1150 - nvidia-modeset(video:kernel)
1151 - nvidia-peermem(video:kernel)
1152 - nvidia-uvm(video:kernel)"
1153 -
1154 - linux-mod_pkg_setup
1155 -
1156 - [[ ${MERGE_TYPE} == binary ]] && return
1157 -
1158 - BUILD_PARAMS='NV_VERBOSE=1 IGNORE_CC_MISMATCH=yes SYSSRC="${KV_DIR}" SYSOUT="${KV_OUT_DIR}"'
1159 - BUILD_TARGETS="modules"
1160 -
1161 - if linux_chkconfig_present CC_IS_CLANG; then
1162 - ewarn "Warning: building ${PN} with a clang-built kernel is experimental"
1163 -
1164 - BUILD_PARAMS+=' CC=${CHOST}-clang'
1165 - if linux_chkconfig_present LD_IS_LLD; then
1166 - BUILD_PARAMS+=' LD=ld.lld'
1167 - if linux_chkconfig_present LTO_CLANG_THIN; then
1168 - # kernel enables cache by default leading to sandbox violations
1169 - BUILD_PARAMS+=' ldflags-y=--thinlto-cache-dir= LDFLAGS_MODULE=--thinlto-cache-dir='
1170 - fi
1171 - fi
1172 - fi
1173 -
1174 - if kernel_is -gt ${NV_KERNEL_MAX/./ }; then
1175 - ewarn "Kernel ${KV_MAJOR}.${KV_MINOR} is either known to break this version of ${PN}"
1176 - ewarn "or was not tested with it. It is recommended to use one of:"
1177 - ewarn " <=sys-kernel/gentoo-kernel-${NV_KERNEL_MAX}.x"
1178 - ewarn " <=sys-kernel/gentoo-sources-${NV_KERNEL_MAX}.x"
1179 - ewarn "You are free to try or use /etc/portage/patches, but support will"
1180 - ewarn "not be given and issues wait until NVIDIA releases a fixed version."
1181 - ewarn
1182 - ewarn "Do _not_ file a bug report if run into issues."
1183 - ewarn
1184 - fi
1185 -}
1186 -
1187 -src_prepare() {
1188 - # make patches usable across versions
1189 - rm nvidia-modprobe && mv nvidia-modprobe{-${PV},} || die
1190 - rm nvidia-persistenced && mv nvidia-persistenced{-${PV},} || die
1191 - rm nvidia-settings && mv nvidia-settings{-${PV},} || die
1192 - rm nvidia-xconfig && mv nvidia-xconfig{-${PV},} || die
1193 -
1194 - default
1195 -
1196 - # prevent detection of incomplete kernel DRM support (bug #603818)
1197 - sed 's/defined(CONFIG_DRM/defined(CONFIG_DRM_KMS_HELPER/g' \
1198 - -i kernel/conftest.sh || die
1199 -
1200 - sed 's/__USER__/nvpd/' \
1201 - nvidia-persistenced/init/systemd/nvidia-persistenced.service.template \
1202 - > "${T}"/nvidia-persistenced.service || die
1203 -
1204 - # enable nvidia-drm.modeset=1 by default with USE=wayland
1205 - cp "${FILESDIR}"/nvidia-470.conf "${T}"/nvidia.conf || die
1206 - use !wayland || sed -i '/^#.*modeset=1$/s/^#//' "${T}"/nvidia.conf || die
1207 -
1208 - # temporary workaround for dbus powerd spam in 495 series
1209 - # (jz -> jmp after nvidia.powerd.server, need RESTRICT=bindist)
1210 - # https://forums.developer.nvidia.com/t/bug-nvidia-v495-29-05-driver-spamming-dbus-enabled-applications-with-invalid-messages/192892/14
1211 - if use amd64; then
1212 - sed 's/\x0f\x84\[\x01\x00\x00\x4c\x8d/\xe9\x5c\x01\x00\x00\x00\x4c\x8d/' \
1213 - -i libnvidia-glcore.so.495.46 || die
1214 - sed 's/\x0f\x84\x65\x01\x00\x00\x83\xec\x08\x89/\xe9\x66\x01\x00\x00\x00\x83\xec\x08\x89/' \
1215 - -i 32/libnvidia-glcore.so.495.46 || die
1216 - fi
1217 -}
1218 -
1219 -src_compile() {
1220 - tc-export AR CC LD OBJCOPY
1221 -
1222 - NV_ARGS=(
1223 - PREFIX="${EPREFIX}"/usr
1224 - HOST_CC="$(tc-getBUILD_CC)"
1225 - HOST_LD="$(tc-getBUILD_LD)"
1226 - NV_USE_BUNDLED_LIBJANSSON=0
1227 - NV_VERBOSE=1 DO_STRIP= MANPAGE_GZIP= OUTPUTDIR=out
1228 - )
1229 -
1230 - use driver && linux-mod_src_compile
1231 -
1232 - emake "${NV_ARGS[@]}" -C nvidia-modprobe
1233 - use persistenced && emake "${NV_ARGS[@]}" -C nvidia-persistenced
1234 - use X && emake "${NV_ARGS[@]}" -C nvidia-xconfig
1235 -
1236 - if use tools; then
1237 - # cflags: avoid noisy logs, only use here and set first to let override
1238 - # ldflags: abi currently needed if LD=ld.lld
1239 - CFLAGS="-Wno-deprecated-declarations ${CFLAGS}" \
1240 - RAW_LDFLAGS="$(get_abi_LDFLAGS) $(raw-ldflags)" \
1241 - emake "${NV_ARGS[@]}" -C nvidia-settings
1242 - elif use static-libs; then
1243 - emake "${NV_ARGS[@]}" -C nvidia-settings/src out/libXNVCtrl.a
1244 - fi
1245 -}
1246 -
1247 -src_install() {
1248 - local libdir=$(get_libdir) libdir32=$(ABI=x86 get_libdir)
1249 -
1250 - NV_ARGS+=( DESTDIR="${D}" LIBDIR="${ED}"/usr/${libdir} )
1251 -
1252 - local -A paths=(
1253 - [APPLICATION_PROFILE]=/usr/share/nvidia
1254 - [CUDA_ICD]=/etc/OpenCL/vendors
1255 - [EGL_EXTERNAL_PLATFORM_JSON]=/usr/share/egl/egl_external_platform.d
1256 - [FIRMWARE]=/lib/firmware/nvidia/${PV}
1257 - [GBM_BACKEND_LIB_SYMLINK]=/usr/${libdir}/gbm
1258 - [GLVND_EGL_ICD_JSON]=/usr/share/glvnd/egl_vendor.d
1259 - [VULKAN_ICD_JSON]=/usr/share/vulkan
1260 - [WINE_LIB]=/usr/${libdir}/nvidia/wine
1261 - [XORG_OUTPUTCLASS_CONFIG]=/usr/share/X11/xorg.conf.d
1262 -
1263 - [GLX_MODULE_SHARED_LIB]=/usr/${libdir}/xorg/modules/extensions
1264 - [GLX_MODULE_SYMLINK]=/usr/${libdir}/xorg/modules
1265 - [XMODULE_SHARED_LIB]=/usr/${libdir}/xorg/modules
1266 - )
1267 -
1268 - local skip_files=(
1269 - $(usex X '' '
1270 - libGLX_nvidia libglxserver_nvidia
1271 - nvidia_icd.json nvidia_layers.json')
1272 - $(usex wayland '' '
1273 - libnvidia-egl-gbm 15_nvidia_gbm
1274 - libnvidia-vulkan-producer')
1275 - libGLX_indirect # non-glvnd unused fallback
1276 - libnvidia-gtk nvidia-{settings,xconfig} # built from source
1277 - libnvidia-egl-wayland 10_nvidia_wayland # gui-libs/egl-wayland
1278 - )
1279 - local skip_modules=(
1280 - $(usex X '' 'nvfbc vdpau xdriver')
1281 - $(usex driver '' 'gsp')
1282 - installer nvpd # handled separately / built from source
1283 - )
1284 - local skip_types=(
1285 - GLVND_LIB GLVND_SYMLINK EGL_CLIENT.\* GLX_CLIENT.\* # media-libs/libglvnd
1286 - OPENCL_WRAPPER.\* # virtual/opencl
1287 - DOCUMENTATION DOT_DESKTOP .\*_SRC DKMS_CONF # handled separately / unused
1288 - )
1289 -
1290 - local DOCS=(
1291 - README.txt NVIDIA_Changelog supported-gpus/supported-gpus.json
1292 - nvidia-settings/doc/{FRAMELOCK,NV-CONTROL-API}.txt
1293 - )
1294 - local HTML_DOCS=( html/. )
1295 - einstalldocs
1296 -
1297 - local DISABLE_AUTOFORMATTING=yes
1298 - local DOC_CONTENTS="\
1299 -Trusted users should be in the 'video' group to use NVIDIA devices.
1300 -You can add yourself by using: gpasswd -a my-user video\
1301 -$(usex driver "
1302 -
1303 -Like all out-of-tree kernel modules, it is necessary to rebuild
1304 -${PN} after upgrading or rebuilding the Linux kernel
1305 -by for example running \`emerge @module-rebuild\`. Alternatively,
1306 -if using a distribution kernel (sys-kernel/gentoo-kernel{,-bin}),
1307 -this can be automated by setting USE=dist-kernel globally.
1308 -
1309 -Loaded kernel modules also must not mismatch with the installed
1310 -${PN} version (excluding -r revision), meaning should
1311 -ensure \`eselect kernel list\` points to the kernel that will be
1312 -booted before building and preferably reboot after upgrading
1313 -${PN} (the ebuild will emit a warning if mismatching).
1314 -
1315 -See '${EPREFIX}/etc/modprobe.d/nvidia.conf' for modules options." '')\
1316 -$(use amd64 && usex abi_x86_32 '' "
1317 -
1318 -Note that without USE=abi_x86_32 on ${PN}, 32bit applications
1319 -(typically using wine / steam) will not be able to use GPU acceleration.")
1320 -
1321 -For general information on using ${PN}, please see:
1322 -https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers"
1323 - readme.gentoo_create_doc
1324 -
1325 - if use driver; then
1326 - linux-mod_src_install
1327 -
1328 - insinto /etc/modprobe.d
1329 - doins "${T}"/nvidia.conf
1330 -
1331 - # used for gpu verification with binpkgs (not kept, see pkg_preinst)
1332 - insinto /usr/share/nvidia
1333 - doins supported-gpus/supported-gpus.json
1334 - fi
1335 -
1336 - emake "${NV_ARGS[@]}" -C nvidia-modprobe install
1337 - fowners :video /usr/bin/nvidia-modprobe #505092
1338 - fperms 4710 /usr/bin/nvidia-modprobe
1339 -
1340 - if use persistenced; then
1341 - emake "${NV_ARGS[@]}" -C nvidia-persistenced install
1342 - newconfd "${FILESDIR}"/nvidia-persistenced.confd nvidia-persistenced
1343 - newinitd "${FILESDIR}"/nvidia-persistenced.initd nvidia-persistenced
1344 - systemd_dounit "${T}"/nvidia-persistenced.service
1345 - fi
1346 -
1347 - if use tools; then
1348 - emake "${NV_ARGS[@]}" -C nvidia-settings install
1349 -
1350 - doicon nvidia-settings/doc/nvidia-settings.png
1351 - domenu nvidia-settings/doc/nvidia-settings.desktop
1352 -
1353 - exeinto /etc/X11/xinit/xinitrc.d
1354 - newexe "${FILESDIR}"/95-nvidia-settings-r1 95-nvidia-settings
1355 - fi
1356 -
1357 - if use static-libs; then
1358 - dolib.a nvidia-settings/src/out/libXNVCtrl.a
1359 -
1360 - insinto /usr/include/NVCtrl
1361 - doins nvidia-settings/src/libXNVCtrl/NVCtrl{Lib,}.h
1362 - fi
1363 -
1364 - use X && emake "${NV_ARGS[@]}" -C nvidia-xconfig install
1365 -
1366 - # mimic nvidia-installer by reading .manifest to install files
1367 - # 0:file 1:perms 2:type 3+:subtype/arguments -:module
1368 - local m into
1369 - while IFS=' ' read -ra m; do
1370 - ! [[ ${#m[@]} -ge 2 && ${m[-1]} =~ MODULE: ]] ||
1371 - eval '[[ " ${m[0]##*/}" =~ ^(\ '${skip_files[*]/%/.*|\\}' )$ ]]' ||
1372 - eval '[[ " ${m[2]}" =~ ^(\ '${skip_types[*]/%/|\\}' )$ ]]' ||
1373 - has ${m[-1]#MODULE:} "${skip_modules[@]}" && continue
1374 -
1375 - case ${m[2]} in
1376 - MANPAGE)
1377 - gzip -dc ${m[0]} | newman - ${m[0]%.gz}; assert
1378 - continue
1379 - ;;
1380 - GBM_BACKEND_LIB_SYMLINK) m[4]=../${m[4]};; # missing ../
1381 - VDPAU_SYMLINK) m[4]=vdpau/; m[5]=${m[5]#vdpau/};; # .so to vdpau/
1382 - esac
1383 -
1384 - if [[ -v paths[${m[2]}] ]]; then
1385 - into=${paths[${m[2]}]}
1386 - elif [[ ${m[2]} =~ _BINARY$ ]]; then
1387 - into=/opt/bin
1388 - elif [[ ${m[3]} == COMPAT32 ]]; then
1389 - use abi_x86_32 || continue
1390 - into=/usr/${libdir32}
1391 - elif [[ ${m[2]} =~ _LIB$|_SYMLINK$ ]]; then
1392 - into=/usr/${libdir}
1393 - else
1394 - die "No known installation path for ${m[0]}"
1395 - fi
1396 - [[ ${m[3]: -2} == ?/ ]] && into+=/${m[3]%/}
1397 - [[ ${m[4]: -2} == ?/ ]] && into+=/${m[4]%/}
1398 -
1399 - if [[ ${m[2]} =~ _SYMLINK$ ]]; then
1400 - [[ ${m[4]: -1} == / ]] && m[4]=${m[5]}
1401 - dosym ${m[4]} ${into}/${m[0]}
1402 - continue
1403 - fi
1404 - [[ ${m[0]} =~ ^libnvidia-ngx.so|^libnvidia-egl-gbm.so ]] &&
1405 - dosym ${m[0]} ${into}/${m[0]%.so*}.so.1 # soname not in .manifest
1406 -
1407 - printf -v m[1] %o $((m[1] | 0200)) # 444->644
1408 - insopts -m${m[1]}
1409 - insinto ${into}
1410 - doins ${m[0]}
1411 - done < .manifest || die
1412 -
1413 - # MODULE:installer non-skipped extras
1414 - exeinto /lib/systemd/system-sleep
1415 - doexe systemd/system-sleep/nvidia
1416 - dobin systemd/nvidia-sleep.sh
1417 - systemd_dounit systemd/system/nvidia-{hibernate,resume,suspend}.service
1418 -
1419 - dobin nvidia-bug-report.sh
1420 -}
1421 -
1422 -pkg_preinst() {
1423 - has_version "${CATEGORY}/${PN}[abi_x86_32]" && NV_HAD_ABI32=
1424 - has_version "${CATEGORY}/${PN}[wayland]" && NV_HAD_WAYLAND=
1425 -
1426 - use driver || return
1427 - linux-mod_pkg_preinst
1428 -
1429 - # set video group id based on live system (bug #491414)
1430 - local g=$(getent group video | cut -d: -f3)
1431 - [[ ${g} ]] || die "Failed to determine video group id"
1432 - sed -i "s/@VIDEOGID@/${g}/" "${ED}"/etc/modprobe.d/nvidia.conf || die
1433 -
1434 - # try to find driver mismatches using temporary supported-gpus.json
1435 - for g in $(grep -l 0x10de /sys/bus/pci/devices/*/vendor 2>/dev/null); do
1436 - g=$(grep -io "\"devid\":\"$(<${g%vendor}device)\"[^}]*branch\":\"[0-9]*" \
1437 - "${ED}"/usr/share/nvidia/supported-gpus.json 2>/dev/null)
1438 - if [[ ${g} ]]; then
1439 - g=$((${g##*\"}+1))
1440 - if ver_test -ge ${g}; then
1441 - NV_LEGACY_MASK=">=${CATEGORY}/${PN}-${g}"
1442 - break
1443 - fi
1444 - fi
1445 - done
1446 - rm "${ED}"/usr/share/nvidia/supported-gpus.json || die
1447 -}
1448 -
1449 -pkg_postinst() {
1450 - use driver && linux-mod_pkg_postinst
1451 -
1452 - readme.gentoo_print_elog
1453 -
1454 - if [[ -r /proc/driver/nvidia/version &&
1455 - $(</proc/driver/nvidia/version) != *" ${PV} "* ]]; then
1456 - ewarn "Currently loaded NVIDIA modules do not match the newly installed"
1457 - ewarn "libraries and may prevent launching GPU-accelerated applications."
1458 - use driver && ewarn "The easiest way to fix this is usually to reboot."
1459 - fi
1460 -
1461 - if [[ $(</proc/cmdline) == *slub_debug=[!-]* ]]; then
1462 - ewarn "Detected that the current kernel command line is using 'slub_debug=',"
1463 - ewarn "this may lead to system instability/freezes with this version of"
1464 - ewarn "${PN}. Bug: https://bugs.gentoo.org/796329"
1465 - fi
1466 -
1467 - if [[ -v NV_LEGACY_MASK ]]; then
1468 - ewarn
1469 - ewarn "***WARNING***"
1470 - ewarn
1471 - ewarn "You are installing a version of ${PN} known not to work"
1472 - ewarn "with a GPU of the current system. If unwanted, add the mask:"
1473 - if [[ -d ${EROOT}/etc/portage/package.mask ]]; then
1474 - ewarn " echo '${NV_LEGACY_MASK}' > ${EROOT}/etc/portage/package.mask/${PN}"
1475 - else
1476 - ewarn " echo '${NV_LEGACY_MASK}' >> ${EROOT}/etc/portage/package.mask"
1477 - fi
1478 - ewarn "...then downgrade to a legacy branch if possible. For details, see:"
1479 - ewarn "https://www.nvidia.com/object/IO_32667.html"
1480 - fi
1481 -
1482 - if use !abi_x86_32 && [[ -v NV_HAD_ABI32 ]]; then
1483 - elog
1484 - elog "USE=abi_x86_32 is disabled, 32bit applications will not be able to"
1485 - elog "use nvidia-drivers for acceleration without it (e.g. commonly used"
1486 - elog "with app-emulation/wine-* or steam). Re-enable if needed."
1487 - fi
1488 -
1489 - if use wayland && use driver && [[ ! -v NV_HAD_WAYLAND ]]; then
1490 - elog
1491 - elog "With USE=wayland, this version of ${PN} sets nvidia-drm.modeset=1"
1492 - elog "in '${EROOT}/etc/modprobe.d/nvidia.conf'. This feature is considered"
1493 - elog "experimental but is required for wayland."
1494 - elog
1495 - elog "If you experience issues, either disable wayland or edit nvidia.conf."
1496 - elog "Of note, may possibly cause issues with SLI and Reverse PRIME."
1497 - fi
1498 -
1499 - ewarn
1500 - ewarn "This revision of ${PN} is applying a binary patch to prevent heavy"
1501 - ewarn "dbus spamming while using OpenGL. If you experience issues, please try to"
1502 - ewarn "mask =${CATEGORY}/${PN}-${PVR} to use NVIDIA's intended version."
1503 -}