* useradd: Add missing DEPEND on shadow
@ 2011-11-10 0:03 Richard Purdie
2012-02-19 7:29 ` McClintock Matthew-B29882
0 siblings, 1 reply; 5+ messages in thread
From: Richard Purdie @ 2011-11-10 0:03 UTC (permalink / raw)
To: openembedded-core
Without this rootfs generation fails as an RDEPENDS is added
but the package might not have bneen built.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
index 8cd7f4f..7faf1a7 100644
--- a/meta/classes/useradd.bbclass
+++ b/meta/classes/useradd.bbclass
@@ -2,7 +2,7 @@
# target sysroot, and shadow -native and -sysroot provide the utilities
# and support files needed to add and modify user and group accounts
DEPENDS_append = "${USERADDDEPENDS}"
-USERADDDEPENDS = " base-passwd shadow-native shadow-sysroot"
+USERADDDEPENDS = " base-passwd shadow-native shadow-sysroot shadow"
USERADDDEPENDS_virtclass-nativesdk = ""
# This preinstall function will be run in two contexts: once for the
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: useradd: Add missing DEPEND on shadow
2011-11-10 0:03 useradd: Add missing DEPEND on shadow Richard Purdie
@ 2012-02-19 7:29 ` McClintock Matthew-B29882
2012-02-19 11:51 ` Paul Menzel
2012-02-19 15:08 ` Richard Purdie
0 siblings, 2 replies; 5+ messages in thread
From: McClintock Matthew-B29882 @ 2012-02-19 7:29 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer, Richard Purdie
On Wed, Nov 9, 2011 at 4:03 PM, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> Without this rootfs generation fails as an RDEPENDS is added
> but the package might not have bneen built.
>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> ---
> diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
> index 8cd7f4f..7faf1a7 100644
> --- a/meta/classes/useradd.bbclass
> +++ b/meta/classes/useradd.bbclass
> @@ -2,7 +2,7 @@
> # target sysroot, and shadow -native and -sysroot provide the utilities
> # and support files needed to add and modify user and group accounts
> DEPENDS_append = "${USERADDDEPENDS}"
> -USERADDDEPENDS = " base-passwd shadow-native shadow-sysroot"
> +USERADDDEPENDS = " base-passwd shadow-native shadow-sysroot shadow"
The shadow recipe is a 'PACKAGE_ARCH = "${MACHINE_ARCH}"' recipe. This
makes all recipes that inherit useradd depend on shadow which will
depend on the MACHINE being built for. Ideally, we just need a way to
ensure these packages are deployed - we don't want them to effect
signatures.
Can you suggest a better fix here? Some
bb.exec_func("shadow:do_populate_sysroot") or something equivalent?
-M
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: useradd: Add missing DEPEND on shadow
2012-02-19 7:29 ` McClintock Matthew-B29882
@ 2012-02-19 11:51 ` Paul Menzel
2012-02-19 15:08 ` Richard Purdie
1 sibling, 0 replies; 5+ messages in thread
From: Paul Menzel @ 2012-02-19 11:51 UTC (permalink / raw)
To: openembedded-core; +Cc: McClintock Matthew-B29882
[-- Attachment #1: Type: text/plain, Size: 1394 bytes --]
Am Sonntag, den 19.02.2012, 07:29 +0000 schrieb McClintock Matthew-B29882:
> On Wed, Nov 9, 2011 at 4:03 PM, Richard Purdie wrote:
> > Without this rootfs generation fails as an RDEPENDS is added
> > but the package might not have bneen built.
s/bneen/been/
> > Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> > ---
> > diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
> > index 8cd7f4f..7faf1a7 100644
> > --- a/meta/classes/useradd.bbclass
> > +++ b/meta/classes/useradd.bbclass
> > @@ -2,7 +2,7 @@
> > # target sysroot, and shadow -native and -sysroot provide the utilities
> > # and support files needed to add and modify user and group accounts
> > DEPENDS_append = "${USERADDDEPENDS}"
> > -USERADDDEPENDS = " base-passwd shadow-native shadow-sysroot"
> > +USERADDDEPENDS = " base-passwd shadow-native shadow-sysroot shadow"
>
> The shadow recipe is a 'PACKAGE_ARCH = "${MACHINE_ARCH}"' recipe. This
> makes all recipes that inherit useradd depend on shadow which will
> depend on the MACHINE being built for. Ideally, we just need a way to
> ensure these packages are deployed - we don't want them to effect
> signatures.
>
> Can you suggest a better fix here? Some
> bb.exec_func("shadow:do_populate_sysroot") or something equivalent?
You raise a good point, but I have no solution.
Thanks,
Paul
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: useradd: Add missing DEPEND on shadow
2012-02-19 7:29 ` McClintock Matthew-B29882
2012-02-19 11:51 ` Paul Menzel
@ 2012-02-19 15:08 ` Richard Purdie
2012-02-19 18:22 ` McClintock Matthew-B29882
1 sibling, 1 reply; 5+ messages in thread
From: Richard Purdie @ 2012-02-19 15:08 UTC (permalink / raw)
To: McClintock Matthew-B29882; +Cc: Patches and discussions about the oe-core layer
On Sun, 2012-02-19 at 07:29 +0000, McClintock Matthew-B29882 wrote:
> On Wed, Nov 9, 2011 at 4:03 PM, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
> > Without this rootfs generation fails as an RDEPENDS is added
> > but the package might not have bneen built.
> >
> > Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> > ---
> > diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
> > index 8cd7f4f..7faf1a7 100644
> > --- a/meta/classes/useradd.bbclass
> > +++ b/meta/classes/useradd.bbclass
> > @@ -2,7 +2,7 @@
> > # target sysroot, and shadow -native and -sysroot provide the utilities
> > # and support files needed to add and modify user and group accounts
> > DEPENDS_append = "${USERADDDEPENDS}"
> > -USERADDDEPENDS = " base-passwd shadow-native shadow-sysroot"
> > +USERADDDEPENDS = " base-passwd shadow-native shadow-sysroot shadow"
>
> The shadow recipe is a 'PACKAGE_ARCH = "${MACHINE_ARCH}"' recipe. This
> makes all recipes that inherit useradd depend on shadow which will
> depend on the MACHINE being built for. Ideally, we just need a way to
> ensure these packages are deployed - we don't want them to effect
> signatures.
>
> Can you suggest a better fix here? Some
> bb.exec_func("shadow:do_populate_sysroot") or something equivalent?
This was already fixed:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=7c8899662be5623bedaa9a848fafebeafb348cf0
and the new machine specific subpackage is excluded from sstate's
signatures.
Cheers,
Richard
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: useradd: Add missing DEPEND on shadow
2012-02-19 15:08 ` Richard Purdie
@ 2012-02-19 18:22 ` McClintock Matthew-B29882
0 siblings, 0 replies; 5+ messages in thread
From: McClintock Matthew-B29882 @ 2012-02-19 18:22 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: McClintock Matthew-B29882
On Sun, Feb 19, 2012 at 7:08 AM, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> On Sun, 2012-02-19 at 07:29 +0000, McClintock Matthew-B29882 wrote:
>> On Wed, Nov 9, 2011 at 4:03 PM, Richard Purdie
>> <richard.purdie@linuxfoundation.org> wrote:
>> > Without this rootfs generation fails as an RDEPENDS is added
>> > but the package might not have bneen built.
>> >
>> > Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
>> > ---
>> > diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
>> > index 8cd7f4f..7faf1a7 100644
>> > --- a/meta/classes/useradd.bbclass
>> > +++ b/meta/classes/useradd.bbclass
>> > @@ -2,7 +2,7 @@
>> > # target sysroot, and shadow -native and -sysroot provide the utilities
>> > # and support files needed to add and modify user and group accounts
>> > DEPENDS_append = "${USERADDDEPENDS}"
>> > -USERADDDEPENDS = " base-passwd shadow-native shadow-sysroot"
>> > +USERADDDEPENDS = " base-passwd shadow-native shadow-sysroot shadow"
>>
>> The shadow recipe is a 'PACKAGE_ARCH = "${MACHINE_ARCH}"' recipe. This
>> makes all recipes that inherit useradd depend on shadow which will
>> depend on the MACHINE being built for. Ideally, we just need a way to
>> ensure these packages are deployed - we don't want them to effect
>> signatures.
>>
>> Can you suggest a better fix here? Some
>> bb.exec_func("shadow:do_populate_sysroot") or something equivalent?
>
> This was already fixed:
>
> http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=7c8899662be5623bedaa9a848fafebeafb348cf0
>
> and the new machine specific subpackage is excluded from sstate's
> signatures.
Ah missed this - thanks.
-M
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-02-19 18:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-10 0:03 useradd: Add missing DEPEND on shadow Richard Purdie
2012-02-19 7:29 ` McClintock Matthew-B29882
2012-02-19 11:51 ` Paul Menzel
2012-02-19 15:08 ` Richard Purdie
2012-02-19 18:22 ` McClintock Matthew-B29882
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox