diff mbox series

[meta-oe,10/12] ttf-takao: Use upstream's version as PV

Message ID 20261202060612.3378528-11-khem.raj@oss.qualcomm.com
State New
Headers show
Series Fix broken upstream version checks in meta-oe | expand

Commit Message

Khem Raj Dec. 2, 2026, 6:06 a.m. UTC
The only Takao release tarball is TakaoFonts_00303.01, which PV
003.03.01 could not be compared with, so the recipe was declared
UPSTREAM_VERSION_UNKNOWN. Use 00303.01 as PV (it sorts above 003.03.01,
no PE needed), derive SRC_URI and S from it and check the Launchpad
download page.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 .../{ttf-takao_003.03.01.bb => ttf-takao_00303.01.bb}  | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
 rename meta-oe/recipes-graphics/ttf-fonts/{ttf-takao_003.03.01.bb => ttf-takao_00303.01.bb} (79%)
diff mbox series

Patch

diff --git a/meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb b/meta-oe/recipes-graphics/ttf-fonts/ttf-takao_00303.01.bb
similarity index 79%
rename from meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb
rename to meta-oe/recipes-graphics/ttf-fonts/ttf-takao_00303.01.bb
index d14260bdf9..5c6608a743 100644
--- a/meta-oe/recipes-graphics/ttf-fonts/ttf-takao_003.03.01.bb
+++ b/meta-oe/recipes-graphics/ttf-fonts/ttf-takao_00303.01.bb
@@ -9,14 +9,14 @@  SECTION = "User Interface/X"
 LICENSE = "IPA"
 LIC_FILES_CHKSUM = "file://IPA_Font_License_Agreement_v1.0.txt;md5=6cd3351ba979cf9db1fad644e8221276"
 
-SRC_URI = "https://launchpad.net/takao-fonts/trunk/15.03/+download/TakaoFonts_00303.01.tar.xz"
+SRC_URI = "https://launchpad.net/takao-fonts/trunk/15.03/+download/TakaoFonts_${PV}.tar.xz"
 SRC_URI[sha256sum] = "e9871f72ac69acb3e277aebbee7ca01fbebf54800733e29fafdc46133fc3552f"
 
-# Launchpad project dormant since the 15.03 release; the only published tarballs
-# are named TakaoFonts_00303.01, which is not comparable to PV 003.03.01.
-UPSTREAM_VERSION_UNKNOWN = "1"
+# PV follows the TakaoFonts_<version> tarball names on Launchpad
+UPSTREAM_CHECK_URI = "https://launchpad.net/takao-fonts/+download"
+UPSTREAM_CHECK_REGEX = "TakaoFonts_(?P<pver>\d+\.\d+)\.tar"
 
-S = "${UNPACKDIR}/TakaoFonts_00303.01"
+S = "${UNPACKDIR}/TakaoFonts_${PV}"
 
 PACKAGES = "ttf-takao-pgothic ttf-takao-gothic ttf-takao-pmincho ttf-takao-mincho"
 FONT_PACKAGES = "ttf-takao-pgothic ttf-takao-gothic ttf-takao-pmincho ttf-takao-mincho"