diff mbox series

[meta-oe,03/72] ttf-noto-emoji: upgrade 2.051 -> 2.057

Message ID 20261130084643.1500716-4-khem.raj@oss.qualcomm.com
State New
Headers show
Series Upgrades, tip updates, removals and build fixes | expand

Commit Message

Khem Raj Nov. 30, 2026, 8:45 a.m. UTC
Update to the Unicode 18.0 release (tag v2026-09-24-unicode18_0). The
2D fonts in it are version 2.057; the release also adds 3D emoji fonts
(3D - v3.054), which are stored in Git LFS and not packaged.

The release moved the fonts from fonts/ to 2D/fonts/, so point
LIC_FILES_CHKSUM at 2D/fonts/LICENSE (unchanged) and install only the
2D fonts. ttf.inc installs every .ttf in the tree, which would include
the 3D LFS pointer files. Fetch with lfs=0, since nothing from LFS is
needed and the git fetcher otherwise fails on hosts without git-lfs. The packages ship the same eight fonts as
before.

Releases are now tagged by date, without the font version, so the tags
cannot be compared with PV. Set UPSTREAM_VERSION_UNKNOWN and match the
date tags, so check-upgrade-status shows the newest release tag with
KNOWN_BROKEN status.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 ...to-emoji_2.051.bb => ttf-noto-emoji_2.057.bb} | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)
 rename meta-oe/recipes-graphics/ttf-fonts/{ttf-noto-emoji_2.051.bb => ttf-noto-emoji_2.057.bb} (62%)
diff mbox series

Patch

diff --git a/meta-oe/recipes-graphics/ttf-fonts/ttf-noto-emoji_2.051.bb b/meta-oe/recipes-graphics/ttf-fonts/ttf-noto-emoji_2.057.bb
similarity index 62%
rename from meta-oe/recipes-graphics/ttf-fonts/ttf-noto-emoji_2.051.bb
rename to meta-oe/recipes-graphics/ttf-fonts/ttf-noto-emoji_2.057.bb
index 6376b0e10d..a22f2e4882 100644
--- a/meta-oe/recipes-graphics/ttf-fonts/ttf-noto-emoji_2.051.bb
+++ b/meta-oe/recipes-graphics/ttf-fonts/ttf-noto-emoji_2.057.bb
@@ -3,12 +3,16 @@  require ttf.inc
 SUMMARY = "Google noto emoji font pack"
 HOMEPAGE = "https://github.com/googlefonts/noto-emoji"
 LICENSE = "OFL-1.1"
-LIC_FILES_CHKSUM = "file://fonts/LICENSE;md5=55719faa0112708e946b820b24b14097"
+LIC_FILES_CHKSUM = "file://2D/fonts/LICENSE;md5=55719faa0112708e946b820b24b14097"
 
-SRC_URI = "git://github.com/googlefonts/noto-emoji;branch=main;protocol=https"
-SRCREV = "8998f5dd683424a73e2314a8c1f1e359c19e8742"
+SRC_URI = "git://github.com/googlefonts/noto-emoji;branch=main;protocol=https;lfs=0;tag=v2026-09-24-unicode18_0"
+SRCREV = "e20cbc2bbec1926686be9f9bee7d1d2cfa1fea0e"
 PE = "1"
 
+# Releases are tagged by date (vYYYY-MM-DD-unicodeNN_N) without the font version
+UPSTREAM_VERSION_UNKNOWN = "1"
+UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d{4}-\d{2}-\d{2})-unicode"
+
 PACKAGES =+ "${PN}-color ${PN}-color-noflags ${PN}-colrv1 ${PN}-colrv1-noflags"
 FONT_PACKAGES = "${PN} ${PN}-color ${PN}-color-noflags ${PN}-colrv1 ${PN}-colrv1-noflags"
 
@@ -21,3 +25,9 @@  FILES:${PN}-colrv1 = "${datadir}/fonts/truetype/Noto-COLRv1.ttf"
 FILES:${PN}-colrv1-noflags = "${datadir}/fonts/truetype/Noto-COLRv1-noflags.ttf"
 
 do_compile[noexec] = "1"
+
+# Only the 2D fonts; 3D/fonts holds Git LFS pointers
+do_install() {
+    install -d ${D}${datadir}/fonts/truetype/
+    install -m 0644 ${S}/2D/fonts/*.ttf ${D}${datadir}/fonts/truetype/
+}