commit: f9a5b8125cc689047173ab1015e57b50dfb07e56 Author: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> AuthorDate: Tue Jan 2 08:46:57 2024 +0000 Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> CommitDate: Tue Jan 2 08:49:32 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9a5b812
app-misc/fastfetch: Fix compilation with direct X headers Closes: https://bugs.gentoo.org/921175 Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org> app-misc/fastfetch/fastfetch-2.5.0.ebuild | 1 + .../fastfetch/files/fastfetch-2.5.0-nvidia2.patch | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/app-misc/fastfetch/fastfetch-2.5.0.ebuild b/app-misc/fastfetch/fastfetch-2.5.0.ebuild index 8facae65cd7b..e128b570ad48 100644 --- a/app-misc/fastfetch/fastfetch-2.5.0.ebuild +++ b/app-misc/fastfetch/fastfetch-2.5.0.ebuild @@ -64,6 +64,7 @@ REQUIRED_USE=" PATCHES=( "${FILESDIR}"/${P}-nvidia.patch + "${FILESDIR}"/${P}-nvidia2.patch ) src_configure() { diff --git a/app-misc/fastfetch/files/fastfetch-2.5.0-nvidia2.patch b/app-misc/fastfetch/files/fastfetch-2.5.0-nvidia2.patch new file mode 100644 index 000000000000..5f256a61a34d --- /dev/null +++ b/app-misc/fastfetch/files/fastfetch-2.5.0-nvidia2.patch @@ -0,0 +1,20 @@ +https://bugs.gentoo.org/921175 + +--- a/src/detection/gpu/gpu_wsl.cpp ++++ b/src/detection/gpu/gpu_wsl.cpp +@@ -98,6 +98,7 @@ const char* ffGPUDetectByDirectX(FF_MAYBE_UNUSED const FFGPUOptions* options, FF + const char* vendorStr = ffGetGPUVendorString((unsigned) hardwareId.vendorID); + ffStrbufSetStatic(&gpu->vendor, vendorStr); + ++ #ifdef FF_HAVE_NVIDIA_GPU + if (vendorStr == FF_GPU_VENDOR_NAME_NVIDIA && (options->driverSpecific || options->temp)) + { + FFGpuDriverCondition cond = { +@@ -117,6 +118,7 @@ const char* ffGPUDetectByDirectX(FF_MAYBE_UNUSED const FFGPUOptions* options, FF + .frequency = &gpu->frequency, + }, "/usr/lib/wsl/lib/libnvidia-ml.so"); + } ++ #endif + } + } +
