Re: [yocto] RDEPENDS and do_rootfs

2019-02-01 Thread Darcy Watkins
Hi, In my case, package A creates groups a1, a2 and a3. B is actually a family of packages B1, B2 and B3 that each create user b1, b2, or b3 respectively, but also adds the new user to groups a1, a2 and/or a3. So in this case, it is necessary that package A first be installed AND that its post-i

Re: [yocto] RDEPENDS and do_rootfs

2019-01-31 Thread Burton, Ross
Ah in that case there's been a lot of work since daisy to useradd etc. Ross On Thu, 31 Jan 2019 at 15:51, Darcy Watkins wrote: > > Hi, > > In my case, package A creates groups a1, a2 and a3. > > B is actually a family of packages B1, B2 and B3 that each create user > b1, b2, or b3 respectively,

Re: [yocto] RDEPENDS and do_rootfs

2019-01-31 Thread Burton, Ross
Forgot to say, Bitbake's dependency model is loosely based on Debian's so the Debian Policy is a good read for semantics: https://www.debian.org/doc/debian-policy/ch-relationships.html#binary-dependencies-depends-recommends-suggests-enhances-pre-depends Debian's "Depends" is our "RDEPENDS", what

Re: [yocto] RDEPENDS and do_rootfs

2019-01-31 Thread Burton, Ross
On Thu, 31 Jan 2019 at 07:01, Hopp, Denis wrote: > I cannot assure you of that specific case but to my understanding you could > find out with the taskexp: > > bitbake -g -u taskexp > There you will have a graphical interface to explore your package > dependencies and which task will be execute

Re: [yocto] RDEPENDS and do_rootfs

2019-01-31 Thread Burton, Ross
Presumably the problem here is that you've a maintainer script (preinst or postinst) in B that needs a binary/library from A, and is failing because B's postinst is running before A is unpacked? If not, please clarify, otherwise the problem is that DEPENDS just talks about the final solution. If

Re: [yocto] RDEPENDS and do_rootfs

2019-01-30 Thread Hopp, Denis
Hi Darcy, I cannot assure you of that specific case but to my understanding you could find out with the taskexp: bitbake -g -u taskexp There you will have a graphical interface to explore your package dependencies and which task will be executed before another. Hope that helps. Greetings, D

[yocto] RDEPENDS and do_rootfs

2019-01-30 Thread Darcy Watkins
Hi, Can someone knowledgeable with the inner workings of the build system please confirm... IF package B has RDEPENDS on package A THEN during do_rootfs task, package A will always be installed into rootfs first AND the post-inst scripts of package A will always be run prior to those for package