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