package/x265: bump version to 4.1
PATCH 1/1 package/x265: bump version to 4.1
Release notes:
4.1: https://mailman.videolan.org/pipermail/x265-devel/2024-November/014095.html
4.0: https://mailman.videolan.org/pipermail/x265-devel/2024-September/013940.html
3.6: https://mailman.videolan.org/pipermail/x265-devel/2024-April/013664.html
Rebased patch 0001 and removed patch 0002 due to upstream commit
https://bitbucket.org/multicoreware/x265_git/commits/4bf31dc15fb6d1f93d12ecf21fad5e695f0db5c0
Added patches 0002 & 0003 to fix build with CMake 4.x.
Added patch 0004 and adjusted _CONF_OPTS to fix non-NEON build.
---
Afaics this bump does not introduce new build errors but does not fix a build error already present in version 3.5:
https://autobuild.buildroot.org/results/c27/c270ed8f9f1c643b249f2206d76d1261abfe9a88/
Quote:
/home/autobuild/autobuild/instance-11/output-1/host/lib/gcc/i686-buildroot-linux-musl/13.3.0/../../../../i686-buildroot-linux-musl/bin/ld: read-only segment has dynamic relocation
...ists.txt-do-not-force-compiler-flags.patch | 42 ++++++------- ...-error-with-latest-CMake-4.0-release.patch | 35 +++++++++++ ...s.txt-allow-setting-CPU_HAS_NEON-whe.patch | 40 ------------- ...-Fix-for-CMake-Build-Errors-in-MacOS.patch | 60 +++++++++++++++++++ ...n-undefined-symbols-in-armv6l-armv7l.patch | 28 +++++++++ package/x265/x265.hash | 4 +- package/x265/x265.mk | 6 +- 7 files changed, 146 insertions(+), 69 deletions(-) create mode 100644 package/x265/0002-Fix-CMake-build-error-with-latest-CMake-4.0-release.patch delete mode 100644 package/x265/0002-source-CMakeLists.txt-allow-setting-CPU_HAS_NEON-whe.patch create mode 100644 package/x265/0003-Fix-for-CMake-Build-Errors-in-MacOS.patch create mode 100644 package/x265/0004-Fix-neon-undefined-symbols-in-armv6l-armv7l.patch
package/x265/0001-CMakeLists.txt-do-not-force-compiler-flags.patch +18 -24
@@ -21,43 +21,37 @@ Bernd Kuhls <[email protected]>. Upstream: https://bitbucket.org/multicoreware/x265_git/pull-requests/26 Signed-off-by: Thomas Petazzoni <[email protected]> +[Bernd: rebased for 4.1] +Signed-off-by: Bernd Kuhls <[email protected]> --- - source/CMakeLists.txt | 10 +++------- - source/dynamicHDR10/CMakeLists.txt | 6 +++--- - 2 files changed, 6 insertions(+), 10 deletions(-) + source/CMakeLists.txt | 6 +++--- + source/dynamicHDR10/CMakeLists.txt | 6 +++--- + 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt -index a407271b4..a34bf4d4f 100755 +index c14489ea6..fa331e8af 100755 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt -@@ -239,11 +239,7 @@ if(GCC) - endif() +@@ -270,14 +270,14 @@ if(GCC) endif() if(ARM AND CROSS_COMPILE_ARM) -- if(ARM64) -- set(ARM_ARGS -fPIC) -- else() -- set(ARM_ARGS -march=armv6 -mfloat-abi=soft -mfpu=vfp -marm -fPIC) -- endif() -+ set(ARM_ARGS -fPIC) message(STATUS "cross compile arm") +- set(ARM_ARGS -march=armv6 -mfloat-abi=soft -mfpu=vfp -marm -fPIC) ++ set(ARM_ARGS -fPIC) elseif(ARM) - if(ARM64) -@@ -252,10 +248,10 @@ if(GCC) + find_package(Neon) + if(CPU_HAS_NEON) +- set(ARM_ARGS -mcpu=native -mfloat-abi=hard -mfpu=neon -marm -fPIC) ++ set(ARM_ARGS -mfpu=neon -fPIC) + add_definitions(-DHAVE_NEON) else() - find_package(Neon) - if(CPU_HAS_NEON) -- set(ARM_ARGS -mcpu=native -mfloat-abi=hard -mfpu=neon -marm -fPIC) -+ set(ARM_ARGS -mfpu=neon -fPIC) - add_definitions(-DHAVE_NEON) - else() -- set(ARM_ARGS -mcpu=native -mfloat-abi=hard -mfpu=vfp -marm) -+ set(ARM_ARGS -fPIC) - endif() +- set(ARM_ARGS -mcpu=native -mfloat-abi=hard -mfpu=vfp -marm) ++ set(ARM_ARGS -fPIC) endif() endif() + if(ARM64) diff --git a/source/dynamicHDR10/CMakeLists.txt b/source/dynamicHDR10/CMakeLists.txt -index 22fb79d44..2cea7c48a 100644 +index 4243338c6..62853a06b 100644 --- a/source/dynamicHDR10/CMakeLists.txt +++ b/source/dynamicHDR10/CMakeLists.txt @@ -43,14 +43,14 @@ if(GCC)
package/x265/0002-Fix-CMake-build-error-with-latest-CMake-4.0-release.patch new file +35 -0
@@ -0,0 +1,35 @@ +From b354c009a60bcd6d7fc04014e200a1ee9c45c167 Mon Sep 17 00:00:00 2001 +From: yaswanthsastry <[email protected]> +Date: Mon, 24 Feb 2025 17:07:03 +0530 +Subject: [PATCH] Fix CMake build error with latest CMake 4.0 release + +Upstream: https://bitbucket.org/multicoreware/x265_git/commits/b354c009a60bcd6d7fc04014e200a1ee9c45c167 + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + source/CMakeLists.txt | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt +index 37dbe1a87..4f5b3ed82 100755 +--- a/source/CMakeLists.txt ++++ b/source/CMakeLists.txt +@@ -7,13 +7,13 @@ if(NOT CMAKE_BUILD_TYPE) + endif() + message(STATUS "cmake version ${CMAKE_VERSION}") + if(POLICY CMP0025) +- cmake_policy(SET CMP0025 OLD) # report Apple's Clang as just Clang ++ cmake_policy(SET CMP0025 NEW) # report Apple's Clang as just Clang + endif() + if(POLICY CMP0042) + cmake_policy(SET CMP0042 NEW) # MACOSX_RPATH + endif() + if(POLICY CMP0054) +- cmake_policy(SET CMP0054 OLD) # Only interpret if() arguments as variables or keywords when unquoted ++ cmake_policy(SET CMP0054 NEW) # Only interpret if() arguments as variables or keywords when unquoted + endif() + + project (x265) +-- +2.51.0 +
package/x265/0002-source-CMakeLists.txt-allow-setting-CPU_HAS_NEON-whe.patch deleted +0 -40
@@ -1,40 +0,0 @@ -From 0088d29e7c75ea7f100a100aea4e2a797469427f Mon Sep 17 00:00:00 2001 -From: Thomas Petazzoni <[email protected]> -Date: Sat, 13 Jul 2024 10:10:54 +0200 -Subject: [PATCH] source/CMakeLists.txt: allow setting CPU_HAS_NEON when - CROSS_COMPILE_ARM - -The logic in source/cmake/FindNeon.cmake is not appropriate for -cross-compilation scenarios, so in order to allow cross-compiling for -ARM, CROSS_COMPILE_ARM needs to be defined. However that currently -doesn't allow the enabling of NEON support, so let's allow the user to -manually set CPU_HAS_NEON in this case. - -Upstream: https://bitbucket.org/multicoreware/x265_git/pull-requests/26 -Signed-off-by: Thomas Petazzoni <[email protected]> ---- - source/CMakeLists.txt | 7 ++++++- - 1 file changed, 6 insertions(+), 1 deletion(-) - -diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt -index a34bf4d4f..072bf62ab 100755 ---- a/source/CMakeLists.txt -+++ b/source/CMakeLists.txt -@@ -239,8 +239,13 @@ if(GCC) - endif() - endif() - if(ARM AND CROSS_COMPILE_ARM) -- set(ARM_ARGS -fPIC) - message(STATUS "cross compile arm") -+ if(CPU_HAS_NEON) -+ set(ARM_ARGS -mfpu=neon -fPIC) -+ add_definitions(-DHAVE_NEON) -+ else() -+ set(ARM_ARGS -fPIC) -+ endif() - elseif(ARM) - if(ARM64) - set(ARM_ARGS -fPIC) --- -2.45.2 -
package/x265/0003-Fix-for-CMake-Build-Errors-in-MacOS.patch new file +60 -0
60 lines not on this page · raw message
package/x265/0004-Fix-neon-undefined-symbols-in-armv6l-armv7l.patch new file +28 -0
@@ -0,0 +1,28 @@ +From ddb1933598736394b646cb0f78da4a4201ffc656 Mon Sep 17 00:00:00 2001 +From: Uthayakumar Muthu <[email protected]> +Date: Sun, 12 Jan 2025 13:17:21 +0530 +Subject: [PATCH] Fix neon undefined symbols in armv6l,armv7l + +Upstream: https://bitbucket.org/multicoreware/x265_git/commits/ddb1933598736394b646cb0f78da4a4201ffc656 + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + source/common/cpu.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/source/common/cpu.cpp b/source/common/cpu.cpp +index ae0907890..35c43deaf 100644 +--- a/source/common/cpu.cpp ++++ b/source/common/cpu.cpp +@@ -352,7 +352,7 @@ uint32_t cpu_detect(bool benableavx512) + { + int flags = 0; + +-#if HAVE_ARMV6 ++#if HAVE_ARMV6 && ENABLE_ASSEMBLY + flags |= X265_CPU_ARMV6; + + // don't do this hack if compiled with -mfpu=neon +-- +2.51.0 +
package/x265/x265.hash +1 -3
@@ -1,5 +1,3 @@ -# From https://mailman.videolan.org/pipermail/x265-devel/2021-March/013257.html -md5 deb5df5cb2ec17bdbae6ac6bbc3b1eef x265_3.5.tar.gz # Locally generated -sha256 e70a3335cacacbba0b3a20ec6fecd6783932288ebc8163ad74bcc9606477cae8 x265_3.5.tar.gz +sha256 a31699c6a89806b74b0151e5e6a7df65de4b49050482fe5ebf8a4379d7af8f29 x265_4.1.tar.gz sha256 d8afb1bcc7a2cfc603683b168d6987ef0a48e59e0da3693bf55c5d33b67e2b49 COPYING
package/x265/x265.mk +4 -2
@@ -4,7 +4,7 @@ # ################################################################################ -X265_VERSION = 3.5 +X265_VERSION = 4.1 X265_SOURCE = x265_$(X265_VERSION).tar.gz X265_SITE = https://bitbucket.org/multicoreware/x265_git/downloads X265_LICENSE = GPL-2.0+
@@ -23,7 +23,9 @@ endif ifeq ($(BR2_ARM_CPU_ARMV7A),y) X265_CONF_OPTS += -DCROSS_COMPILE_ARM=1 ifeq ($(BR2_ARM_CPU_HAS_NEON),y) -X265_CONF_OPTS += -DCPU_HAS_NEON=1 +X265_CONF_OPTS += -DENABLE_NEON=ON +else +X265_CONF_OPTS += -DENABLE_NEON=OFF endif endif
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 5 lines · Bernd Kuhls
Release notes:
4.1: https://mailman.videolan.org/pipermail/x265-devel/2024-November/014095.html
4.0: https://mailman.videolan.org/pipermail/x265-devel/2024-September/013940.html
3.6: https://mailman.videolan.org/pipermail/x265-devel/2024-April/013664.html
Quoted 8 lines
Rebased patch 0001 and removed patch 0002 due to upstream commit
https://bitbucket.org/multicoreware/x265_git/commits/4bf31dc15fb6d1f93d12ecf21fad5e695f0db5c0Added patches 0002 & 0003 to fix build with CMake 4.x.
Added patch 0004 and adjusted
_CONF_OPTSto fix non-NEON build.Signed-off-by Bernd Kuhls <[email protected]>
Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot