Looks like the dhcp dependency is explicit: dhcp->bind->python3
recipes-connectivity/dhcp/dhcp.inc
        DEPENDS = "openssl bind"
recipes-connectivity/bind/bind_9.10.5-P3.bb
        RDEPENDS_${PN} = "python3-core"

In the build area: dhcp/4.3.6-r0/packages-split/dhcp-client.shlibdeps
        dhcp-libs (>= 4.3.6)
        bind (>= 9.10.5-P3)
        glibc (>= 2.26)

Does it mean that python3 cannot be removed from target rootfs?

On the other hand, I see this file in rootfs: /usr/sbin/dnssec-checkds, which 
requires python3 (#! /usr/bin/python3).
I believe this file gets installed from bind_9.10.5-P3.bb

do_install_append() {
        sed -i -e '1s,#!.*python3,#! /usr/bin/python3,' 
${D}${sbindir}/dnssec-coverage ${D}${sbindir}/dnssec-checkds
}

How can I move this file to a different package?

Thanks,
Carlos

-----Original Message-----
From: Khem Raj <raj.k...@gmail.com> 
Sent: Friday, June 22, 2018 11:33 AM
To: Bejar-Colonia, Carlos <carlos.bejar-colo...@philips.com>
Cc: Yocto Project <yocto@yoctoproject.org>
Subject: Re: [yocto] Rocko: how to remove python3 from target's rootfs

On Fri, Jun 22, 2018 at 8:17 AM Bejar-Colonia, Carlos 
<carlos.bejar-colo...@philips.com> 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://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flis
> ts.yoctoproject.org%2Flistinfo%2Fyocto&data=02%7C01%7Ccarlos.bejar-col
> onia%40philips.com%7C61df7be949544db87dd608d5d85573b8%7C1a407a2d76754d
> 178692b3ac285306e4%7C0%7C0%7C636652783876282171&sdata=ufsRBgUTpR%2FkmX
> nFCeMK0DbS27uX9L8z15Y0S3Z%2Bct0%3D&reserved=0
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to