Skip to contentSkip to conversation

lsb: distro codename info added

PATCH In review Cristian Iorga 2 participants 4 messages Mar 29, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 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 |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-extended/lsb/lsb_4.1.bb +2 -1
index 01368b3..b28e9b6 100644
@@ -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
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 6 lines · Cristian Iorga

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.

Quoted 6 lines

Partial fix for [YOCTO #4071].

---
 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

Quoted 21 lines
meta/recipes-extended/lsb/lsb_4.1.bb +2 -1
index 01368b3..b28e9b6 100644
@@ -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
#2 lore raw

Hi Richard,

I guess a check can be done to see if DISTRO_CODENAME is set or not and add it selectively. Is that ok?

/Cristian

-----Original Message-----
From: Richard Purdie [mailto:[email protected]]
Sent: Friday, March 29, 2013 6:26 PM
To: Iorga, Cristian
Cc: [email protected]
Subject: Re: [OE-core] [PATCH 3/3] lsb: distro codename info added

Quoted 11 lines · Cristian Iorga

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 |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

What about people who haven't set DISTRO_CODENAME?

Cheers,

Richard

Quoted 25 lines
meta/recipes-extended/lsb/lsb_4.1.bb +1 -1
index 01368b3..b28e9b6 100644
@@ -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

meta/recipes-extended/lsb/lsb_4.1.bb +2 -0
+	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

#3 lore raw
Quoted 4 lines · Cristian

Hi Richard,

I guess a check can be done to see if DISTRO_CODENAME is set or not and add it selectively. Is that ok?

Yes, that would be much better.

Cheers,

Richard