From 28a441315a58e358291dedebd25eeebe87eba3c5 Mon Sep 17 00:00:00 2001 From: liuxinhao Date: Tue, 13 Dec 2022 10:50:59 +0800 Subject: [PATCH] fix(load error): undefine _hardened_build , partially enable lazybinding to avoid driver loading failure on xorg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 由于amdgpu依赖于其他xorg module,部分启用lazybinding以避免xorg上驱动程序加载失败 (cherry picked from commit c381a506ce02f5db39c3ad5d908dd0765bd55b48) --- xorg-x11-drv-amdgpu.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/xorg-x11-drv-amdgpu.spec b/xorg-x11-drv-amdgpu.spec index ff35ff9..a93006a 100644 --- a/xorg-x11-drv-amdgpu.spec +++ b/xorg-x11-drv-amdgpu.spec @@ -1,9 +1,12 @@ %global moduledir %(pkg-config xorg-server --variable=moduledir ) %global driverdir %{moduledir}/drivers +# Xorg cannot load hardened build +%undefine _hardened_build + Name: xorg-x11-drv-amdgpu Version: 22.0.0 -Release: 1 +Release: 2 Summary: AMD GPU video driver License: MIT @@ -47,5 +50,8 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';' %{_mandir}/man4/amdgpu.4* %changelog +* Tue Dec 13 2022 liuxinhao - 22.0.0-2 +- undefine _hardened_build , partially enable lazybinding to avoid driver loading failure on xorg + * Thu Sep 01 2022 liuxinhao - 22.0.0-1 -- Package init \ No newline at end of file +- Package init