diff options
Diffstat (limited to 'documentation/migration-guides/migration-5.0.rst')
-rw-r--r-- | documentation/migration-guides/migration-5.0.rst | 101 |
1 files changed, 99 insertions, 2 deletions
diff --git a/documentation/migration-guides/migration-5.0.rst b/documentation/migration-guides/migration-5.0.rst index 32581d750b..cf413300c2 100644 --- a/documentation/migration-guides/migration-5.0.rst +++ b/documentation/migration-guides/migration-5.0.rst | |||
@@ -52,11 +52,21 @@ See :ref:`all supported distributions <system-requirements-supported-distros>`. | |||
52 | Go language changes | 52 | Go language changes |
53 | ~~~~~~~~~~~~~~~~~~~ | 53 | ~~~~~~~~~~~~~~~~~~~ |
54 | 54 | ||
55 | The ``linkmode`` flag was dropped from ``GO_LDFLAGS`` for ``nativesdk`` and | ||
56 | ``cross-canadian``. Also, dynamic linking was disabled for the whole set of | ||
57 | (previously) supported architectures in the ``goarch`` class. | ||
58 | |||
55 | .. _migration-5.0-systemd-changes: | 59 | .. _migration-5.0-systemd-changes: |
56 | 60 | ||
57 | systemd changes | 61 | systemd changes |
58 | ~~~~~~~~~~~~~~~ | 62 | ~~~~~~~~~~~~~~~ |
59 | 63 | ||
64 | Systemd's nss-resolve plugin is now supported and can be added via the | ||
65 | ``nss-resolve`` :term:`PACKAGECONFIG` option , which is from now on required | ||
66 | (along with ``resolved``) by the ``systemd-resolved`` feature. Related to that | ||
67 | (i.e., Systemd's network name resolution), an option to use ``stub-resolv.conf`` | ||
68 | was added as well. | ||
69 | |||
60 | .. _migration-5.0-recipe-changes: | 70 | .. _migration-5.0-recipe-changes: |
61 | 71 | ||
62 | Recipe changes | 72 | Recipe changes |
@@ -70,7 +80,8 @@ Recipe changes | |||
70 | Deprecated variables | 80 | Deprecated variables |
71 | ~~~~~~~~~~~~~~~~~~~~ | 81 | ~~~~~~~~~~~~~~~~~~~~ |
72 | 82 | ||
73 | The following variables have been deprecated: | 83 | - ``CVE_CHECK_IGNORE`` should be replaced with :term:`CVE_STATUS` |
84 | |||
74 | 85 | ||
75 | .. _migration-5.0-removed-variables: | 86 | .. _migration-5.0-removed-variables: |
76 | 87 | ||
@@ -79,6 +90,15 @@ Removed variables | |||
79 | 90 | ||
80 | The following variables have been removed: | 91 | The following variables have been removed: |
81 | 92 | ||
93 | - ``DEPLOY_DIR_TAR``: no longer needed since the package_tar class was removed in 4.2. | ||
94 | - ``PYTHON_PN``: Python 2 has previously been removed, leaving Python 3 as the sole | ||
95 | major version. Therefore, this abstraction to differentiate both versions is | ||
96 | no longer needed. | ||
97 | - ``oldincludedir`` | ||
98 | - ``USE_L10N``: previously deprecated, and now removed. | ||
99 | - ``CVE_SOCKET_TIMEOUT`` | ||
100 | - ``SERIAL_CONSOLES_CHECK`` - use :term:`SERIAL_CONSOLES` instead as all consoles specified in the latter are checked for their existence before a ``getty`` is started. | ||
101 | |||
82 | .. _migration-5.0-removed-recipes: | 102 | .. _migration-5.0-removed-recipes: |
83 | 103 | ||
84 | Removed recipes | 104 | Removed recipes |
@@ -86,20 +106,97 @@ Removed recipes | |||
86 | 106 | ||
87 | The following recipes have been removed in this release: | 107 | The following recipes have been removed in this release: |
88 | 108 | ||
109 | - ``libcroco``: deprecated and archived by the Gnome Project. | ||
110 | - ``liberror-perl``: unmaintained and no longer needed - moved to meta-perl. | ||
111 | - ``linux-yocto``: version 6.1 (version 6.6 provided instead). | ||
112 | - ``systemtap-uprobes``: obsolete. | ||
113 | - ``zvariant``: fails to build with newer Rust. | ||
114 | |||
89 | .. _migration-5.0-removed-classes: | 115 | .. _migration-5.0-removed-classes: |
90 | 116 | ||
91 | Removed classes | 117 | Removed classes |
92 | ~~~~~~~~~~~~~~~ | 118 | ~~~~~~~~~~~~~~~ |
93 | 119 | ||
94 | The following classes have been removed in this release: | 120 | No classes have been removed in this release. |
95 | 121 | ||
96 | .. _migration-5.0-qemu-changes: | 122 | .. _migration-5.0-qemu-changes: |
97 | 123 | ||
98 | QEMU changes | 124 | QEMU changes |
99 | ~~~~~~~~~~~~ | 125 | ~~~~~~~~~~~~ |
100 | 126 | ||
127 | In ``tune-core2``, the cpu models ``n270`` and ``core2duo`` are no longer | ||
128 | passed to QEMU, since its documentation recommends not using them with ``-cpu`` | ||
129 | option. Therefore, from now on, ``Nehalem`` model is used instead. | ||
130 | |||
131 | |||
132 | ipk packaging changes | ||
133 | ~~~~~~~~~~~~~~~~~~~~~ | ||
134 | |||
135 | ipk packaging (using ``opkg``) now uses ``zstd`` compression instead of ``xz`` | ||
136 | for better compression and performance. This does mean that ``.ipk`` packages | ||
137 | built using the 5.0 release requires Opkg built with zstd enabled --- naturally | ||
138 | this is the case in 5.0, but at least by default these packages will not be | ||
139 | usable on older systems where Opkg does not have zstd enabled at build time. | ||
140 | |||
141 | Additionally, the internal dependency solver in Opkg is now deprecated --- it | ||
142 | is still available in this release but will trigger a warning if selected. | ||
143 | The default has been the external ``libsolv`` solver for some time, but if you | ||
144 | have explicitly removed that from :term:`PACKAGECONFIG` for Opkg to | ||
145 | select the internal solver, you should plan to switch to ``libsolv`` in the | ||
146 | near future (by including ``libsolv`` your custom :term:`PACKAGECONFIG` value | ||
147 | for Opkg, or reverting to the default value). | ||
148 | |||
149 | |||
150 | motd message when using ``DISTRO = "poky"`` | ||
151 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
152 | |||
153 | The default ``poky`` :term:`DISTRO` is explicitly a *reference* distribution | ||
154 | for testing and development purposes. It enables most hardware and software | ||
155 | features so that they can be tested, but this also means that | ||
156 | from a security point of view the attack surface is very large. | ||
157 | |||
158 | We encourage anyone using the Yocto Project for production use to create | ||
159 | their own distribution and not use Poky. To encourage this behaviour | ||
160 | further, in 5.0 a warning has been added to ``/etc/motd`` when Poky is used | ||
161 | so that the developer will see it when they log in. If you are creating your | ||
162 | own distribution this message will not show up. | ||
163 | |||
164 | For information on how to create your own distribution, see | ||
165 | ":ref:`dev-manual/custom-distribution:creating your own distribution`". | ||
166 | |||
101 | .. _migration-5.0-misc-changes: | 167 | .. _migration-5.0-misc-changes: |
102 | 168 | ||
103 | Miscellaneous changes | 169 | Miscellaneous changes |
104 | ~~~~~~~~~~~~~~~~~~~~~ | 170 | ~~~~~~~~~~~~~~~~~~~~~ |
105 | 171 | ||
172 | - ``bitbake-whatchanged`` script was removed as it was broken and unmaintained. | ||
173 | |||
174 | - ``scripts/sstate-cache-management.sh`` has been replaced by | ||
175 | ``scripts/sstate-cache-management.py``, a more performant Python-based version. | ||
176 | |||
177 | - The ``bmap-tools`` recipe has been renamed to ``bmaptool``. | ||
178 | |||
179 | - ``gpgme`` has had Python binding support disabled since upstream does not | ||
180 | support Python 3.12 yet. This will be fixed in future once it is fixed upstream.) | ||
181 | |||
182 | - A warning will now be shown if the ``virtual/`` prefix is used in runtime | ||
183 | contexts (:term:`RDEPENDS` / :term:`RPROVIDES`) --- | ||
184 | See :ref:`virtual-slash <qa-check-virtual-slash>` for details. | ||
185 | |||
186 | - ``recipetool`` now prefixes the names of recipes created for Python modules | ||
187 | with ``python3-``. | ||
188 | |||
189 | - The :ref:`ref-classes-cve-check` class no longer produces a warning for | ||
190 | remote patches --- it only logs a note and does not try to fetch the patch | ||
191 | in order to scan it for issues or CVE numbers. However, CVE number | ||
192 | references in remote patch file names will now be picked up. | ||
193 | |||
194 | - The values of :term:`PE` and :term:`PR` have been dropped from | ||
195 | ``-f{file,macro,debug}-prefix-map``, in order to avoid unnecessary churn | ||
196 | in debugging symbol paths when the version is bumped. This is unlikely to | ||
197 | cause issues, but if you are paying attention to the debugging source path | ||
198 | (e.g. in recipes that need to manipulate these files during packaging) then | ||
199 | you will notice the difference. A new :term:`TARGET_DBGSRC_DIR` variable is | ||
200 | provided to make this easier. | ||
201 | |||
202 | - ``ccache`` no longer supports FORTRAN. | ||