[yocto] Rocko: how to remove python3 from target's rootfs
Hello Yocto Team, I've upgraded my Yocto system from Morty to Rocko and I've noticed that python3 gets installed in the rootfs, which I don't want (it takes a lot disk space) I've noticed that when I add dhcp-client package to the rootfs (CORE_IMAGE_EXTRA_INSTALL += "dhcp-client"), python3 gets installed as well. However, with Morty, python3 does not get installed in the rootfs after adding dhcp-client pakage. Probably someone has already done this, but I was not able to figure it out. I tried: IMAGE_INSTALL_remove += "python3-core", didn't help. Any hints on how to remove python3 from the target's rootfs (without removing dhcp-client)? Thanks, Carlos The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message. -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Rocko: how to remove python3 from target's rootfs
On Fri, Jun 22, 2018 at 8:17 AM Bejar-Colonia, Carlos wrote: > > Hello Yocto Team, > > > > I’ve upgraded my Yocto system from Morty to Rocko and I’ve noticed that > python3 gets installed in the rootfs, which I don’t want (it takes a lot disk > space) > > I’ve noticed that when I add dhcp-client package to the rootfs > (CORE_IMAGE_EXTRA_INSTALL += "dhcp-client"), python3 gets installed as well. > > However, with Morty, python3 does not get installed in the rootfs after > adding dhcp-client pakage. > > > > Probably someone has already done this, but I was not able to figure it out. > I tried: IMAGE_INSTALL_remove += "python3-core", didn’t help. > > Any hints on how to remove python3 from the target’s rootfs (without removing > dhcp-client)? when there are scripts in packages which requires a certain kind of interpreter e.g. perl. python. bash, sh etc. system can autodetect that if interpreter is specified in first line of script and add the appropriate runtime dependency, since this script otherwise will be useless on target. I suspect build for dhcp is adding such a file into dhcp-client package which might be resulting in this implicit dep. So please check it in the build area for dhcp especially under packages-split/dhcp-client for any such scripts. if there are any and you find that these scripts are not required for normal functioning of dhcp-client on target then move this script out into another package where it might be more appropriate, that can eliminate this rdep > > > > Thanks, > > Carlos > > > > > > > > The information contained in this message may be confidential and legally > protected under applicable law. The message is intended solely for the > addressee(s). If you are not the intended recipient, you are hereby notified > that any use, forwarding, dissemination, or reproduction of this message is > strictly prohibited and may be unlawful. If you are not the intended > recipient, please contact the sender by return e-mail and destroy all copies > of the original message. > -- > ___ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Adding GCC to system root image
Try Removing line: IMAGE_INSTALL +="opkg" from poky/meta-qti-bsp/recipies-products/images/ BASE_IMAGE.inc Thanks! Prakash On Thu, Jun 21, 2018 at 6:59 PM Khem Raj wrote: > On Thu, Jun 21, 2018 at 4:02 PM Krishna Priya > wrote: > > > > Hello all, > > > > I am trying to add gcc to the system image by modifying the following > files. > > poky/meta-qti-bsp/recipies-products/images/ BASE_IMAGE.inc > > > > + IMAGE_INSTALL +="opkg" > > + IMAGE_INSTALL +="packagegroup-core-buildessential" > > > > poky/build/conf/local.conf > > + EXTRA_IMAGE_FEATURES = "tools-sdk dev-pkgs" > > > > When I build the whole image, I get the following errors : > > update-alternatives: Error: cannot register alternative cmp to /bin/cmp > since it is already registered to /usr/bin/cmp > > update-alternatives: Error: cannot register alternative diff to > /bin/diff since it is already registered to /usr/bin/diff > > update-alternatives: Error: cannot register alternative cmp to /bin/cmp > since it is already registered to /usr/bin/cmp > > update-alternatives: Error: cannot register alternative diff to > /bin/diff since it is already registered to /usr/bin/diff > > update-alternatives: Error: cannot register alternative ar to > /usr/bin/ar since it is already registered to /bin/ar > > update-alternatives: Error: cannot register alternative strings to > /usr/bin/strings since it is already registered to /bin/strings > > . > > . > > . > > . > > . > > ERROR: Multilib check error: duplicate files > poky/build/tmp-glibc/work/XXX80XX-oe-linux/machine-drone-image/1.0-r0/multilib/lib32/usr/include/fpu_control.h > poky/build/tmp-glibc/work/XXX80XX-oe-linux/machine-drone-image/1.0-r0/rootfs/usr/include/fpu_control.h > is not the same > > ERROR: Multilib check error: duplicate files > poky/build/tmp-glibc/work/XX80XX-oe-linux/machine-drone-image/1.0-r0/multilib/lib32/usr/include/fpu_control.h > poky/build/tmp-glibc/work/apq8096-oe-linux/machine-drone-image/1.0-r0/rootfs/usr/include/fpu_control.h > is not the same > > ERROR: Function failed: do_rootfs > > > > Please let me know the workaround to solve this error. Thanks. > > perhaps providing more information about which target arch and which > release etc. would be helpful. > If you post Build Configuration thats emitted by bitbake at beginning > of build, it provides good information on baseline. > > > Regards, > > -Priya. > > -- > > ___ > > yocto mailing list > > yocto@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/yocto > -- > ___ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto > -- Thanks and Regards, Prakash K S +91 9620140303 -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto