<html dir="ltr"><head></head><body style="text-align:left; direction:ltr;"><div>On Wed, 2019-11-13 at 12:33 +0100, Vladimir Molokov wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">Hi all,<br></div>
<br>
Here is a strange dependency puzzle:<br>
simple recipe which doesn't inherit image class<br>
gets EXTRA-IMAGEDENDS, kernel, initramfs and so on.<br>
<br>
It's reproducible on latest poky,<br>
I've made a minimal example, all lines are important,<br>
if you remove something, like systemd or attr<br>
it drops all the dependencies<br>
though I didn't find anything wrong in systemd nor in attr recipes.<br>
<br>
Steps to reproduce:<br>
<br>
1. mkdir puzzle && cd puzzle<br>
1. git clone git://<a href="http://git.yoctoproject.org/poky" rel="noreferrer noreferrer" target="_blank">git.yoctoproject.org/poky</a><br>
2. source poky/oe-init-build-env<br>
3. bitbake-layers create-layer meta-puzzle<br>
4. bitbake-layers add-layer meta-puzzle<br>
5. cp meta-puzzle/recipes-example/example/<a href="http://example_0.1.bb" rel="noreferrer noreferrer" target="_blank">example_0.1.bb</a> \<br>
meta-puzzle/recipes-example/example/<a href="http://bad-example_0.1.bb" rel="noreferrer noreferrer" target="_blank">bad-example_0.1.bb</a><br>
<br>
6. mkdir -p meta-puzzle/conf/distro<br>
<br>
7. printf "require conf/distro/poky.conf\n\n\<br>
DISTRO = \"extra-img-dep-test\" \n\<br>
DISTRO_NAME = \"Extra image dependency test\"\n\<br>
DISTRO_VERSION = \"0.1\"\n\n\<br>
DISTRO_FEATURES_append = \"systemd\"\n"\<br>
> meta-puzzle/conf/distro/extra-img-dep-test.conf<br>
<br>
7. printf "MACHINE ?= \"qemux86\"\n\<br>
DISTRO ?= \"extra-img-dep-test\"\n\n\<br>
EXTRA_IMAGEDEPENDS += \"bad-example\"\n\n\<br>
INITRAMFS_IMAGE = \"core-image-minimal\"\n"\<br>
> conf/local.conf<br>
<br>
8. echo 'DEPENDS = "attr"' >> \<br>
meta-puzzle/recipes-example/example/<a href="http://example_0.1.bb" rel="noreferrer noreferrer" target="_blank">example_0.1.bb</a><br>
<br>
9. bitbake -g example && grep bad-example task-depends.dot<br></div></div></blockquote><div><br></div><div>can you share this dot file ?</div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="auto"><div class="gmail_quote" dir="auto">
<br>
10. see dependencies on 'bad-example'..<br>
<br>
Will be very grateful if anybody point out<br>
what is wrong with this setup.<br>
<br>
I've talked with people struggling with similar problem<br>
and nobody was able to solve it so far<br>
and I myself stumbled in it in a couple of projects.<br>
<br>
BR,<br>
Vladimir.<br>
</div></div>
</blockquote></body></html>