我正在尝试在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} ="已安装vs已发货"
当我这样做时,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*"
但它并没有解决我的问题。
答案 0 :(得分:6)
我遇到过这个问题,似乎是由于在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
的评论。
答案 1 :(得分:3)
与其添加像这样的发行版功能:
DISTRO_FEATURES += "feature"
请尝试:
DISTRO_FEATURES_append = " feature"
我的conf / local.conf中的第一句话是覆盖?=定义,例如DISTRO_FEATURES_LIBC。