Skip to contentSkip to conversation

libtheora: upgrade 1.1.1 -> 1.2.0

PATCH New Gyorgy Sarvari 1 participant 1 message Jun 9, 2025

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 libtheora: upgrade 1.1.1 -> 1.2.0

Drop no-docs.patch, and use "--disable-doc" configuration instead. Drop autoreconf.patch, because it is included in the release.

Add 0001-add-missing-files.patch to mitigate a release issue, which caused some files to be missing from the tarball.

Major changes:
- New 'ptalarbvorm' encoder
- New th_encode_ctl option for copying configuration from an existing setup header, useful for splicing streams.
- Added support for RISC OS.
- Improved ARM support.
- Various speed, bug fixes and code quality improvements.

See CHANGES file for full changelog.

---

Changes in v3:
- Disable assembly optimizations for armv5 and armv4 architectures as they don't support some of the instructions present in the asm files.

Changes in v2:
- Link: https://lore.kernel.org/openembedded-core/[email protected]/
- Add a patch to mitigate a release bug: https://gitlab.xiph.org/xiph/theora/-/issues/2338
Some 32-bit arm related files are missing from the tarball, causing the
build to fail on this arch (when assembly optimization is also enabled, which is the default).
- Remove no-docs.patch, and instead add "--disable-doc" configuration
option, which is a new option that was introduced in this release.

Link to v1: https://lore.kernel.org/openembedded-core/[email protected]

 .../libtheora-1.1.1/autoreconf.patch          |  42 -
 .../libtheora/libtheora-1.1.1/no-docs.patch   |  15 -
 .../libtheora/0001-add-missing-files.patch    | 769 ++++++++++++++++++
 ...{libtheora_1.1.1.bb => libtheora_1.2.0.bb} |  13 +-
 4 files changed, 777 insertions(+), 62 deletions(-)
 delete mode 100644 meta/recipes-multimedia/libtheora/libtheora-1.1.1/autoreconf.patch
 delete mode 100644 meta/recipes-multimedia/libtheora/libtheora-1.1.1/no-docs.patch
 create mode 100644 meta/recipes-multimedia/libtheora/libtheora/0001-add-missing-files.patch
 rename meta/recipes-multimedia/libtheora/{libtheora_1.1.1.bb => libtheora_1.2.0.bb} (58%)
meta/recipes-multimedia/libtheora/libtheora-1.1.1/autoreconf.patch deleted +0 -42
deleted file mode 100644
index 0fc09ba413..0000000000
@@ -1,42 +0,0 @@
-From 859e58b440e64aeec446ae0a923a638e4203f408 Mon Sep 17 00:00:00 2001
-From: Tim Terriberry <[email protected]>
-Date: Fri, 20 May 2011 20:41:50 +0000
-Subject: [PATCH] Make autoreconf -i -f work.
-
-Patch from David Schleef.
-
-svn path=/trunk/theora/; revision=17990
-
-Upstream-Status: Backport
-Signed-off-by: Ross Burton <[email protected]>
----
- Makefile.am  | 2 ++
- configure.ac | 2 +-
- 2 files changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/Makefile.am b/Makefile.am
-index d833491..369978d 100644
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -2,6 +2,8 @@
- 
- AUTOMAKE_OPTIONS = foreign 1.6 dist-zip dist-bzip2
- 
-+ACLOCAL_AMFLAGS=-I m4
-+
- if THEORA_ENABLE_EXAMPLES
- EXAMPLES_DIR = examples
- else
-diff --git a/configure.ac b/configure.ac
-index 8260bdf..d4feb86 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -61,7 +61,7 @@ AC_LIBTOOL_WIN32_DLL
- AM_PROG_LIBTOOL
- 
- dnl Add parameters for aclocal
--AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
-+AC_CONFIG_MACRO_DIR([m4])
- 
- dnl Check for doxygen
- AC_CHECK_PROG(HAVE_DOXYGEN, doxygen, true, false)
meta/recipes-multimedia/libtheora/libtheora-1.1.1/no-docs.patch deleted +0 -15
deleted file mode 100644
index 359f3d1a7a..0000000000
@@ -1,15 +0,0 @@
-Upstream-Status: Inappropriate [configuration]
-
-Index: libtheora-1.1.1/Makefile.am
-===================================================================
---- libtheora-1.1.1.orig/Makefile.am	2009-11-25 22:01:53.593775926 +0100
-+++ libtheora-1.1.1/Makefile.am	2009-11-25 22:02:00.777524017 +0100
-@@ -8,7 +8,7 @@
- EXAMPLES_DIR =
- endif
- 
--SUBDIRS = lib include doc tests m4 $(EXAMPLES_DIR)
-+SUBDIRS = lib include tests m4 $(EXAMPLES_DIR)
- 
- 
- # we include the whole debian/ dir in EXTRA_DIST because there's a problem
meta/recipes-multimedia/libtheora/libtheora/0001-add-missing-files.patch new file +769 -0

769 lines not on this page · raw message

meta/recipes-multimedia/libtheora/libtheora_1.2.0.bb renamed from meta/recipes-multimedia/libtheora/libtheora_1.1.1.bb +8 -5
similarity index 58%
rename from meta/recipes-multimedia/libtheora/libtheora_1.1.1.bb
rename to meta/recipes-multimedia/libtheora/libtheora_1.2.0.bb
index d0a9a59b7c..361d2c6e4a 100644
@@ -8,14 +8,17 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=cf91718f59eb6a83d06dc7bcaf411132"
 DEPENDS = "libogg"
 
 
-SRC_URI = "http://downloads.xiph.org/releases/theora/libtheora-${PV}.tar.bz2 \
-           file://autoreconf.patch \
-           file://no-docs.patch"
+SRC_URI = "http://downloads.xiph.org/releases/theora/libtheora-${PV}.tar.xz \
+           file://0001-add-missing-files.patch"
 
-SRC_URI[sha256sum] = "b6ae1ee2fa3d42ac489287d3ec34c5885730b1296f0801ae577a35193d3affbc"
+SRC_URI[sha256sum] = "ebdf77a8f5c0a8f7a9e42323844fa09502b34eb1d1fece7b5f54da41fe2122ec"
 
 UPSTREAM_CHECK_REGEX = "libtheora-(?P<pver>\d+(\.\d)+)\.(tar\.gz|tgz)"
 
 inherit autotools pkgconfig
 
-EXTRA_OECONF = "--disable-examples"
+EXTRA_OECONF = "--disable-examples --disable-doc"
+
+# these old architectures don't support all the instructions from the asm source files
+EXTRA_OECONF:append:armv4 = " --disable-asm "
+EXTRA_OECONF:append:armv5 = " --disable-asm "