[packages/libdrm] - added patch to fix ix86 detection

qboosh qboosh at pld-linux.org
Fri Oct 20 18:30:17 CEST 2023


commit 09917a063098c3624e984a9d62f3acc88a2b15c4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Oct 20 18:32:21 2023 +0200

    - added patch to fix ix86 detection

 libdrm-intel.patch | 11 +++++++++++
 libdrm.spec        |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/libdrm.spec b/libdrm.spec
index c5566dc..9cd5c1f 100644
--- a/libdrm.spec
+++ b/libdrm.spec
@@ -12,6 +12,7 @@ License:	MIT
 Group:		Libraries
 Source0:	https://dri.freedesktop.org/libdrm/%{name}-%{version}.tar.xz
 # Source0-md5:	69b17be6250b2c863411e0c5f6aefd6a
+Patch0:		%{name}-intel.patch
 URL:		https://dri.freedesktop.org/
 BuildRequires:	docbook-dtd42-xml
 BuildRequires:	docbook-style-xsl-nons
@@ -69,6 +70,7 @@ Statyczna biblioteka libdrm.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %if %{with static_libs}
 %{__sed} -i -e '/^lib.* = shared_library/ s/shared_library/library/' \
diff --git a/libdrm-intel.patch b/libdrm-intel.patch
new file mode 100644
index 0000000..415d532
--- /dev/null
+++ b/libdrm-intel.patch
@@ -0,0 +1,11 @@
+--- libdrm-2.4.117/meson.build.orig	2023-10-20 11:20:00.675934935 +0200
++++ libdrm-2.4.117/meson.build	2023-10-20 18:29:31.362989811 +0200
+@@ -87,7 +87,7 @@ dep_pciaccess = dependency('pciaccess',
+ with_intel = get_option('intel') \
+   .require(with_atomics, error_message : 'libdrm_intel requires atomics') \
+   .require(dep_pciaccess.found(), error_message : 'libdrm_intel requires libpciaccess') \
+-  .disable_auto_if(not host_machine.system().startswith('x86')) \
++  .disable_auto_if(not host_machine.cpu_family().startswith('x86')) \
+   .allowed()
+ summary('Intel', with_intel)
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libdrm.git/commitdiff/09917a063098c3624e984a9d62f3acc88a2b15c4



More information about the pld-cvs-commit mailing list