package/x265: bump version to 4.3
PATCH 1/1 package/x265: bump version to 4.3
https://mailman.videolan.org/pipermail/x265-devel/2026-July/014552.html
https://mailman.videolan.org/pipermail/x265-devel/2026-April/014533.html
Rebased patch 0001.
Removed remaining patches which are included in this release.
Upstream moved the repository to github:
https://mailman.videolan.org/pipermail/x265-devel/2026-May/014545.html
This bump includes upstream commit
https://github.com/Multicorewareinc/x265/commit/f74b2f38ad850a09524f331f64870e6300fd923b
that uses vst1q_s16_x2() which was first added to gcc 9:
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=568421baa5a4cdb7bb7c5ac323c939492ee3f052
causing build errors detected by the Gitlab pipelines:
/builds/bkuhls/buildroot/br-test-pkg/bootlin-aarch64-glibc-old/build/x265-4.3/source/common/aarch64/pixel-prim.cpp:787:25:
error: ‘vst1q_s16_x2’ was not declared in this scope
Fix build error on i386:
[ 86%] Linking CXX shared library libx265.so /home/bernd/buildroot/buildroot/output/per-package/x265/host/opt/ext-toolchain/bin/../lib/gcc/i686-buildroot-linux-musl/15.3.0/../../../../i686-buildroot-linux-musl/bin/ld:
common/CMakeFiles/common.dir/x86/pixel-a.asm.o:
warning: relocation in read-only section `.text'
[ 86%] Built target x265-static /home/bernd/buildroot/buildroot/output/per-package/x265/host/opt/ext-toolchain/bin/../lib/gcc/i686-buildroot-linux-musl/15.3.0/../../../../i686-buildroot-linux-musl/bin/ld:
read-only segment has dynamic relocations
collect2: error: ld returned 1 exit status
by adding "-Wl,-z,notext" to LDFLAGS as suggested by
https://bugzilla.redhat.com/show_bug.cgi?id=2428281#c5
Upstream added the usage of __sync_fetch_and_add_8 with commit
https://github.com/Multicorewareinc/x265/commit/cb40d974e9d6e0388d4dac9484eaa68ceb5c3dcb
first included in this release. To fix build errorswith toolchains not supporting __sync_fetch_and_add_8 we disable atomics by adding -DNO_ATOMICS=ON to _CONF_OPTS.
---
Gitlab pipelines passed:
https://gitlab.com/bkuhls/buildroot/-/commits/7be8e371f391e1b8c71a80ab66fc1f0332ee2b5f
with the exception of target bootlin-m68k-68040-uclibc/build/x265-4.3/.stamp_built caused by an ICE.
...ists.txt-do-not-force-compiler-flags.patch | 4 +- ...-error-with-latest-CMake-4.0-release.patch | 35 ----------- ...-Fix-for-CMake-Build-Errors-in-MacOS.patch | 60 ------------------- ...n-undefined-symbols-in-armv6l-armv7l.patch | 28 --------- package/x265/x265.hash | 3 +- package/x265/x265.mk | 19 +++++- 6 files changed, 21 insertions(+), 128 deletions(-) delete mode 100644 package/x265/0002-Fix-CMake-build-error-with-latest-CMake-4.0-release.patch delete mode 100644 package/x265/0003-Fix-for-CMake-Build-Errors-in-MacOS.patch delete mode 100644 package/x265/0004-Fix-neon-undefined-symbols-in-armv6l-armv7l.patch
package/x265/0001-CMakeLists.txt-do-not-force-compiler-flags.patch +2 -2
@@ -21,7 +21,7 @@ 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] +[Bernd: rebased for 4.3] Signed-off-by: Bernd Kuhls <[email protected]> --- source/CMakeLists.txt | 6 +++---
@@ -32,7 +32,7 @@ diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index c14489ea6..fa331e8af 100755 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt -@@ -270,14 +270,14 @@ if(GCC) +@@ -321,14 +321,14 @@ if(GCC) endif() if(ARM AND CROSS_COMPILE_ARM) message(STATUS "cross compile arm")
package/x265/0002-Fix-CMake-build-error-with-latest-CMake-4.0-release.patch deleted +0 -35
@@ -1,35 +0,0 @@ -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/0003-Fix-for-CMake-Build-Errors-in-MacOS.patch deleted +0 -60
60 lines not on this page · raw message
package/x265/0004-Fix-neon-undefined-symbols-in-armv6l-armv7l.patch deleted +0 -28
@@ -1,28 +0,0 @@ -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 +2 -1
@@ -1,3 +1,4 @@ +# From https://github.com/Multicorewareinc/x265/releases/tag/4.3 +sha256 83c53e4c8bbb8f1e33ed59e10a7d621d1d7801ca853910c3eb41f038b8ffb121 x265_4.3.tar.gz # Locally generated -sha256 a31699c6a89806b74b0151e5e6a7df65de4b49050482fe5ebf8a4379d7af8f29 x265_4.1.tar.gz sha256 d8afb1bcc7a2cfc603683b168d6987ef0a48e59e0da3693bf55c5d33b67e2b49 COPYING
package/x265/x265.mk +17 -2
@@ -4,9 +4,9 @@ # ################################################################################ -X265_VERSION = 4.1 +X265_VERSION = 4.3 X265_SOURCE = x265_$(X265_VERSION).tar.gz -X265_SITE = https://bitbucket.org/multicoreware/x265_git/downloads +X265_SITE = https://github.com/Multicorewareinc/x265/releases/download/$(X265_VERSION) X265_LICENSE = GPL-2.0+ X265_LICENSE_FILES = COPYING X265_CPE_ID_VENDOR = multicorewareinc
@@ -29,6 +29,15 @@ X265_CONF_OPTS += -DENABLE_NEON=OFF endif endif +# x265 uses vst1q_s16_x2 on aarch64 which was implemented in gcc 9 +ifeq ($(BR2_aarch64):$(BR2_TOOLCHAIN_GCC_AT_LEAST_9),y:) +X265_CONF_OPTS += -DENABLE_ASSEMBLY=0 +endif + +ifeq ($(BR2_i386),y) +X265_CONF_OPTS += -DEXTRA_LINK_FLAGS=-Wl,-z,notext +endif + ifeq ($(BR2_i386)$(BR2_x86_64),y) X265_DEPENDENCIES += host-nasm endif
@@ -39,6 +48,12 @@ ifeq ($(BR2_powerpc64)$(BR2_powerpc64le),y) X265_CONF_OPTS += -DENABLE_ALTIVEC=OFF endif +ifeq ($(BR2_TOOLCHAIN_HAS_SYNC_8),y) +X265_CONF_OPTS += -DNO_ATOMICS=OFF +else +X265_CONF_OPTS += -DNO_ATOMICS=ON +endif + ifeq ($(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),y) X265_CONF_OPTS += -DENABLE_SHARED=ON -DENABLE_PIC=ON else
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Bernd,
Thanks for this bump, one question below.
Quoted 7 lines · Bernd Kuhls
Fix build error on i386:
[ 86%] Linking CXX shared library libx265.so
/home/bernd/buildroot/buildroot/output/per-package/x265/host/opt/ext-toolchain/bin/../lib/gcc/i686-buildroot-linux-musl/15.3.0/../../../../i686-buildroot-linux-musl/bin/ld:
common/CMakeFiles/common.dir/x86/pixel-a.asm.o:
warning: relocation in read-only section `.text'
Quoted 7 lines
[ 86%] Built target x265-static
/home/bernd/buildroot/buildroot/output/per-package/x265/host/opt/ext-toolchain/bin/../lib/gcc/i686-buildroot-linux-musl/15.3.0/../../../../i686-buildroot-linux-musl/bin/ld:
read-only segment has dynamic relocations
collect2: error: ld returned 1 exit statusby adding "-Wl,-z,notext" to LDFLAGS as suggested by
https://bugzilla.redhat.com/show_bug.cgi?id=2428281#c5
Hum, what tells you this is specific to i386? Yes, your testing, but I don't immediately see the relationship between i386 and needing -Wl,-z,notext.
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
A message that is not in the archive (sent off-list or not yet received): at4_x-qSmchPMRN9__17522.8374240518$1792950297$gmane$org@windsurf
Am Sun, 25 Oct 2026 18:44:35 +0100 schrieb Thomas Petazzoni via buildroot:
Quoted 4 lines
Quoted 2 lines
by adding "-Wl,-z,notext" to LDFLAGS as suggested by
https://bugzilla.redhat.com/show_bug.cgi?id=2428281#c5Hum, what tells you this is specific to i386?
Hi Thomas,
it is mentioned in the bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=2428281#c2
https://bugzilla.redhat.com/show_bug.cgi?id=2428281#c7
https://bugzilla.redhat.com/show_bug.cgi?id=2428281#c9
Regards, Bernd
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot