Re: [yocto] How to use same user in two recipes?

2019-02-11 Thread Ulf Samuelsson
Den 2017-10-10 kl. 23:30, skrev Fabien Lahoudere: Hi I want to use the same user in two different recipe. I create the user in recipe A.bb and it works fine. Now I want to use the same user in B.bb so I add DEPENDS = "A" thinking that sysroot will be populated with A.bb users. But when I

Re: [yocto] How to use same user in two recipes?

2017-10-12 Thread Maxin B. John
Hi Fabien, Good to know that it helps here. On Wed, Oct 11, 2017 at 07:48:46PM +0200, Fabien Lahoudere wrote: > Maxin, > > Is this patch submitted or applied for next release? Submitted the patch to oe-core mailing list today:

Re: [yocto] How to use same user in two recipes?

2017-10-11 Thread Fabien Lahoudere
Thanks a lot Maxin Your patch fix the issue. \o/ On Wed, 2017-10-11 at 14:37 +0300, Maxin B. John wrote: > Hi Fabien, > > On Wed, 2017-10-11 at 13:06 +0300, Henrik Lindblom wrote: > > > I think you'll want RDEPENDS instead of DEPENDS in your recipe. DEPENDS > > > implies build time > > >

Re: [yocto] How to use same user in two recipes?

2017-10-11 Thread Maxin B. John
Hi Fabien, On Wed, 2017-10-11 at 13:06 +0300, Henrik Lindblom wrote: >> I think you'll want RDEPENDS instead of DEPENDS in your recipe. DEPENDS >> implies build time >> dependencies (e.g. libraries) while RDEPENDS actually gets the component >> installed as a runtime >> dependency. >> >Thanks

Re: [yocto] How to use same user in two recipes?

2017-10-11 Thread Burton, Ross
For this you definitely want DEPENDS. Read the do_prepare_sysroot log to for the recipe you're building, it might have an error that isn't causing the build to fail. Ross On 11 October 2017 at 11:18, Fabien Lahoudere < fabien.lahoud...@collabora.co.uk> wrote: > On Wed, 2017-10-11 at 13:06

Re: [yocto] How to use same user in two recipes?

2017-10-11 Thread Fabien Lahoudere
On Wed, 2017-10-11 at 13:06 +0300, Henrik Lindblom wrote: > I think you'll want RDEPENDS instead of DEPENDS in your recipe. DEPENDS > implies build time > dependencies (e.g. libraries) while RDEPENDS actually gets the component > installed as a runtime > dependency. > Thanks Henrik I tried to

Re: [yocto] How to use same user in two recipes?

2017-10-11 Thread Henrik Lindblom
I think you'll want RDEPENDS instead of DEPENDS in your recipe. DEPENDS implies build time dependencies (e.g. libraries) while RDEPENDS actually gets the component installed as a runtime dependency. On Wed, Oct 11, 2017 at 12:16 PM, Fabien Lahoudere < fabien.lahoud...@collabora.co.uk> wrote: >

Re: [yocto] How to use same user in two recipes?

2017-10-11 Thread Fabien Lahoudere
FI, with bitbake testuser -c devshell # cat ../1.0-r1/recipe-sysroot/etc/passwd  root::0:0:root:/root:/bin/sh daemon:*:1:1:daemon:/usr/sbin:/bin/sh bin:*:2:2:bin:/bin:/bin/sh sys:*:3:3:sys:/dev:/bin/sh sync:*:4:65534:sync:/bin:/bin/sync games:*:5:60:games:/usr/games:/bin/sh

Re: [yocto] How to use same user in two recipes?

2017-10-11 Thread Burton, Ross
Looks like the useradd-example recipe isn't working properly. Check the contents of the files in the sysroot to see if it did the right thing, and for errors in the recipe's logs. On 11 October 2017 at 10:10, Fabien Lahoudere < fabien.lahoud...@collabora.co.uk> wrote: > Thanks Ross > > The

Re: [yocto] How to use same user in two recipes?

2017-10-11 Thread Fabien Lahoudere
Thanks Ross The problem is that it fails with Pyro and also with oe-core master: I use recipe in meta-skeleton/recipes-skeleton/useradd/ to create users and the following testuser.bb: testuser.bb-

Re: [yocto] How to use same user in two recipes?

2017-10-11 Thread Fabien Lahoudere
On Tue, 2017-10-10 at 15:31 -0700, aaron_wri...@selinc.com wrote: > > Hi > > >  > > > I want to use the same user in two different recipe.  > > > I create the user in recipe A.bb and it works fine. > > > Now I want to use the same user in B.bb so I add DEPENDS = "A" > > > > thinking that

Re: [yocto] How to use same user in two recipes?

2017-10-10 Thread Aaron_Wright
> Hi > > I want to use the same user in two different recipe. > I create the user in recipe A.bb and it works fine. > Now I want to use the same user in B.bb so I add DEPENDS = "A" > thinking that sysroot will be > populated with A.bb users. > > But when I bitbake the recipe, user is not

[yocto] How to use same user in two recipes?

2017-10-10 Thread Fabien Lahoudere
Hi I want to use the same user in two different recipe.  I create the user in recipe A.bb and it works fine. Now I want to use the same user in B.bb so I add DEPENDS = "A" thinking that sysroot will be populated with A.bb users. But when I bitbake the recipe, user is not found.  I conclude that

[yocto] How to use same user in two recipes?

2017-10-10 Thread Fabien Lahoudere
Hello I want to use the same user in two different recipe.  I create the user in recipe A.bb and it works fine. Now I want to use the same user in B.bb so I add DEPENDS = "A" thinking that sysroot will be populated with A.bb users. But when I bitbake the recipe, user is not found.  I conclude