diff mbox series

[meta-oe,37/69] libsdl-ttf: Fix upstream version check

Message ID 20261127003425.2166632-38-khem.raj@oss.qualcomm.com
State New
Headers show
Series Upstream version check fixes | expand

Commit Message

Khem Raj Nov. 27, 2026, 12:33 a.m. UTC
The default regex also matched the RPM packages on the release page
(SDL_ttf-2.0.11-1.src.rpm), reporting a bogus "2.0.11-1" version. Match
only the SDL_ttf-<version>.tar.gz source tarballs.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 meta-oe/recipes-graphics/libsdl/libsdl-ttf_2.0.11.bb | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta-oe/recipes-graphics/libsdl/libsdl-ttf_2.0.11.bb b/meta-oe/recipes-graphics/libsdl/libsdl-ttf_2.0.11.bb
index 2cf3e88f17..68a001858b 100644
--- a/meta-oe/recipes-graphics/libsdl/libsdl-ttf_2.0.11.bb
+++ b/meta-oe/recipes-graphics/libsdl/libsdl-ttf_2.0.11.bb
@@ -9,6 +9,8 @@  SRC_URI = "http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-${PV}.tar.gz \
 "
 SRC_URI[sha256sum] = "724cd895ecf4da319a3ef164892b72078bd92632a5d812111261cde248ebcdb7"
 
+UPSTREAM_CHECK_REGEX = "SDL_ttf-(?P<pver>\d+(\.\d+)+)\.tar\.gz"
+
 S = "${UNPACKDIR}/SDL_ttf-${PV}"
 
 inherit autotools pkgconfig