[OE-core] [RFC 1/2] os-release: add new operating system identification recipe

2013-12-13 Thread Christopher Larson
From: Christopher Larson This is needed by systemd, among other useful applications. All fields are metadata driven, and initial values come from our DISTRO variables. Signed-off-by: Christopher Larson --- meta/recipes-core/os-release/os-release.bb | 42 ++ 1 file c

Re: [OE-core] [RFC 1/2] os-release: add new operating system identification recipe

2013-12-13 Thread Martin Jansa
On Fri, Dec 13, 2013 at 07:56:37AM -0700, Christopher Larson wrote: > From: Christopher Larson > > This is needed by systemd, among other useful applications. All fields are > metadata driven, and initial values come from our DISTRO variables. > > Signed-off-by: Christopher Larson > --- > meta

Re: [OE-core] [RFC 1/2] os-release: add new operating system identification recipe

2013-12-13 Thread Chris Larson
On Fri, Dec 13, 2013 at 8:08 AM, Martin Jansa wrote: > > +do_compile () { > > +for field in ${OS_RELEASE_FIELDS}; do > > +if eval "test -n \"\$$field\""; then > > +eval "printf \"%s=%s\n\" \"\$field\" \"\$$field\"" > > +fi > > +done >os-release > > +} > > +do_co

Re: [OE-core] [RFC 1/2] os-release: add new operating system identification recipe

2013-12-13 Thread Chris Larson
On Fri, Dec 13, 2013 at 8:12 AM, Chris Larson wrote: > On Fri, Dec 13, 2013 at 8:08 AM, Martin Jansa wrote: > >> > +do_compile () { >> > +for field in ${OS_RELEASE_FIELDS}; do >> > +if eval "test -n \"\$$field\""; then >> > +eval "printf \"%s=%s\n\" \"\$field\" \"\$$field\

Re: [OE-core] [RFC 1/2] os-release: add new operating system identification recipe

2013-12-13 Thread Mark Hatle
On 12/13/13, 8:56 AM, Christopher Larson wrote: From: Christopher Larson This is needed by systemd, among other useful applications. All fields are metadata driven, and initial values come from our DISTRO variables. I thought there was a part of the lsb-release recipe that did this same thing

Re: [OE-core] [RFC 1/2] os-release: add new operating system identification recipe

2013-12-13 Thread Chris Larson
On Fri, Dec 13, 2013 at 8:56 AM, Mark Hatle wrote: > On 12/13/13, 8:56 AM, Christopher Larson wrote: > >> From: Christopher Larson >> >> This is needed by systemd, among other useful applications. All fields are >> metadata driven, and initial values come from our DISTRO variables. >> > > I thoug

Re: [OE-core] [RFC 1/2] os-release: add new operating system identification recipe

2013-12-13 Thread Enrico Scholz
Christopher Larson writes: > +if eval "test -n \"\$$field\""; then > +eval "printf \"%s=%s\n\" \"\$field\" \"\$$field\"" I think, this can be expressed without the complicated quoting as eval val=\$$field if test -n "$val"; then printf '

Re: [OE-core] [RFC 1/2] os-release: add new operating system identification recipe

2013-12-13 Thread Koen Kooi
Op 13 dec. 2013, om 17:14 heeft Chris Larson het volgende geschreven: > > On Fri, Dec 13, 2013 at 8:56 AM, Mark Hatle wrote: > On 12/13/13, 8:56 AM, Christopher Larson wrote: > From: Christopher Larson > > This is needed by systemd, among other useful applications. All fields are > metadata

Re: [OE-core] [RFC 1/2] os-release: add new operating system identification recipe

2013-12-13 Thread Koen Kooi
Op 13 dec. 2013, om 15:56 heeft Christopher Larson het volgende geschreven: > From: Christopher Larson > > This is needed by systemd, among other useful applications. All fields are > metadata driven, and initial values come from our DISTRO variables. > > Signed-off-by: Christopher Larson >

Re: [OE-core] [RFC 1/2] os-release: add new operating system identification recipe

2013-12-13 Thread Martin Jansa
On Fri, Dec 13, 2013 at 08:12:51AM -0700, Chris Larson wrote: > On Fri, Dec 13, 2013 at 8:08 AM, Martin Jansa wrote: > > > > +do_compile () { > > > +for field in ${OS_RELEASE_FIELDS}; do > > > +if eval "test -n \"\$$field\""; then > > > +eval "printf \"%s=%s\n\" \"\$field\"