我正试图通过删除映像上未使用的软件包来减小rootfs的大小。 我想删除除libgstapp.so(appsrc / appsink)之外的gstreamer1.0-plugins-base插件,但我为此感到吃力。
我检查了默认安装的软件包:
$ bitbake gstreamer1.0-plugins-base -e |grep ^PACKAGECONFIG
PACKAGECONFIG=" orc alsa gio-unix-2.0 ogg pango theora vorbis "
PACKAGECONFIG_CONFARGS=" --enable-alsa --disable-cdparanoia --disable-debug --enable-gio_unix_2_0 --disable-ivorbis --enable-ogg --disable-opus --enable-orc --enable-pango --enable-theora --disable-valgrind --disable-libvisual --enable-vorbis --disable-x --disable-xvideo --disable-xshm"
然后,我尝试使用bbappend删除一些软件包,但没有成功。像下面这样的简单bbappend会抛出错误。
#PACKAGECONFIG_remove = " alsa"
错误:
ERROR: image-1.0-r0 do_rootfs: Error executing a python function in exec_python_func() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:license_create_manifest(d)
0003:
File: '/mnt/data/home/user/workdir/poky-pyro/meta/classes/license.bbclass', lineno: 48, function: license_create_manifest
0044: pkg_dic = {}
0045: for pkg in sorted(image_list_installed_packages(d)):
0046: pkg_info = os.path.join(d.getVar('PKGDATA_DIR'),
0047: 'runtime-reverse', pkg)
*** 0048: pkg_name = os.path.basename(os.readlink(pkg_info))
0049:
0050: pkg_dic[pkg_name] = oe.packagedata.read_pkgdatafile(pkg_info)
0051: if not "LICENSE" in pkg_dic[pkg_name].keys():
0052: pkg_lic_name = "LICENSE_" + pkg_name
Exception: FileNotFoundError: [Errno 2] No such file or directory: '/mnt/data/home/user/workdir/poky-pyro/build/tmp/pkgdata/machine-mx6/runtime-reverse/gstreamer1.0-plugins-base-alsa'
ERROR: image-1.0-r0 do_rootfs: Function failed: license_create_manifest
ERROR: Logfile of failure stored in: /mnt/data/home/user/workdir/poky-pyro/build/tmp/work/machine_mx6-poky-linux-gnueabi/image/1.0-r0/temp/log.do_rootfs.13378
ERROR: Task (/mnt/data/home/user/workdir/poky-pyro/my-meta/recipes-core/images/image.bb:do_rootfs) failed with exit code '1'
能给我一些帮助吗?
更新
我找到了一种方法,只需正确设置我的食谱之一的RDEPENDS:
RDEPENDS_${PN}=" gstreamer1.0-plugins-base-app "