diff mbox series

xorg-font-common: Install fonts after target boots

Message ID 20241101180802.395269-2-erick.shepherd@ni.com
State New
Headers show
Series xorg-font-common: Install fonts after target boots | expand

Commit Message

Erick Shepherd Nov. 1, 2024, 6:08 p.m. UTC
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.

Signed-off-by: Erick Shepherd <erick.shepherd@ni.com>
---
 meta/recipes-graphics/xorg-font/xorg-font-common.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Alexander Kanavin Nov. 1, 2024, 6:23 p.m. UTC | #1
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

On Fri 1. Nov 2024 at 19.08, Erick Shepherd via lists.openembedded.org
<erick.shepherd=ni.com@lists.openembedded.org> wrote:

> 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.
>
> Signed-off-by: Erick Shepherd <erick.shepherd@ni.com>
> ---
>  meta/recipes-graphics/xorg-font/xorg-font-common.inc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-graphics/xorg-font/xorg-font-common.inc
> b/meta/recipes-graphics/xorg-font/xorg-font-common.inc
> index edf7cf7642..b9c55a95f8 100644
> --- a/meta/recipes-graphics/xorg-font/xorg-font-common.inc
> +++ b/meta/recipes-graphics/xorg-font/xorg-font-common.inc
> @@ -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: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
diff mbox series

Patch

diff --git a/meta/recipes-graphics/xorg-font/xorg-font-common.inc b/meta/recipes-graphics/xorg-font/xorg-font-common.inc
index edf7cf7642..b9c55a95f8 100644
--- a/meta/recipes-graphics/xorg-font/xorg-font-common.inc
+++ b/meta/recipes-graphics/xorg-font/xorg-font-common.inc
@@ -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