migration-2.0.rst 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. Release 2.0 (jethro)
  2. ====================
  3. This section provides migration information for moving to the Yocto
  4. Project 2.0 Release (codename "jethro") from the prior release.
  5. .. _migration-2.0-gcc-5:
  6. GCC 5
  7. -----
  8. The default compiler is now GCC 5.2. This change has required fixes for
  9. compilation errors in a number of other recipes.
  10. One important example is a fix for when the Linux kernel freezes at boot
  11. time on ARM when built with GCC 5. If you are using your own kernel
  12. recipe or source tree and building for ARM, you will likely need to
  13. apply this
  14. `patch <https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit?id=a077224fd35b2f7fbc93f14cf67074fc792fbac2>`__.
  15. The standard ``linux-yocto`` kernel source tree already has a workaround
  16. for the same issue.
  17. For further details, see https://gcc.gnu.org/gcc-5/changes.html
  18. and the porting guide at
  19. https://gcc.gnu.org/gcc-5/porting_to.html.
  20. Alternatively, you can switch back to GCC 4.9 or 4.8 by setting
  21. :term:`GCCVERSION` in your configuration, as follows::
  22. GCCVERSION = "4.9%"
  23. .. _migration-2.0-Gstreamer-0.10-removed:
  24. Gstreamer 0.10 Removed
  25. ----------------------
  26. Gstreamer 0.10 has been removed in favor of Gstreamer 1.x. As part of
  27. the change, recipes for Gstreamer 0.10 and related software are now
  28. located in ``meta-multimedia``. This change results in Qt4 having Phonon
  29. and Gstreamer support in QtWebkit disabled by default.
  30. .. _migration-2.0-removed-recipes:
  31. Removed Recipes
  32. ---------------
  33. The following recipes have been moved or removed:
  34. - ``bluez4``: The recipe is obsolete and has been moved due to
  35. ``bluez5`` becoming fully integrated. The ``bluez4`` recipe now
  36. resides in ``meta-oe``.
  37. - ``gamin``: The recipe is obsolete and has been removed.
  38. - ``gnome-icon-theme``: The recipe's functionally has been replaced by
  39. ``adwaita-icon-theme``.
  40. - Gstreamer 0.10 Recipes: Recipes for Gstreamer 0.10 have been removed
  41. in favor of the recipes for Gstreamer 1.x.
  42. - ``insserv``: The recipe is obsolete and has been removed.
  43. - ``libunique``: The recipe is no longer used and has been moved to
  44. ``meta-oe``.
  45. - ``midori``: The recipe's functionally has been replaced by
  46. ``epiphany``.
  47. - ``python-gst``: The recipe is obsolete and has been removed since it
  48. only contains bindings for Gstreamer 0.10.
  49. - ``qt-mobility``: The recipe is obsolete and has been removed since it
  50. requires ``Gstreamer 0.10``, which has been replaced.
  51. - ``subversion``: All 1.6.x versions of this recipe have been removed.
  52. - ``webkit-gtk``: The older 1.8.3 version of this recipe has been
  53. removed in favor of ``webkitgtk``.
  54. .. _migration-2.0-bitbake-datastore-improvements:
  55. BitBake datastore improvements
  56. ------------------------------
  57. The method by which BitBake's datastore handles overrides has changed.
  58. Overrides are now applied dynamically and ``bb.data.update_data()`` is
  59. now a no-op. Thus, ``bb.data.update_data()`` is no longer required in
  60. order to apply the correct overrides. In practice, this change is
  61. unlikely to require any changes to Metadata. However, these minor
  62. changes in behavior exist:
  63. - All potential overrides are now visible in the variable history as
  64. seen when you run the following::
  65. $ bitbake -e
  66. - ``d.delVar('VARNAME')`` and
  67. ``d.setVar('VARNAME', None)`` result in the variable and all
  68. of its overrides being cleared out. Before the change, only the
  69. non-overridden values were cleared.
  70. .. _migration-2.0-shell-message-function-changes:
  71. Shell Message Function Changes
  72. ------------------------------
  73. The shell versions of the BitBake message functions (i.e. ``bbdebug``,
  74. ``bbnote``, ``bbwarn``, ``bbplain``, ``bberror``, and ``bbfatal``) are
  75. now connected through to their BitBake equivalents ``bb.debug()``,
  76. ``bb.note()``, ``bb.warn()``, ``bb.plain()``, ``bb.error()``, and
  77. ``bb.fatal()``, respectively. Thus, those message functions that you
  78. would expect to be printed by the BitBake UI are now actually printed.
  79. In practice, this change means two things:
  80. - If you now see messages on the console that you did not previously
  81. see as a result of this change, you might need to clean up the calls
  82. to ``bbwarn``, ``bberror``, and so forth. Or, you might want to
  83. simply remove the calls.
  84. - The ``bbfatal`` message function now suppresses the full error log in
  85. the UI, which means any calls to ``bbfatal`` where you still wish to
  86. see the full error log should be replaced by ``die`` or
  87. ``bbfatal_log``.
  88. .. _migration-2.0-extra-development-debug-package-cleanup:
  89. Extra Development/Debug Package Cleanup
  90. ---------------------------------------
  91. The following recipes have had extra ``dev/dbg`` packages removed:
  92. - ``acl``
  93. - ``apmd``
  94. - ``aspell``
  95. - ``attr``
  96. - ``augeas``
  97. - ``bzip2``
  98. - ``cogl``
  99. - ``curl``
  100. - ``elfutils``
  101. - ``gcc-target``
  102. - ``libgcc``
  103. - ``libtool``
  104. - ``libxmu``
  105. - ``opkg``
  106. - ``pciutils``
  107. - ``rpm``
  108. - ``sysfsutils``
  109. - ``tiff``
  110. - ``xz``
  111. All of the above recipes now conform to the standard packaging scheme
  112. where a single ``-dev``, ``-dbg``, and ``-staticdev`` package exists per
  113. recipe.
  114. .. _migration-2.0-recipe-maintenance-tracking-data-moved-to-oe-core:
  115. Recipe Maintenance Tracking Data Moved to OE-Core
  116. -------------------------------------------------
  117. Maintenance tracking data for recipes that was previously part of
  118. ``meta-yocto`` has been moved to :term:`OpenEmbedded-Core (OE-Core)`. The change
  119. includes ``package_regex.inc`` and ``distro_alias.inc``, which are
  120. typically enabled when using the ``distrodata`` class. Additionally, the
  121. contents of ``upstream_tracking.inc`` has now been split out to the
  122. relevant recipes.
  123. .. _migration-2.0-automatic-stale-sysroot-file-cleanup:
  124. Automatic Stale Sysroot File Cleanup
  125. ------------------------------------
  126. Stale files from recipes that no longer exist in the current
  127. configuration are now automatically removed from sysroot as well as
  128. removed from any other place managed by shared state. This automatic
  129. cleanup means that the build system now properly handles situations such
  130. as renaming the build system side of recipes, removal of layers from
  131. ``bblayers.conf``, and :term:`DISTRO_FEATURES`
  132. changes.
  133. Additionally, work directories for old versions of recipes are now
  134. pruned. If you wish to disable pruning old work directories, you can set
  135. the following variable in your configuration::
  136. SSTATE_PRUNE_OBSOLETEWORKDIR = "0"
  137. .. _migration-2.0-linux-yocto-kernel-metadata-repository-now-split-from-source:
  138. ``linux-yocto`` Kernel Metadata Repository Now Split from Source
  139. ----------------------------------------------------------------
  140. The ``linux-yocto`` tree has up to now been a combined set of kernel
  141. changes and configuration (meta) data carried in a single tree. While
  142. this format is effective at keeping kernel configuration and source
  143. modifications synchronized, it is not always obvious to developers how
  144. to manipulate the Metadata as compared to the source.
  145. Metadata processing has now been removed from the
  146. :ref:`kernel-yocto <ref-classes-kernel-yocto>` class and the external
  147. Metadata repository ``yocto-kernel-cache``, which has always been used
  148. to seed the ``linux-yocto`` "meta" branch. This separate ``linux-yocto``
  149. cache repository is now the primary location for this data. Due to this
  150. change, ``linux-yocto`` is no longer able to process combined trees.
  151. Thus, if you need to have your own combined kernel repository, you must
  152. do the split there as well and update your recipes accordingly. See the
  153. ``meta/recipes-kernel/linux/linux-yocto_4.1.bb`` recipe for an example.
  154. .. _migration-2.0-additional-qa-checks:
  155. Additional QA checks
  156. --------------------
  157. The following QA checks have been added:
  158. - Added a "host-user-contaminated" check for ownership issues for
  159. packaged files outside of ``/home``. The check looks for files that
  160. are incorrectly owned by the user that ran BitBake instead of owned
  161. by a valid user in the target system.
  162. - Added an "invalid-chars" check for invalid (non-UTF8) characters in
  163. recipe metadata variable values (i.e.
  164. :term:`DESCRIPTION`,
  165. :term:`SUMMARY`, :term:`LICENSE`, and
  166. :term:`SECTION`). Some package managers do not support
  167. these characters.
  168. - Added an "invalid-packageconfig" check for any options specified in
  169. :term:`PACKAGECONFIG` that do not match any
  170. :term:`PACKAGECONFIG` option defined for the recipe.
  171. .. _migration-2.0-miscellaneous:
  172. Miscellaneous Changes
  173. ---------------------
  174. These additional changes exist:
  175. - ``gtk-update-icon-cache`` has been renamed to ``gtk-icon-utils``.
  176. - The ``tools-profile`` :term:`IMAGE_FEATURES`
  177. item as well as its corresponding packagegroup and
  178. ``packagegroup-core-tools-profile`` no longer bring in ``oprofile``.
  179. Bringing in ``oprofile`` was originally added to aid compilation on
  180. resource-constrained targets. However, this aid has not been widely
  181. used and is not likely to be used going forward due to the more
  182. powerful target platforms and the existence of better
  183. cross-compilation tools.
  184. - The :term:`IMAGE_FSTYPES` variable's default
  185. value now specifies ``ext4`` instead of ``ext3``.
  186. - All support for the ``PRINC`` variable has been removed.
  187. - The ``packagegroup-core-full-cmdline`` packagegroup no longer brings
  188. in ``lighttpd`` due to the fact that bringing in ``lighttpd`` is not
  189. really in line with the packagegroup's purpose, which is to add full
  190. versions of command-line tools that by default are provided by
  191. ``busybox``.