Linux 如何列出使用oe核心构建的目标rootfs中安装的包?
为了记录的目的,Linux 如何列出使用oe核心构建的目标rootfs中安装的包?,linux,openembedded,Linux,Openembedded,为了记录的目的, 我正在寻找有效的方法来列出使用oe core构建的目标rootfs中安装的包。将构建历史添加到local.conf中的USER_CLASSES变量中 用户_类?=“构建历史记录” 重新运行构建后,请在构建/构建历史中查看更多信息 您可能需要强制重建以正确填充目录。用户类?=“buildname image mklibs image prelink buildhistory” 错误:在/opt/apps_proc/oe core/meta/recipes core/eglibc/
我正在寻找有效的方法来列出使用oe core构建的目标rootfs中安装的包。将构建历史添加到local.conf中的USER_CLASSES变量中 用户_类?=“构建历史记录” 重新运行构建后,请在构建/构建历史中查看更多信息 您可能需要强制重建以正确填充目录。用户类?=“buildname image mklibs image prelink buildhistory” 错误:在/opt/apps_proc/oe core/meta/recipes core/eglibc/eglibc_2.17.bb中执行python函数时出错: 导致此异常/失败的python调用的堆栈跟踪为: 文件:“buildhistory\u emit\u pkghistory”,行号:216,函数:
0212:
0213: write_pkghistory(pkginfo, d)
0214:
0215:
***0216:buildhistory_emit_pkghistory(d)
0217:
文件:“buildhistory\u emit\u pkghistory”,行号:207,函数:buildhistory\u emit\u pkghistory
0203: filelist = []
0204: pkginfo.size = 0
0205: for f in pkgfiles[pkg]:
0206: relpth = os.path.relpath(f, pkgdestpkg)
***0207: fstat = os.lstat(f)
0208: pkginfo.size += fstat.st_size
0209: filelist.append(os.sep + relpth)
0210: filelist.sort()
0211: pkginfo.filelist = " ".join(filelist)
例外:OSError:[Errno 2]没有这样的文件或目录:'/opt/apps_proc/oe core/build/tmp eglibc/work/armv7a vfp neon oe linux gnueabi/eglibc/2.17-r3/packages split/eglibc thread db/lib/libthread_db-1.0.so'
错误:函数失败:buildhistory\u emit\u pkghistory映像中安装的软件包列表存储在清单文件中(除了前面提到的构建历史记录)
0203: filelist = []
0204: pkginfo.size = 0
0205: for f in pkgfiles[pkg]:
0206: relpth = os.path.relpath(f, pkgdestpkg)
***0207: fstat = os.lstat(f)
0208: pkginfo.size += fstat.st_size
0209: filelist.append(os.sep + relpth)
0210: filelist.sort()
0211: pkginfo.filelist = " ".join(filelist)
清单文件的内容如下所示:
alsa-conf cortexa7hf-neon-vfpv4 1.1.2-r0.1
alsa-conf-base cortexa7hf-neon-vfpv4 1.1.2-r0.1
alsa-lib cortexa7hf-neon-vfpv4 1.1.2-r0.1
alsa-states cortexa7hf-neon-vfpv4 0.2.0-r5.1
alsa-utils-alsactl cortexa7hf-neon-vfpv4 1.1.2-r0.5
alsa-utils-alsamixer cortexa7hf-neon-vfpv4 1.1.2-r0.5
...
该列表包括包名、体系结构和版本
该清单位于部署目录中(即deploy/images/${MACHINE}/
)。这里是目录列表的示例(有目标图像和清单文件)