]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
poky.conf: change case of Poky for DISTRO<->SANITY mismatch
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 20 Jan 2015 22:03:02 +0000 (17:03 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 23 Jan 2015 11:22:15 +0000 (11:22 +0000)
Using anything build appliance based will emit the warning:

 WARNING: Host distribution "poky-1.7" has not been validated with
 this version of the build system; you may possibly experience
 unexpected failures. It is recommended that you use a tested distribution.

The chain of events leading to this is:

1) At image creation time:

   meta-yocto/conf/distro/poky.conf:
DISTRO = "poky"

   meta/recipes-extended/lsb/lsb_4.1.bb:
echo "DISTRIB_ID=${DISTRO}" >> ${D}${sysconfdir}/lsb-release

2) At deployment/usage time of the created image:

   meta/lib/oe/lsb.py:
output, err = bb.process.run(['lsb_release', '-ir'], stderr=PIPE)

   meta-yocto/conf/distro/poky.conf:
SANITY_TESTED_DISTROS ?= " \
            Poky-1.6 \n \
            Poky-1.7 \n \
            [...]

   meta/classes/sanity.bbclass:
distro = oe.lsb.distro_identifier()
tested_distros = sanity_data.getVar('SANITY_TESTED_DISTROS', True)

and hence the lsb.distro gets the lower case "poky" which fails to
match the upper case "Poky" used in SANITY_TESTED_DISTROS.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta-yocto/conf/distro/poky.conf

index 48a8cf5b7784138d62b8a08e7342df591a2a59a8..d3aed5243190b7e9bc414d4074e5d49b32de605d 100644 (file)
@@ -74,8 +74,8 @@ CONNECTIVITY_CHECK_URIS ?= " \
              http://bugzilla.yoctoproject.org/report.cgi"
 
 SANITY_TESTED_DISTROS ?= " \
-            Poky-1.6 \n \
-            Poky-1.7 \n \
+            poky-1.6 \n \
+            poky-1.7 \n \
             Ubuntu-12.04 \n \
             Ubuntu-14.04 \n \
             Ubuntu-14.10 \n \