[packages/x265] - add missing include

qboosh qboosh at pld-linux.org
Sun Jun 21 20:20:23 CEST 2026


commit 6e641fb45ed94b9b6872f361abdfdb77f47c0413
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jun 21 20:20:49 2026 +0200

    - add missing include

 x265-includes.patch | 10 ++++++++++
 x265.spec           |  6 ++++--
 2 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/x265.spec b/x265.spec
index 31a2f9f..e5310ac 100644
--- a/x265.spec
+++ b/x265.spec
@@ -26,11 +26,12 @@ Patch1:		%{name}-x32.patch
 Patch2:		%{name}-arm_flags.patch
 Patch3:		%{name}-vmaf.patch
 Patch4:		%{name}-x86.patch
+Patch5:		%{name}-includes.patch
 URL:		https://www.x265.org/
 BuildRequires:	cmake >= 2.8.11
 BuildRequires:	libstdc++-devel >= 6:4.8
 BuildRequires:	numactl-devel >= 2
-BuildRequires:	rpmbuild(macros) >= 2.007
+BuildRequires:	rpmbuild(macros) >= 2.047
 %if %{with asm}
 %ifarch %{ix86} %{x8664} x32
 BuildRequires:	nasm >= 2.13.0
@@ -97,6 +98,7 @@ Statyczna biblioteka x265.
 %endif
 %patch -P3 -p1
 %patch -P4 -p1
+%patch -P5 -p1
 
 %build
 install -d source/build
@@ -106,7 +108,7 @@ export CFLAGS="%{rpmcflags} -DHAVE_NEON"
 export CXXFLAGS="%{rpmcxxflags} -DHAVE_NEON"
 %endif
 %cmake .. \
-	-DENABLE_ASSEMBLY=%{!?with_asm:OFF}%{?with_asm:ON} \
+	-DENABLE_ASSEMBLY=%{__ON_OFF asm} \
 	-DENABLE_HDR10_PLUS=ON \
 	%{?with_vmaf:-DENABLE_LIBVMAF=ON} \
 	-DENABLE_PIC=ON \
diff --git a/x265-includes.patch b/x265-includes.patch
new file mode 100644
index 0000000..0b77869
--- /dev/null
+++ b/x265-includes.patch
@@ -0,0 +1,10 @@
+--- x265_4.2/source/dynamicHDR10/json11/json11.cpp.orig	2026-04-19 08:29:17.000000000 +0200
++++ x265_4.2/source/dynamicHDR10/json11/json11.cpp	2026-06-21 20:14:42.943237341 +0200
+@@ -22,6 +22,7 @@
+ #include "json11.h"
+ #include <cassert>
+ #include <cmath>
++#include <cstdint>
+ #include <cstdlib>
+ #include <cstdio>
+ #include <limits>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/x265.git/commitdiff/6e641fb45ed94b9b6872f361abdfdb77f47c0413



More information about the pld-cvs-commit mailing list