From 5b9c8efa2666004ee323b49de14cd195fea8b44b Mon Sep 17 00:00:00 2001 From: Joonbum Ko Date: Mon, 26 Jul 2021 15:58:36 +0900 Subject: Add a symbolic link of libvulkan_broadcom.so to /usr/lib Change-Id: I7728385f6f00dad1e0f262e057a022175672968c Signed-off-by: Joonbum Ko --- packaging/mesa.spec | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/packaging/mesa.spec b/packaging/mesa.spec index e082d9f9202..2f2140da063 100644 --- a/packaging/mesa.spec +++ b/packaging/mesa.spec @@ -37,6 +37,7 @@ ExclusiveArch: %endif %define USE_VULKAN 0 +%define VULKAN_DRIVER broadcom %description Mesa is a 3-D graphics library with an API which is very similar to @@ -79,7 +80,7 @@ meson --prefix %{_prefix} build/ \ -Dvulkan-drivers="" %else %if "%{USE_VULKAN}" == "1" - -Dvulkan-drivers="broadcom" \ + -Dvulkan-drivers="%{VULKAN_DRIVER}" \ %endif -Dgallium-drivers="vc4,v3d,kmsro,swrast" %endif @@ -88,18 +89,18 @@ ninja -C build/ %install DESTDIR=%{buildroot} ninja -C build/ install mkdir -p %{buildroot}%{_hal_libdir}/driver -mkdir -p %{buildroot}%{_hal_libdir}/dri cp -a %{buildroot}%{_libdir}/libEGL* %{buildroot}%{_hal_libdir}/driver/ cp -a %{buildroot}%{_libdir}/libGLES* %{buildroot}%{_hal_libdir}/driver/ -cp -a %{buildroot}%{_libdir}/dri/* %{buildroot}%{_hal_libdir}/dri/ cp -a %{buildroot}%{_libdir}/libglapi* %{buildroot}%{_hal_libdir}/ +mv %{buildroot}%{_libdir}/dri %{buildroot}%{_hal_libdir}/dri %if "%{USE_VULKAN}" == "1" -cp -a %{buildroot}%{_libdir}/libvulkan* %{buildroot}%{_hal_libdir}/ +mv %{buildroot}%{_libdir}/libvulkan_%{VULKAN_DRIVER}.so %{buildroot}%{_hal_libdir}/ +ln -sf %{_hal_libdir}/libvulkan_%{VULKAN_DRIVER}.so %{buildroot}%{_libdir}/libvulkan_%{VULKAN_DRIVER}.so %endif ln -sf %{_hal_libdir}/dri %{buildroot}%{_libdir}/dri -ln -sf %{_hal_libdri}/libglapi.so.0.0.0 %{buildroot}%{_libdir}/libglapi.0.0.0 +ln -sf %{_hal_libdir}/libglapi.so.0.0.0 %{buildroot}%{_libdir}/libglapi.0.0.0 mkdir -p %{buildroot}%{_udevrulesdir} cp 99-GPU-Acceleration.rules %{buildroot}%{_udevrulesdir} @@ -119,7 +120,8 @@ cp 99-GPU-Acceleration.rules %{buildroot}%{_udevrulesdir} %{_libdir}/dri %{_libdir}/libgbm* %if "%{USE_VULKAN}" == "1" -%{_hal_libdir}/libvulkan* +%{_hal_libdir}/libvulkan_%{VULKAN_DRIVER}.so +%{_libdir}/libvulkan_%{VULKAN_DRIVER}.so /usr/share/vulkan/icd.d/* %endif %{_udevrulesdir}/99-GPU-Acceleration.rules -- cgit v1.2.3