[packages/libvpl] - added types patch, now builds on 32-bit Linux

qboosh qboosh at pld-linux.org
Mon Mar 18 22:13:29 CET 2024


commit 9074cc648c03d390b42c4af15466ff44a88e8b6f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Mar 18 22:09:06 2024 +0100

    - added types patch, now builds on 32-bit Linux

 libvpl-types.patch | 11 +++++++++++
 libvpl.spec        |  3 ++-
 2 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/libvpl.spec b/libvpl.spec
index 42e6ad6..a90722d 100644
--- a/libvpl.spec
+++ b/libvpl.spec
@@ -9,6 +9,7 @@ Group:		Libraries
 #Source0Download: https://github.com/intel/libvpl/releases
 Source0:	https://github.com/intel/libvpl/archive/v%{version}/libvpl-%{version}.tar.gz
 # Source0-md5:	09d6347097590abd3e952619f5ed6316
+Patch0:		%{name}-types.patch
 URL:		https://www.intel.com/content/www/us/en/developer/tools/vpl/overview.html
 BuildRequires:	cmake >= 3.13.0
 BuildRequires:	libdrm-devel
@@ -21,7 +22,6 @@ BuildRequires:	wayland-devel
 BuildRequires:	xorg-lib-libpciaccess-devel
 Obsoletes:	oneVPL < 2024
 Obsoletes:	python3-oneVPL < 2023
-ExclusiveArch:	%{x8664}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -64,6 +64,7 @@ Przykładowe programy do biblioteki Intel VPL.
 
 %prep
 %setup -q -n libvpl-%{version}
+%patch0 -p1
 
 %build
 %cmake -B build
diff --git a/libvpl-types.patch b/libvpl-types.patch
new file mode 100644
index 0000000..37f8331
--- /dev/null
+++ b/libvpl-types.patch
@@ -0,0 +1,11 @@
+--- libvpl-2.10.2/tools/legacy/sample_common/src/vaapi_utils.cpp.orig	2024-02-20 22:41:06.000000000 +0100
++++ libvpl-2.10.2/tools/legacy/sample_common/src/vaapi_utils.cpp	2024-03-18 21:55:02.069401544 +0100
+@@ -337,7 +337,7 @@ VAStatus CLibVA::AcquireVASurface(void**
+     }
+ 
+     AcquireCtx* ctx;
+-    unsigned long handle = 0;
++    uintptr_t handle = 0;
+     VAStatus va_res;
+     VASurfaceAttrib attribs[2];
+     VASurfaceAttribExternalBuffers extsrf;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libvpl.git/commitdiff/9074cc648c03d390b42c4af15466ff44a88e8b6f



More information about the pld-cvs-commit mailing list