migration-2.7.rst 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. Release 2.7 (warrior)
  2. =====================
  3. This section provides migration information for moving to the Yocto
  4. Project 2.7 Release (codename "warrior") from the prior release.
  5. .. _migration-2.7-bitbake-changes:
  6. BitBake Changes
  7. ---------------
  8. The following changes have been made to BitBake:
  9. - BitBake now checks anonymous Python functions and pure Python
  10. functions (e.g. ``def funcname:``) in the metadata for tab
  11. indentation. If found, BitBake produces a warning.
  12. - BitBake now checks
  13. :term:`BBFILE_COLLECTIONS` for duplicate
  14. entries and triggers an error if any are found.
  15. .. _migration-2.7-eclipse-support-dropped:
  16. Eclipse Support Removed
  17. -----------------------
  18. Support for the Eclipse IDE has been removed. Support continues for
  19. those releases prior to 2.7 that did include support. The 2.7 release
  20. does not include the Eclipse Yocto plugin.
  21. .. _migration-2.7-qemu-native-splits-system-and-user-mode-parts:
  22. ``qemu-native`` Splits the System and User-Mode Parts
  23. -----------------------------------------------------
  24. The system and user-mode parts of ``qemu-native`` are now split.
  25. ``qemu-native`` provides the user-mode components and
  26. ``qemu-system-native`` provides the system components. If you have
  27. recipes that depend on QEMU's system emulation functionality at build
  28. time, they should now depend upon ``qemu-system-native`` instead of
  29. ``qemu-native``.
  30. .. _migration-2.7-upstream-tracking.inc-removed:
  31. The ``upstream-tracking.inc`` File Has Been Removed
  32. ---------------------------------------------------
  33. The previously deprecated ``upstream-tracking.inc`` file is now removed.
  34. Any ``UPSTREAM_TRACKING*`` variables are now set in the corresponding
  35. recipes instead.
  36. Remove any references you have to the ``upstream-tracking.inc`` file in
  37. your configuration.
  38. .. _migration-2.7-distro-features-libc-removed:
  39. The ``DISTRO_FEATURES_LIBC`` Variable Has Been Removed
  40. ------------------------------------------------------
  41. The ``DISTRO_FEATURES_LIBC`` variable is no longer used. The ability to
  42. configure glibc using kconfig has been removed for quite some time
  43. making the ``libc-*`` features set no longer effective.
  44. Remove any references you have to ``DISTRO_FEATURES_LIBC`` in your own
  45. layers.
  46. .. _migration-2.7-license-values:
  47. License Value Corrections
  48. -------------------------
  49. The following corrections have been made to the
  50. :term:`LICENSE` values set by recipes:
  51. - *socat*: Corrected :term:`LICENSE` to be "GPLv2" rather than "GPLv2+".
  52. - *libgfortran*: Set license to "GPL-3.0-with-GCC-exception".
  53. - *elfutils*: Removed "Elfutils-Exception" and set to "GPLv2" for shared libraries
  54. .. _migration-2.7-packaging-changes:
  55. Packaging Changes
  56. -----------------
  57. This section provides information about packaging changes.
  58. - ``bind``: The ``nsupdate`` binary has been moved to the
  59. ``bind-utils`` package.
  60. - Debug split: The default debug split has been changed to create
  61. separate source packages (i.e. ``package_name-dbg`` and
  62. ``package_name-src``). If you are currently using ``dbg-pkgs`` in
  63. :term:`IMAGE_FEATURES` to bring in debug
  64. symbols and you still need the sources, you must now also add
  65. ``src-pkgs`` to :term:`IMAGE_FEATURES`. Source packages remain in the
  66. target portion of the SDK by default, unless you have set your own
  67. value for :term:`SDKIMAGE_FEATURES` that
  68. does not include ``src-pkgs``.
  69. - Mount all using ``util-linux``: ``/etc/default/mountall`` has moved
  70. into the -mount sub-package.
  71. - Splitting binaries using ``util-linux``: ``util-linux`` now splits
  72. each binary into its own package for fine-grained control. The main
  73. ``util-linux`` package pulls in the individual binary packages using
  74. the :term:`RRECOMMENDS` and
  75. :term:`RDEPENDS` variables. As a result, existing
  76. images should not see any changes assuming
  77. :term:`NO_RECOMMENDATIONS` is not set.
  78. - ``netbase/base-files``: ``/etc/hosts`` has moved from ``netbase`` to
  79. ``base-files``.
  80. - ``tzdata``: The main package has been converted to an empty meta
  81. package that pulls in all ``tzdata`` packages by default.
  82. - ``lrzsz``: This package has been removed from
  83. ``packagegroup-self-hosted`` and
  84. ``packagegroup-core-tools-testapps``. The X/Y/ZModem support is less
  85. likely to be needed on modern systems. If you are relying on these
  86. packagegroups to include the ``lrzsz`` package in your image, you now
  87. need to explicitly add the package.
  88. .. _migration-2.7-removed-recipes:
  89. Removed Recipes
  90. ---------------
  91. The following recipes have been removed:
  92. - *gcc*: Drop version 7.3 recipes. Version 8.3 now remains.
  93. - *linux-yocto*: Drop versions 4.14 and 4.18 recipes. Versions 4.19 and 5.0 remain.
  94. - *go*: Drop version 1.9 recipes. Versions 1.11 and 1.12 remain.
  95. - *xvideo-tests*: Became obsolete.
  96. - *libart-lgpl*: Became obsolete.
  97. - *gtk-icon-utils-native*: These tools are now provided by gtk+3-native
  98. - *gcc-cross-initial*: No longer needed. gcc-cross/gcc-crosssdk is now used instead.
  99. - *gcc-crosssdk-initial*: No longer needed. gcc-cross/gcc-crosssdk is now used instead.
  100. - *glibc-initial*: Removed because the benefits of having it for site_config are currently outweighed by the cost of building the recipe.
  101. .. _migration-2.7-removed-classes:
  102. Removed Classes
  103. ---------------
  104. The following classes have been removed:
  105. - *distutils-tools*: This class was never used.
  106. - *bugzilla.bbclass*: Became obsolete.
  107. - *distrodata*: This functionally has been replaced by a more modern tinfoil-based implementation.
  108. .. _migration-2.7-miscellaneous-changes:
  109. Miscellaneous Changes
  110. ---------------------
  111. The following miscellaneous changes occurred:
  112. - The ``distro`` subdirectory of the Poky repository has been removed
  113. from the top-level ``scripts`` directory.
  114. - Perl now builds for the target using
  115. `perl-cross <https://arsv.github.io/perl-cross/>`_ for better
  116. maintainability and improved build performance. This change should
  117. not present any problems unless you have heavily customized your Perl
  118. recipe.
  119. - ``arm-tunes``: Removed the "-march" option if mcpu is already added.
  120. - ``update-alternatives``: Convert file renames to
  121. :term:`PACKAGE_PREPROCESS_FUNCS`
  122. - ``base/pixbufcache``: Obsolete ``sstatecompletions`` code has been
  123. removed.
  124. - :ref:`native <ref-classes-native>` class:
  125. :term:`RDEPENDS` handling has been enabled.
  126. - ``inetutils``: This recipe has rsh disabled.