Skip to contentSkip to conversation

xorg-font-common: Install fonts after target boots

PATCH New Erick Shepherd 2 participants 3 messages Nov 1, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xorg-font-common: 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/recipes-graphics/xorg-font/xorg-font-common.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-graphics/xorg-font/xorg-font-common.inc +1 -1
index edf7cf7642..b9c55a95f8 100644
@@ -30,7 +30,7 @@ do_install:append() {
 FILES:${PN} += " ${libdir}/X11/fonts ${datadir}"
 
 PACKAGE_WRITE_DEPS += "mkfontdir-native mkfontscale-native"
-pkg_postinst:${PN} () {
+pkg_postinst_ontarget:${PN} () {
         for fontdir in `find $D/usr/lib/X11/fonts -type d`; do
                 mkfontdir $fontdir
                 mkfontscale $fontdir
Signature · 1 line
2.43.0
#1 lore raw

PATCH 1/1 xorg-font-common: 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/recipes-graphics/xorg-font/xorg-font-common.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-graphics/xorg-font/xorg-font-common.inc +1 -1
index edf7cf7642..b9c55a95f8 100644
@@ -30,7 +30,7 @@ do_install:append() {
 FILES:${PN} += " ${libdir}/X11/fonts ${datadir}"
 
 PACKAGE_WRITE_DEPS += "mkfontdir-native mkfontscale-native"
-pkg_postinst:${PN} () {
+pkg_postinst_ontarget:${PN} () {
         for fontdir in `find $D/usr/lib/X11/fonts -type d`; do
                 mkfontdir $fontdir
                 mkfontscale $fontdir
Signature · 1 line
2.43.0
#2 lore raw

This doesn’t seem like a correct fix. We do have font cache at roots time so the tools either can’t find it or need the cache to be explicitly created first.

Ontarget is problematic with read only roots and should be avoided if possible.

Alex

Quoted 38 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.

---
 meta/recipes-graphics/xorg-font/xorg-font-common.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-graphics/xorg-font/xorg-font-common.inc +1 -2
index edf7cf7642..b9c55a95f8 100644
@@ -30,7 +30,7 @@ do_install:append() {
 FILES:${PN} += " ${libdir}/X11/fonts ${datadir}"
 
 PACKAGE_WRITE_DEPS += "mkfontdir-native mkfontscale-native"
-pkg_postinst:${PN} () {
+pkg_postinst_ontarget:${PN} () {
         for fontdir in `find $D/usr/lib/X11/fonts -type d`; do
                 mkfontdir $fontdir
                 mkfontscale $fontdir
--

2.43.0

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