Debian Patches

Status for libyuv/0.0.1949.20260706-1

Patch Description Author Forwarded Bugs Origin Last update
0001-CMakeLists.txt-Apply-SONAME-and-multiarch.patch CMakeLists.txt: Apply SONAME and multiarch Boyuan Yang <byang@debian.org> not-needed 2025-08-15
0003-CMakeLists.txt-Install-missing-yuvconstants-binary.patch CMakeLists.txt: Install missing yuvconstants binary Boyuan Yang <byang@debian.org> not-needed 2025-08-15
0004-CMakeLists.txt-Do-not-enable-NEON-for-armel-armhf.patch CMakeLists.txt: Do not enable NEON for armel armhf
According to https://wiki.debian.org/ArchitectureSpecificsMemo#armel
the armhf architecture does not guarantee NEON. Do not enable NEON
on armhf. Also disable NEON for armel to prevent FTBFS.

Note that after 2025-12-15 the upstream decided that non-NEON arm
builds are no longer supported. This patch is provided as-is and
may or may not work. See https://issues.chromium.org/issues/469092869
as well as
https://chromium.googlesource.com/libyuv/libyuv/+/821b9c5de1cf232f51c26e1eaad4689fc2317949%5E%21/
for more details.
Boyuan Yang <byang@debian.org> not-needed 2025-08-15
0005-cpuid-only-build-VDPPHPS-probe-when-target-has-SSE.patch cpuid: only build VDPPHPS probe when target has SSE
On i386, naming "xmm0" in the asm clobber list fails to compile when
SSE is not part of the compiler's target ISA:

error: the register 'xmm0' cannot be clobbered in 'asm' for the
current target

This is the case for Debian's i386 toolchain: although the post-Trixie
runtime baseline is Pentium 4 (which has SSE2), that only raises the
CPU features binaries may assume at runtime. The default compiler
codegen was intentionally left at plain i686, so gcc emits no SSE and
does not define __SSE__/__SSE2__ unless -msse2 is passed explicitly --
and the xmm0 clobber is rejected accordingly.

Guard the runtime VDPPHPS test on __SSE__ so it is emitted only where
the xmm registers exist for the target. x86-64 (SSE always in the ABI)
and SSE-enabled i386 keep the probe; the default SSE-less i386 codegen
no longer FTBFS.

As libyuv is part of Chromium project, and upstream Chrome/Chromium
implicitly targets SSE3+ availability, this patch need not be forwarded
upstream.
Boyuan Yang <byang@debian.org> not-needed debian 2026-07-07

All known versions for source package 'libyuv'

Links