migration-2.7.rst 6.3 KB

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