gpt4 book ai didi

yocto - 已安装Yocto glibc-locale do_package,但未以任何软件包提供

转载 作者:行者123 更新时间:2023-12-04 13:46:33 30 4
gpt4 key购买 nike

我正在尝试在yocto上构建自定义图像。创建镜像时,出现glibc-locale错误(do_package步骤)。

错误是

ERROR: glibc-locale-2.24-r0 do_package: QA Issue: glibc-locale: Files/directories were installed but not shipped in any package:
{
"a lot of file in /usr/lib/gconv, /usr/share/i18n paths"
}
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
glibc-locale: 820 installed and not shipped files. [installed-vs-shipped]
ERROR: glibc-locale-2.24-r0 do_package: Fatal QA errors found, failing task.
ERROR: glibc-locale-2.24-r0 do_package: Function failed: do_package
ERROR: Logfile of failure stored in: /home/test/rpi/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/glibc-locale/2.24-r0/temp/log.do_package.30243
ERROR: Task (/home/test/poky-morty/meta/recipes-core/glibc/glibc-locale_2.24.bb:do_package) failed with exit code '1'

我试图解决它,在glibc-locale_2.24.bb文件中添加了以下内容:

INSANE_SKIP_${PN} = "installed-vs-shipped "



当我这样做时,glibc do_package步骤中不再有错误,但do_rootfs步骤中却有一个错误:
 ERROR: ekt-image-1.0-r0 do_rootfs: Unable to install packages. Command '/home/test/rpi/build/tmp/sysroots/x86_64-linux/usr/bin/opkg --volatile-cache -f /home/test/rpi/build/tmp/work/raspberrypi3-poky-linux-gnueabi/ekt-image/1.0-r0/opkg.conf -t /home/test/rpi/build/tmp/work/raspberrypi3-poky-linux-gnueabi/ekt-image/1.0-r0/temp/ipktemp/ -o /home/test/rpi/build/tmp/work/raspberrypi3-poky-linux-gnueabi/ekt-image/1.0-r0/rootfs  --force_postinstall --prefer-arch-to-version   install locale-base-en-us' returned 255:
Collected errors:
* opkg_prepare_url_for_install: Couldn't find anything to satisfy 'locale-base-en-us'.

ERROR: ekt-image-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/test/rpi/build/tmp/work/raspberrypi3-poky-linux-gnueabi/ekt-image/1.0-r0/temp/log.do_rootfs.10085
ERROR: Task (/home/test/rpi/meta-rpi/images/ekt-image.bb:do_rootfs) failed with exit code '1'

我试图清除glibc,glibc-locale的状态,但是它不起作用。

编辑:我试图将这些行添加到我的glibc-locale.inc文件中:
FILES_kernel-base += "/usr/share/i18n/charmaps/*"
FILES_kernel-base += "/usr/share/i18n/locales/*"
FILES_kernel-base += "/usr/lib/gconv/*"
FILES_kernel-base += "/usr/share/i18n*"

还有这些行:
FILES_${PN} += "/usr/share/i18n/charmaps/*"
FILES_${PN} += "/usr/share/i18n/locales/*"
FILES_${PN} += "/usr/lib/gconv/*"
FILES_${PN} += "/usr/share/i18n*"

但这不能解决我的问题。

最佳答案

我遇到了这个问题,这似乎是由于在DISTRO_FEATURES中遗漏了glibc选项所导致的。如果要重新定义DISTRO_FEATURES,请确保在其定义中包括${DISTRO_FEATURES_LIBC}

请参阅Yocto邮件列表上的Re: [yocto] Problem building glibc-locale

另请参阅openembedded-core/local.conf.sample.extended at master · openembedded/openembedded-core中有关DISTRO_FEATURES_LIBC的注释。

关于yocto - 已安装Yocto glibc-locale do_package,但未以任何软件包提供,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41937565/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com