lsb: distro codename info added
PATCH 1/1 lsb: distro codename info added
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].
--- meta/recipes-extended/lsb/lsb_4.1.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
meta/recipes-extended/lsb/lsb_4.1.bb +4 -1
@@ -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,9 @@ do_install(){ echo "\"" >> ${D}${sysconfdir}/lsb-release echo "DISTRIB_ID=${DISTRO}" >> ${D}${sysconfdir}/lsb-release echo "DISTRIB_RELEASE=${DISTRO_VERSION}" >> ${D}${sysconfdir}/lsb-release + if [ -n "${DISTRO_CODENAME}" ]; then + echo "DISTRIB_CODENAME=${DISTRO_CODENAME}" >> ${D}${sysconfdir}/lsb-release + fi echo "DISTRIB_DESCRIPTION=\"${DISTRO_NAME} ${DISTRO_VERSION}\"" >> ${D}${sysconfdir}/lsb-release if [ "${TARGET_ARCH}" = "i586" ];then
Signature · 1 line
1.7.10.4
V2 patch.
DISTRO_CODENAME is check for existence, in case of distros not defining it.
Regards,
Cristian
-----Original Message-----
From: Iorga, Cristian
Sent: Monday, April 01, 2013 10:35 AM
To: [email protected]
Cc: Iorga, Cristian
Subject: [PATCH] lsb: distro codename info added
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].
--- meta/recipes-extended/lsb/lsb_4.1.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
meta/recipes-extended/lsb/lsb_4.1.bb +4 -1
@@ -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,9 @@ do_install(){ echo "\"" >> ${D}${sysconfdir}/lsb-release echo "DISTRIB_ID=${DISTRO}" >> ${D}${sysconfdir}/lsb-release echo "DISTRIB_RELEASE=${DISTRO_VERSION}" >> ${D}${sysconfdir}/lsb-release + if [ -n "${DISTRO_CODENAME}" ]; then + echo "DISTRIB_CODENAME=${DISTRO_CODENAME}" >> ${D}${sysconfdir}/lsb-release + fi echo "DISTRIB_DESCRIPTION=\"${DISTRO_NAME} ${DISTRO_VERSION}\"" >> ${D}${sysconfdir}/lsb-release if [ "${TARGET_ARCH}" = "i586" ];then
--
1.7.10.4