Skip to contentSkip to conversation

ttf-pt-sans_1.1: Install fonts after target boots

PATCH In review Erick Shepherd 2 participants 3 messages Nov 1, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ttf-pt-sans_1.1: Install fonts after target boots

Access to the font cache on the target is required to get rid of the "configuration required on target" font warnings that appear during rootfs builds.

---
 meta-oe/recipes-graphics/ttf-fonts/ttf-pt-sans_1.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-graphics/ttf-fonts/ttf-pt-sans_1.1.bb +1 -1
index fce76418f..5789f90c7 100644
@@ -27,7 +27,7 @@ do_install () {
 
 FILES:${PN} += "${datadir}"
 
-pkg_postinst:${PN} () {
+pkg_postinst_ontarget:${PN} () {
     set -x
     for fontdir in `find $D/usr/lib/X11/fonts -type d`; do
         mkfontdir $fontdir
Signature · 1 line
2.43.0
#1 lore raw

PATCH 1/1 ttf-pt-sans_1.1: Install fonts after target boots

Access to the font cache on the target is required to get rid of the "configuration required on target" font warnings that appear during rootfs builds.

---
 meta-oe/recipes-graphics/ttf-fonts/ttf-pt-sans_1.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-graphics/ttf-fonts/ttf-pt-sans_1.1.bb +1 -1
index fce76418f..5789f90c7 100644
@@ -27,7 +27,7 @@ do_install () {
 
 FILES:${PN} += "${datadir}"
 
-pkg_postinst:${PN} () {
+pkg_postinst_ontarget:${PN} () {
     set -x
     for fontdir in `find $D/usr/lib/X11/fonts -type d`; do
         mkfontdir $fontdir
Signature · 1 line
2.43.0
#2 lore raw
In reply to Erick Shepherd
Quoted 5 lines · Erick Shepherd via lists.openembedded.org

Access to the font cache on the target is required to get rid of the "configuration required on target" font warnings that appear during rootfs builds.

That would make it behave differently on read-only rootfs, best would be to see if it
can be run offline somehow

Quoted 30 lines
---
 meta-oe/recipes-graphics/ttf-fonts/ttf-pt-sans_1.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-graphics/ttf-fonts/ttf-pt-sans_1.1.bb +1 -2
index fce76418f..5789f90c7 100644
@@ -27,7 +27,7 @@ do_install () {
 
 FILES:${PN} += "${datadir}"
 
-pkg_postinst:${PN} () {
+pkg_postinst_ontarget:${PN} () {
     set -x
     for fontdir in `find $D/usr/lib/X11/fonts -type d`; do
         mkfontdir $fontdir
--

2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#113387): https://lists.openembedded.org/g/openembedded-devel/message/113387
Mute This Topic: https://lists.openembedded.org/mt/109339423/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-