From 8e53c8c9377022c7a120ab8a140db7ce11f9f1d1 Mon Sep 17 00:00:00 2001 From: Saul Wold Date: Tue, 17 Apr 2012 15:02:11 -0700 Subject: lsb: Add DISTRO Info to /etc/lsb-release file also add util-linux to DEPENDS Add the DISTRO* fields to the /etc/lsb-release file so the distro parsing code can find standard information about the Poky Distro when using the Self-Hosted Image. The lsb_release command uses getopt which is provided by util-linux (From OE-Core rev: eddb1d6f458bcf8b0473a360fad3f4a259a57d28) Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- meta/recipes-extended/lsb/lsb_1.4.bb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meta') diff --git a/meta/recipes-extended/lsb/lsb_1.4.bb b/meta/recipes-extended/lsb/lsb_1.4.bb index f2f25ba639..e414d93260 100644 --- a/meta/recipes-extended/lsb/lsb_1.4.bb +++ b/meta/recipes-extended/lsb/lsb_1.4.bb @@ -4,6 +4,8 @@ HOMEPAGE = "http://prdownloads.sourceforge.net/lsb" LICENSE = "GPLv2+" PR = "r2" +DEPENDS="util-linux" + LIC_FILES_CHKSUM = "file://README;md5=12da544b1a3a5a1795a21160b49471cf" SRC_URI = "${SOURCEFORGE_MIRROR}/project/lsb/lsb_release/${PV}/lsb-release-${PV}.tar.gz \ @@ -31,6 +33,9 @@ do_install(){ echo -n "core-4.1-${TARGET_ARCH}" >> ${D}/etc/lsb-release fi echo "\"" >> ${D}/etc/lsb-release + echo "DISTRIB_ID=${DISTRO}" >> ${D}/etc/lsb-release + echo "DISTRIB_RELEASE=${DISTRO_VERSION}" >> ${D}/etc/lsb-release + echo "DISTRIB_DESCRIPTION=\"${DISTRO_NAME} ${DISTRO_VERSION}\"" >> ${D}/etc/lsb-release if [ "${TARGET_ARCH}" == "i586" ];then mkdir -p ${D}/etc/lsb-release.d -- cgit v1.2.3-54-g00ecf