diff options
author | Cristian Iorga <cristian.iorga@intel.com> | 2013-04-01 10:34:45 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-04-02 18:09:33 +0100 |
commit | 3ee9d3631920e68d2970aa9f1f851d48191892cb (patch) | |
tree | 7d4dea37bfbb2e9b08327384ec3120251c28ebe6 /meta/recipes-extended/lsb | |
parent | 238244c3136c462b225454150024960cbcbbec42 (diff) | |
download | poky-3ee9d3631920e68d2970aa9f1f851d48191892cb.tar.gz |
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].
(From OE-Core rev: ddd43fcdb8af7d5b1a64d2c6cbd72a3896869321)
Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/lsb')
-rw-r--r-- | meta/recipes-extended/lsb/lsb_4.1.bb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-extended/lsb/lsb_4.1.bb b/meta/recipes-extended/lsb/lsb_4.1.bb index 01368b334b..59d5bcafef 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" | |||
2 | SECTION = "console/utils" | 2 | SECTION = "console/utils" |
3 | HOMEPAGE = "http://prdownloads.sourceforge.net/lsb" | 3 | HOMEPAGE = "http://prdownloads.sourceforge.net/lsb" |
4 | LICENSE = "GPLv2+" | 4 | LICENSE = "GPLv2+" |
5 | PR = "r1" | 5 | PR = "r2" |
6 | 6 | ||
7 | # lsb_release needs getopt | 7 | # lsb_release needs getopt |
8 | RDEPENDS_${PN} += "util-linux" | 8 | RDEPENDS_${PN} += "util-linux" |
@@ -41,6 +41,9 @@ do_install(){ | |||
41 | echo "\"" >> ${D}${sysconfdir}/lsb-release | 41 | echo "\"" >> ${D}${sysconfdir}/lsb-release |
42 | echo "DISTRIB_ID=${DISTRO}" >> ${D}${sysconfdir}/lsb-release | 42 | echo "DISTRIB_ID=${DISTRO}" >> ${D}${sysconfdir}/lsb-release |
43 | echo "DISTRIB_RELEASE=${DISTRO_VERSION}" >> ${D}${sysconfdir}/lsb-release | 43 | echo "DISTRIB_RELEASE=${DISTRO_VERSION}" >> ${D}${sysconfdir}/lsb-release |
44 | if [ -n "${DISTRO_CODENAME}" ]; then | ||
45 | echo "DISTRIB_CODENAME=${DISTRO_CODENAME}" >> ${D}${sysconfdir}/lsb-release | ||
46 | fi | ||
44 | echo "DISTRIB_DESCRIPTION=\"${DISTRO_NAME} ${DISTRO_VERSION}\"" >> ${D}${sysconfdir}/lsb-release | 47 | echo "DISTRIB_DESCRIPTION=\"${DISTRO_NAME} ${DISTRO_VERSION}\"" >> ${D}${sysconfdir}/lsb-release |
45 | 48 | ||
46 | if [ "${TARGET_ARCH}" = "i586" ];then | 49 | if [ "${TARGET_ARCH}" = "i586" ];then |