[OE-core] [PATCH 3/3] lsb: distro codename info added

Richard Purdie richard.purdie at linuxfoundation.org
Fri Mar 29 16:25:36 UTC 2013


On Fri, 2013-03-29 at 16:12 +0200, Cristian Iorga wrote:
> Poky distro codename info added to /etc/lsb-release file.
> lsb_release script will not complain anymore about
> the incompleteness of /etc/lsb-release file by
> returning an error code.
> Increases LSB compliance.
> 
> Partial fix for [YOCTO #4071].
> 
> Signed-off-by: Cristian Iorga <cristian.iorga at intel.com>
> ---
>  meta/recipes-extended/lsb/lsb_4.1.bb |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

What about people who haven't set DISTRO_CODENAME?

Cheers,

Richard

> diff --git a/meta/recipes-extended/lsb/lsb_4.1.bb b/meta/recipes-extended/lsb/lsb_4.1.bb
> index 01368b3..b28e9b6 100644
> --- a/meta/recipes-extended/lsb/lsb_4.1.bb
> +++ b/meta/recipes-extended/lsb/lsb_4.1.bb
> @@ -2,7 +2,7 @@ DESCRIPTION = "LSB support for OpenEmbedded"
>  SECTION = "console/utils"
>  HOMEPAGE = "http://prdownloads.sourceforge.net/lsb"
>  LICENSE = "GPLv2+"
> -PR = "r1"
> +PR = "r2"
>  
>  # lsb_release needs getopt
>  RDEPENDS_${PN} += "util-linux"
> @@ -41,6 +41,7 @@ do_install(){
>  	echo "\"" >> ${D}${sysconfdir}/lsb-release
>  	echo "DISTRIB_ID=${DISTRO}" >> ${D}${sysconfdir}/lsb-release
>  	echo "DISTRIB_RELEASE=${DISTRO_VERSION}" >> ${D}${sysconfdir}/lsb-release
> +	echo "DISTRIB_CODENAME=${DISTRO_CODENAME}" >> ${D}${sysconfdir}/lsb-release
>  	echo "DISTRIB_DESCRIPTION=\"${DISTRO_NAME} ${DISTRO_VERSION}\"" >> ${D}${sysconfdir}/lsb-release
>  
>  	if [ "${TARGET_ARCH}" = "i586" ];then






More information about the Openembedded-core mailing list