diff options
Diffstat (limited to 'documentation/migration-guides/migration-4.2.rst')
-rw-r--r-- | documentation/migration-guides/migration-4.2.rst | 85 |
1 files changed, 81 insertions, 4 deletions
diff --git a/documentation/migration-guides/migration-4.2.rst b/documentation/migration-guides/migration-4.2.rst index 1339411b3e..ccc3e8905e 100644 --- a/documentation/migration-guides/migration-4.2.rst +++ b/documentation/migration-guides/migration-4.2.rst | |||
@@ -18,10 +18,72 @@ BitBake and OpenEmbedded-Core are now relying on Python 3.8, | |||
18 | making it a requirement to use a distribution providing at least this | 18 | making it a requirement to use a distribution providing at least this |
19 | version, or to use :term:`buildtools`. | 19 | version, or to use :term:`buildtools`. |
20 | 20 | ||
21 | .. _migration-4.2-qa-checks: | 21 | .. _migration-4.2-gcc-8.0: |
22 | 22 | ||
23 | QA check changes | 23 | gcc 8.0 is now the minumum required GNU C compiler version |
24 | ~~~~~~~~~~~~~~~~ | 24 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
25 | |||
26 | This version, released in 2018, is a minimum requirement | ||
27 | to build the ``mesa-native`` recipe. | ||
28 | |||
29 | .. _migration-4.2-new-nvd-api: | ||
30 | |||
31 | Fetching the NVD vulnerability database through the 2.0 API | ||
32 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
33 | |||
34 | This new version adds a new fetcher for the NVD database using the 2.0 API, | ||
35 | as the 1.0 API will be retired in 2023. | ||
36 | |||
37 | The implementation changes as little as possible, keeping the current | ||
38 | database format (but using a different database file for the transition | ||
39 | period), with a notable exception of not using the META table. | ||
40 | |||
41 | Here are minor changes that you may notice: | ||
42 | |||
43 | - The database starts in 1999 instead of 2002 | ||
44 | - The complete fetch is longer (30 minutes typically) | ||
45 | |||
46 | .. _migration-4.2-rust-crate-checksums: | ||
47 | |||
48 | Rust: mandatory checksums for crates | ||
49 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
50 | |||
51 | This release now supports checksums for Rust crates and make | ||
52 | them mandatory for each crate in a recipe. See :yocto_git:`python3_bcrypt recipe changes | ||
53 | </poky/commit/?h=mickledore&id=0dcb5ab3462fdaaf1646b05a00c7150eea711a9a>` | ||
54 | for example. | ||
55 | |||
56 | The ``cargo-update-recipe-crates`` utility | ||
57 | :yocto_git:`has been extended </poky/commit/?h=mickledore&id=eef7fbea2c5bf59369390be4d5efa915591b7b22>` | ||
58 | to include such checksums. So, in case you need to add the list of checksums | ||
59 | to a recipe just inheriting the :ref:`ref-classes-cargo` class so far, you can | ||
60 | follow these steps: | ||
61 | |||
62 | #. Make the recipe inherit :ref:`ref-classes-cargo-update-recipe-crates` | ||
63 | #. Remove all ``crate://`` lines from the recipe | ||
64 | #. Create an empty ``${BPN}-crates.inc`` file and make your recipe require it | ||
65 | #. Execute ``bitbake -c update_crates your_recipe`` | ||
66 | #. Copy and paste the output of BitBake about the missing checksums into the | ||
67 | ``${BPN}-crates.inc`` file. | ||
68 | |||
69 | .. _migration-4.2-supported-distributions: | ||
70 | |||
71 | Supported distributions | ||
72 | ~~~~~~~~~~~~~~~~~~~~~~~ | ||
73 | |||
74 | This release supports running BitBake on new GNU/Linux distributions: | ||
75 | |||
76 | - Fedora 36 and 37 | ||
77 | - AlmaLinux 8.7 and 9.1 | ||
78 | - OpenSuse 15.4 | ||
79 | |||
80 | On the other hand, some earlier distributions are no longer supported: | ||
81 | |||
82 | - Debian 10.x | ||
83 | - Fedora 34 and 35 | ||
84 | - AlmaLinux 8.5 | ||
85 | |||
86 | See :ref:`all supported distributions <system-requirements-supported-distros>`. | ||
25 | 87 | ||
26 | .. _migration-4.2-misc-changes: | 88 | .. _migration-4.2-misc-changes: |
27 | 89 | ||
@@ -30,6 +92,7 @@ Miscellaneous changes | |||
30 | 92 | ||
31 | - The ``OEBasic`` signature handler (see :term:`BB_SIGNATURE_HANDLER`) has been | 93 | - The ``OEBasic`` signature handler (see :term:`BB_SIGNATURE_HANDLER`) has been |
32 | removed. | 94 | removed. |
95 | |||
33 | 96 | ||
34 | .. _migration-4.2-removed-variables: | 97 | .. _migration-4.2-removed-variables: |
35 | 98 | ||
@@ -38,7 +101,7 @@ Removed variables | |||
38 | 101 | ||
39 | The following variables have been removed: | 102 | The following variables have been removed: |
40 | 103 | ||
41 | - ``SERIAL_CONSOLE``, deprecated since version 2.6, replaced by :term:``SERIAL_CONSOLES``. | 104 | - ``SERIAL_CONSOLE``, deprecated since version 2.6, replaced by :term:`SERIAL_CONSOLES`. |
42 | 105 | ||
43 | .. _migration-4.2-removed-recipes: | 106 | .. _migration-4.2-removed-recipes: |
44 | 107 | ||
@@ -47,3 +110,17 @@ Removed recipes | |||
47 | 110 | ||
48 | The following recipes have been removed in this release: | 111 | The following recipes have been removed in this release: |
49 | 112 | ||
113 | - ``python3-picobuild``: after switching to ``python3-build`` | ||
114 | - ``python3-strict-rfc3339``: unmaintained and not needed by anything in | ||
115 | :oe_git:`openembedded-core </openembedded-core>` | ||
116 | or :oe_git:`meta-openembedded </meta-openembedded>`. | ||
117 | |||
118 | .. _migration-4.2-removed-classes: | ||
119 | |||
120 | Removed classes | ||
121 | ~~~~~~~~~~~~~~~ | ||
122 | |||
123 | The following classes have been removed in this release: | ||
124 | |||
125 | - ``rust-bin``: no longer used in Poky | ||
126 | |||