* [PATCH 1/2] poky-tiny.conf: add extra libc features [not found] <cover.1373438138.git.Qi.Chen@windriver.com> @ 2013-07-10 6:37 ` Qi.Chen 2013-07-10 8:30 ` Paul Eggleton 2013-07-10 6:39 ` [PATCH 2/2] local.conf.sample.extended: add USER_GROUP_SETTINGS Qi.Chen 1 sibling, 1 reply; 7+ messages in thread From: Qi.Chen @ 2013-07-10 6:37 UTC (permalink / raw) To: poky; +Cc: qingtao.cao From: Chen Qi <Qi.Chen@windriver.com> Add two extra libc features, libc-spawn and libc-rcmd, as they are needed to successfully compile the shadow package which is needed if we set USER_GROUP_SETTIGNS in some configuration file. [YOCTO #4074] Signed-off-by: Chen Qi <Qi.Chen@windriver.com> --- meta-yocto/conf/distro/poky-tiny.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-yocto/conf/distro/poky-tiny.conf b/meta-yocto/conf/distro/poky-tiny.conf index 755667f..9d9ea3c 100644 --- a/meta-yocto/conf/distro/poky-tiny.conf +++ b/meta-yocto/conf/distro/poky-tiny.conf @@ -62,7 +62,7 @@ ASSUME_PROVIDED += "pkgconfig$" # Reconfigure eglibc for a smaller installation # Comment out any of the lines below to disable them in the build -DISTRO_FEATURES_LIBC_TINY = "libc-libm libc-crypt" +DISTRO_FEATURES_LIBC_TINY = "libc-libm libc-crypt libc-spawn libc-rcmd" DISTRO_FEATURES_LIBC_TINY_append_x86-64 = " libc-libm-big" # Required for "who" -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] poky-tiny.conf: add extra libc features 2013-07-10 6:37 ` [PATCH 1/2] poky-tiny.conf: add extra libc features Qi.Chen @ 2013-07-10 8:30 ` Paul Eggleton 2013-07-10 9:12 ` ChenQi 0 siblings, 1 reply; 7+ messages in thread From: Paul Eggleton @ 2013-07-10 8:30 UTC (permalink / raw) To: Qi.Chen, Hart, Darren; +Cc: qingtao.cao, poky Hi Qi / Darren, On Wednesday 10 July 2013 14:37:12 Qi.Chen@windriver.com wrote: > From: Chen Qi <Qi.Chen@windriver.com> > > Add two extra libc features, libc-spawn and libc-rcmd, as they are > needed to successfully compile the shadow package which is needed > if we set USER_GROUP_SETTIGNS in some configuration file. > > [YOCTO #4074] > > Signed-off-by: Chen Qi <Qi.Chen@windriver.com> > --- > meta-yocto/conf/distro/poky-tiny.conf | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/meta-yocto/conf/distro/poky-tiny.conf > b/meta-yocto/conf/distro/poky-tiny.conf index 755667f..9d9ea3c 100644 > --- a/meta-yocto/conf/distro/poky-tiny.conf > +++ b/meta-yocto/conf/distro/poky-tiny.conf > @@ -62,7 +62,7 @@ ASSUME_PROVIDED += "pkgconfig$" > > # Reconfigure eglibc for a smaller installation > # Comment out any of the lines below to disable them in the build > -DISTRO_FEATURES_LIBC_TINY = "libc-libm libc-crypt" > +DISTRO_FEATURES_LIBC_TINY = "libc-libm libc-crypt libc-spawn libc-rcmd" > DISTRO_FEATURES_LIBC_TINY_append_x86-64 = " libc-libm-big" > > # Required for "who" Is this really appropriate for poky-tiny? It seems to me it might be orthogonal to the point of poky-tiny which is to be pretty much as light as possible. Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] poky-tiny.conf: add extra libc features 2013-07-10 8:30 ` Paul Eggleton @ 2013-07-10 9:12 ` ChenQi 2013-07-10 17:33 ` Darren Hart 0 siblings, 1 reply; 7+ messages in thread From: ChenQi @ 2013-07-10 9:12 UTC (permalink / raw) To: Paul Eggleton; +Cc: qingtao.cao, Hart, Darren, poky On 07/10/2013 04:30 PM, Paul Eggleton wrote: > Hi Qi / Darren, > > On Wednesday 10 July 2013 14:37:12 Qi.Chen@windriver.com wrote: >> From: Chen Qi <Qi.Chen@windriver.com> >> >> Add two extra libc features, libc-spawn and libc-rcmd, as they are >> needed to successfully compile the shadow package which is needed >> if we set USER_GROUP_SETTIGNS in some configuration file. >> >> [YOCTO #4074] >> >> Signed-off-by: Chen Qi <Qi.Chen@windriver.com> >> --- >> meta-yocto/conf/distro/poky-tiny.conf | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/meta-yocto/conf/distro/poky-tiny.conf >> b/meta-yocto/conf/distro/poky-tiny.conf index 755667f..9d9ea3c 100644 >> --- a/meta-yocto/conf/distro/poky-tiny.conf >> +++ b/meta-yocto/conf/distro/poky-tiny.conf >> @@ -62,7 +62,7 @@ ASSUME_PROVIDED += "pkgconfig$" >> >> # Reconfigure eglibc for a smaller installation >> # Comment out any of the lines below to disable them in the build >> -DISTRO_FEATURES_LIBC_TINY = "libc-libm libc-crypt" >> +DISTRO_FEATURES_LIBC_TINY = "libc-libm libc-crypt libc-spawn libc-rcmd" >> DISTRO_FEATURES_LIBC_TINY_append_x86-64 = " libc-libm-big" >> >> # Required for "who" > Is this really appropriate for poky-tiny? It seems to me it might be > orthogonal to the point of poky-tiny which is to be pretty much as light as > possible. > > Cheers, > Paul > I added these two extra libc features because I wanted USER_GROUP_SETTINGS to have effect for poky-tiny. For now, because of lack of libc features, adding packages to poky-tiny is likely to fail. So the question here is, are we deciding that poky-tiny equals to 'limited-featured libc + tiny init + busybox"? If so, maybe we need to a mechanism to warn user when they try to add packages to poky-tiny. Besides, removing the libc features doesn't seem to have significant effects on the size of the image. chenqi@pek-qchen1-d1:~/poky$ ls -lh build-tiny/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/lib/libc-2.17.so -rwxr-xr-x 1 chenqi chenqi 1.1M Jul 10 13:49 build-tiny/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/lib/libc-2.17.so chenqi@pek-qchen1-d1:~/poky$ ls -lh build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/lib/libc-2.17.so -rwxr-xr-x 1 chenqi chenqi 1.5M Jul 3 11:23 build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/lib/libc-2.17.so Best Regards, Chen Qi ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] poky-tiny.conf: add extra libc features 2013-07-10 9:12 ` ChenQi @ 2013-07-10 17:33 ` Darren Hart 2013-07-10 19:58 ` Saul Wold 2013-07-11 2:50 ` ChenQi 0 siblings, 2 replies; 7+ messages in thread From: Darren Hart @ 2013-07-10 17:33 UTC (permalink / raw) To: ChenQi; +Cc: qingtao.cao, Paul Eggleton, poky On Wed, 2013-07-10 at 17:12 +0800, ChenQi wrote: > On 07/10/2013 04:30 PM, Paul Eggleton wrote: > > Hi Qi / Darren, > > > > On Wednesday 10 July 2013 14:37:12 Qi.Chen@windriver.com wrote: > >> From: Chen Qi <Qi.Chen@windriver.com> > >> > >> Add two extra libc features, libc-spawn and libc-rcmd, as they are > >> needed to successfully compile the shadow package which is needed > >> if we set USER_GROUP_SETTIGNS in some configuration file. > >> > >> [YOCTO #4074] > >> > >> Signed-off-by: Chen Qi <Qi.Chen@windriver.com> I maintain poky-tiny, please Cc me on patches: Cc: Darren Hart <dvhart@linux.intel.com> > >> --- > >> meta-yocto/conf/distro/poky-tiny.conf | 2 +- > >> 1 file changed, 1 insertion(+), 1 deletion(-) > >> > >> diff --git a/meta-yocto/conf/distro/poky-tiny.conf > >> b/meta-yocto/conf/distro/poky-tiny.conf index 755667f..9d9ea3c 100644 > >> --- a/meta-yocto/conf/distro/poky-tiny.conf > >> +++ b/meta-yocto/conf/distro/poky-tiny.conf > >> @@ -62,7 +62,7 @@ ASSUME_PROVIDED += "pkgconfig$" > >> > >> # Reconfigure eglibc for a smaller installation > >> # Comment out any of the lines below to disable them in the build > >> -DISTRO_FEATURES_LIBC_TINY = "libc-libm libc-crypt" > >> +DISTRO_FEATURES_LIBC_TINY = "libc-libm libc-crypt libc-spawn libc-rcmd" > >> DISTRO_FEATURES_LIBC_TINY_append_x86-64 = " libc-libm-big" > >> > >> # Required for "who" > > Is this really appropriate for poky-tiny? It seems to me it might be > > orthogonal to the point of poky-tiny which is to be pretty much as light as > > possible. > > All such changes should include size delta... > > Cheers, > > Paul > > > I added these two extra libc features because I wanted > USER_GROUP_SETTINGS to have effect for poky-tiny. > > For now, because of lack of libc features, adding packages to poky-tiny > is likely to fail. > So the question here is, are we deciding that poky-tiny equals to > 'limited-featured libc + tiny init + busybox"? If so, maybe we need to a > mechanism to warn user when they try to add packages to poky-tiny. poky-tiny is meant to be a starting point, typically the approach is to create your own distro either derived from or copied and modified from poky-tiny. poky-tiny should remain a bare minimum, in fact, it should probably be made smaller, not larger. > > Besides, removing the libc features doesn't seem to have significant > effects on the size of the image. > > chenqi@pek-qchen1-d1:~/poky$ ls -lh > build-tiny/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/lib/libc-2.17.so > > -rwxr-xr-x 1 chenqi chenqi 1.1M Jul 10 13:49 > build-tiny/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/lib/libc-2.17.so > chenqi@pek-qchen1-d1:~/poky$ ls -lh > build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/lib/libc-2.17.so > > -rwxr-xr-x 1 chenqi chenqi 1.5M Jul 3 11:23 > build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/lib/libc-2.17.so > Am I reading that right? 400k? That's *very* significant when we're building sub 5MB images (including the kernel). Please use "size" instead of "ls -lh" to get a more accurate representation of the space usage. From my Fedora laptop by way of example: $ size libc-2.17.so text data bss dec hex filename 1788428 20840 18944 1828212 1be574 libc-2.17.so Thanks, -- Darren Hart Intel Open Source Technology Center Yocto Project - Technical Lead - Linux Kernel ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] poky-tiny.conf: add extra libc features 2013-07-10 17:33 ` Darren Hart @ 2013-07-10 19:58 ` Saul Wold 2013-07-11 2:50 ` ChenQi 1 sibling, 0 replies; 7+ messages in thread From: Saul Wold @ 2013-07-10 19:58 UTC (permalink / raw) To: ChenQi; +Cc: qingtao.cao, Paul Eggleton, Darren Hart, poky On 07/10/2013 10:33 AM, Darren Hart wrote: > On Wed, 2013-07-10 at 17:12 +0800, ChenQi wrote: >> On 07/10/2013 04:30 PM, Paul Eggleton wrote: >>> Hi Qi / Darren, >>> >>> On Wednesday 10 July 2013 14:37:12 Qi.Chen@windriver.com wrote: >>>> From: Chen Qi <Qi.Chen@windriver.com> >>>> >>>> Add two extra libc features, libc-spawn and libc-rcmd, as they are >>>> needed to successfully compile the shadow package which is needed >>>> if we set USER_GROUP_SETTIGNS in some configuration file. >>>> >>>> [YOCTO #4074] >>>> >>>> Signed-off-by: Chen Qi <Qi.Chen@windriver.com> > > I maintain poky-tiny, please Cc me on patches: > > Cc: Darren Hart <dvhart@linux.intel.com> > >>>> --- >>>> meta-yocto/conf/distro/poky-tiny.conf | 2 +- >>>> 1 file changed, 1 insertion(+), 1 deletion(-) >>>> >>>> diff --git a/meta-yocto/conf/distro/poky-tiny.conf >>>> b/meta-yocto/conf/distro/poky-tiny.conf index 755667f..9d9ea3c 100644 >>>> --- a/meta-yocto/conf/distro/poky-tiny.conf >>>> +++ b/meta-yocto/conf/distro/poky-tiny.conf >>>> @@ -62,7 +62,7 @@ ASSUME_PROVIDED += "pkgconfig$" >>>> >>>> # Reconfigure eglibc for a smaller installation >>>> # Comment out any of the lines below to disable them in the build >>>> -DISTRO_FEATURES_LIBC_TINY = "libc-libm libc-crypt" >>>> +DISTRO_FEATURES_LIBC_TINY = "libc-libm libc-crypt libc-spawn libc-rcmd" >>>> DISTRO_FEATURES_LIBC_TINY_append_x86-64 = " libc-libm-big" >>>> >>>> # Required for "who" >>> Is this really appropriate for poky-tiny? It seems to me it might be >>> orthogonal to the point of poky-tiny which is to be pretty much as light as >>> possible. >>> > > All such changes should include size delta... > >>> Cheers, >>> Paul >>> >> I added these two extra libc features because I wanted >> USER_GROUP_SETTINGS to have effect for poky-tiny. >> >> For now, because of lack of libc features, adding packages to poky-tiny >> is likely to fail. >> So the question here is, are we deciding that poky-tiny equals to >> 'limited-featured libc + tiny init + busybox"? If so, maybe we need to a >> mechanism to warn user when they try to add packages to poky-tiny. > > poky-tiny is meant to be a starting point, typically the approach is to > create your own distro either derived from or copied and modified from > poky-tiny. poky-tiny should remain a bare minimum, in fact, it should > probably be made smaller, not larger. > >> >> Besides, removing the libc features doesn't seem to have significant >> effects on the size of the image. >> >> chenqi@pek-qchen1-d1:~/poky$ ls -lh >> build-tiny/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/lib/libc-2.17.so >> >> -rwxr-xr-x 1 chenqi chenqi 1.1M Jul 10 13:49 >> build-tiny/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/lib/libc-2.17.so >> chenqi@pek-qchen1-d1:~/poky$ ls -lh >> build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/lib/libc-2.17.so >> >> -rwxr-xr-x 1 chenqi chenqi 1.5M Jul 3 11:23 >> build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/lib/libc-2.17.so >> > > Am I reading that right? 400k? That's *very* significant when we're > building sub 5MB images (including the kernel). > > Please use "size" instead of "ls -lh" to get a more accurate > representation of the space usage. From my Fedora laptop by way of > example: > > $ size libc-2.17.so > text data bss dec hex filename > 1788428 20840 18944 1828212 1be574 libc-2.17.so > I am going to NAK this change regardless of the size, I don't think this is the right direction. Sau! > > Thanks, > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] poky-tiny.conf: add extra libc features 2013-07-10 17:33 ` Darren Hart 2013-07-10 19:58 ` Saul Wold @ 2013-07-11 2:50 ` ChenQi 1 sibling, 0 replies; 7+ messages in thread From: ChenQi @ 2013-07-11 2:50 UTC (permalink / raw) To: Darren Hart; +Cc: qingtao.cao, Paul Eggleton, poky Got it. Thanks for your detailed explanation. Regards, Chen Qi On 07/11/2013 01:33 AM, Darren Hart wrote: > On Wed, 2013-07-10 at 17:12 +0800, ChenQi wrote: >> On 07/10/2013 04:30 PM, Paul Eggleton wrote: >>> Hi Qi / Darren, >>> >>> On Wednesday 10 July 2013 14:37:12 Qi.Chen@windriver.com wrote: >>>> From: Chen Qi <Qi.Chen@windriver.com> >>>> >>>> Add two extra libc features, libc-spawn and libc-rcmd, as they are >>>> needed to successfully compile the shadow package which is needed >>>> if we set USER_GROUP_SETTIGNS in some configuration file. >>>> >>>> [YOCTO #4074] >>>> >>>> Signed-off-by: Chen Qi <Qi.Chen@windriver.com> > I maintain poky-tiny, please Cc me on patches: > > Cc: Darren Hart <dvhart@linux.intel.com> > >>>> --- >>>> meta-yocto/conf/distro/poky-tiny.conf | 2 +- >>>> 1 file changed, 1 insertion(+), 1 deletion(-) >>>> >>>> diff --git a/meta-yocto/conf/distro/poky-tiny.conf >>>> b/meta-yocto/conf/distro/poky-tiny.conf index 755667f..9d9ea3c 100644 >>>> --- a/meta-yocto/conf/distro/poky-tiny.conf >>>> +++ b/meta-yocto/conf/distro/poky-tiny.conf >>>> @@ -62,7 +62,7 @@ ASSUME_PROVIDED += "pkgconfig$" >>>> >>>> # Reconfigure eglibc for a smaller installation >>>> # Comment out any of the lines below to disable them in the build >>>> -DISTRO_FEATURES_LIBC_TINY = "libc-libm libc-crypt" >>>> +DISTRO_FEATURES_LIBC_TINY = "libc-libm libc-crypt libc-spawn libc-rcmd" >>>> DISTRO_FEATURES_LIBC_TINY_append_x86-64 = " libc-libm-big" >>>> >>>> # Required for "who" >>> Is this really appropriate for poky-tiny? It seems to me it might be >>> orthogonal to the point of poky-tiny which is to be pretty much as light as >>> possible. >>> > All such changes should include size delta... > >>> Cheers, >>> Paul >>> >> I added these two extra libc features because I wanted >> USER_GROUP_SETTINGS to have effect for poky-tiny. >> >> For now, because of lack of libc features, adding packages to poky-tiny >> is likely to fail. >> So the question here is, are we deciding that poky-tiny equals to >> 'limited-featured libc + tiny init + busybox"? If so, maybe we need to a >> mechanism to warn user when they try to add packages to poky-tiny. > poky-tiny is meant to be a starting point, typically the approach is to > create your own distro either derived from or copied and modified from > poky-tiny. poky-tiny should remain a bare minimum, in fact, it should > probably be made smaller, not larger. > >> Besides, removing the libc features doesn't seem to have significant >> effects on the size of the image. >> >> chenqi@pek-qchen1-d1:~/poky$ ls -lh >> build-tiny/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/lib/libc-2.17.so >> >> -rwxr-xr-x 1 chenqi chenqi 1.1M Jul 10 13:49 >> build-tiny/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/lib/libc-2.17.so >> chenqi@pek-qchen1-d1:~/poky$ ls -lh >> build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/lib/libc-2.17.so >> >> -rwxr-xr-x 1 chenqi chenqi 1.5M Jul 3 11:23 >> build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/lib/libc-2.17.so >> > Am I reading that right? 400k? That's *very* significant when we're > building sub 5MB images (including the kernel). > > Please use "size" instead of "ls -lh" to get a more accurate > representation of the space usage. From my Fedora laptop by way of > example: > > $ size libc-2.17.so > text data bss dec hex filename > 1788428 20840 18944 1828212 1be574 libc-2.17.so > > > Thanks, > ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 2/2] local.conf.sample.extended: add USER_GROUP_SETTINGS [not found] <cover.1373438138.git.Qi.Chen@windriver.com> 2013-07-10 6:37 ` [PATCH 1/2] poky-tiny.conf: add extra libc features Qi.Chen @ 2013-07-10 6:39 ` Qi.Chen 1 sibling, 0 replies; 7+ messages in thread From: Qi.Chen @ 2013-07-10 6:39 UTC (permalink / raw) To: poky; +Cc: qingtao.cao From: Chen Qi <Qi.Chen@windriver.com> Add detailed explanation of USER_GROUP_SETTINGS which is used for image level user/group configuration. [YOCTO #4074] Signed-off-by: Chen Qi <Qi.Chen@windriver.com> --- meta-yocto/conf/local.conf.sample.extended | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/meta-yocto/conf/local.conf.sample.extended b/meta-yocto/conf/local.conf.sample.extended index 07e5cf5..15cbf5e 100644 --- a/meta-yocto/conf/local.conf.sample.extended +++ b/meta-yocto/conf/local.conf.sample.extended @@ -214,3 +214,19 @@ # Remove the old image before the new one generated to save disk space #RM_OLD_IMAGE = "1" + +# Image level user/group settings +# The settings are sperated by ; +# Each setting has three fields. +# <USER/GROUP>: this setting applies for user or group, possible values are USER and GROUP. +# <ACTION>: possible values are ADD, DELELE and MODIFY +# <OPT>: options for useradd/groupadd, userdel/groupdel or usermod/groupmod. +# e.g. +# USER_GROUP_SETTINGS = "\ +# USER,ADD,-p '' tester; \ +# GROUP,ADD,testers; \ +# USER,DEL,nobody; \ +# GROUP,DEL,-g video; \ +# GROUP,MOD,-g 1020 testers; \ +# USER,MOD,-s /bin/sh tester; \ +# " -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-07-11 2:50 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <cover.1373438138.git.Qi.Chen@windriver.com>
2013-07-10 6:37 ` [PATCH 1/2] poky-tiny.conf: add extra libc features Qi.Chen
2013-07-10 8:30 ` Paul Eggleton
2013-07-10 9:12 ` ChenQi
2013-07-10 17:33 ` Darren Hart
2013-07-10 19:58 ` Saul Wold
2013-07-11 2:50 ` ChenQi
2013-07-10 6:39 ` [PATCH 2/2] local.conf.sample.extended: add USER_GROUP_SETTINGS Qi.Chen
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.