Redirect stderr to /dev/null to avoid the error: $ opkg install encodings Installing encodings (1.0.5) on root Configuring encodings. find: /usr/lib/X11/fonts: No such file or directory
Signed-off-by: Yi Zhao <[email protected]> --- meta/recipes-graphics/xorg-font/xorg-font-common.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/recipes-graphics/xorg-font/xorg-font-common.inc b/meta/recipes-graphics/xorg-font/xorg-font-common.inc index f18c8aefc2..85bc0f72a8 100644 --- a/meta/recipes-graphics/xorg-font/xorg-font-common.inc +++ b/meta/recipes-graphics/xorg-font/xorg-font-common.inc @@ -32,11 +32,11 @@ FILES_${PN} += " ${libdir}/X11/fonts ${datadir}" PACKAGE_WRITE_DEPS += "mkfontdir-native mkfontscale-native" pkg_postinst_${PN} () { - for fontdir in `find $D/usr/lib/X11/fonts -type d`; do + for fontdir in `find $D/usr/lib/X11/fonts -type d 2>/dev/null`; do mkfontdir $fontdir mkfontscale $fontdir done - for fontdir in `find $D/usr/share/fonts/X11 -type d`; do + for fontdir in `find $D/usr/share/fonts/X11 -type d 2>/dev/null`; do mkfontdir $fontdir mkfontscale $fontdir done -- 2.17.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#138009): https://lists.openembedded.org/g/openembedded-core/message/138009 Mute This Topic: https://lists.openembedded.org/mt/74046128/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
