[OE-core] design question: should layer.conf contain "PREFERRED_VERSION" settings?

Robert P. J. Day rpjday at crashcourse.ca
Wed Mar 22 11:14:44 UTC 2017


  i'm just adding some content to intro OE/YP wiki pages about what
various OE files should contain, and what they shouldn't contain, and
this is the layer.conf file for the meta-openstack layer:

  # We have a conf and classes directory, append to BBPATH
  BBPATH .= ":${LAYERDIR}"

  # We have a recipes directory, add to BBFILES
  BBFILES += "${LAYERDIR}/recipes*/*/*.bb
  ${LAYERDIR}/recipes*/*/*.bbappend"

  BBFILE_COLLECTIONS += "openstack-layer"
  BBFILE_PATTERN_openstack-layer := "^${LAYERDIR}/"
  BBFILE_PRIORITY_openstack-layer = "5"

  BB_DANGLINGAPPENDS_WARNONLY ?= "true"

  # pre 0.4.0 greenlet versions segfault python
  PREFERRED_VERSION_python-greenlet = "0.4.5"
  PREFERRED_VERSION_python-sqlalchemy = "1.0.8"
  PREFERRED_VERSION_python-pexpect = "3.3"
  PREFERRED_VERSION_python-futures = "3.0.3%"
  PREFERRED_VERSION_python-django = "1.8.6"
  PREFERRED_VERSION_python-netaddr = "0.7.19"
  PREFERRED_VERSION_python-sqlalchemy = "1.0.16"
  PREFERRED_VERSION_python-requests = "2.12.0"
  PREFERRED_VERSION_python-amqp = "1.4.9"
  PREFERRED_VERSION_python-kombu = "3.0.%"

so, just to be clear, the simple act of adding that layer to a
project's bblayers.conf file will cause those preferred versions to
be selected, correct?

  is that considered good design? in a perfect world, i've always
believed that you should be able to load up your bblayers.conf file
with as many extraneous layers as you want and (well, with some
exceptions), if you choose not to take advantage of the contents of a
layer, it shouldn't hurt you.

  so doesn't the above lock you into those preferred versions,
regardless of whether you use anything from the meta-openstack layer
or not? wouldn't those selections be properly placed elsewhere in the
layer, and not in layer.conf?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================




More information about the Openembedded-core mailing list