1*03907ee1SPatrick WilliamsRelease 4.0 (kirkstone) 2*03907ee1SPatrick Williams======================= 3*03907ee1SPatrick Williams 4*03907ee1SPatrick WilliamsMigration notes for 4.0 (kirkstone) 5*03907ee1SPatrick Williams----------------------------------- 6*03907ee1SPatrick Williams 7*03907ee1SPatrick WilliamsThis section provides migration information for moving to the Yocto 8*03907ee1SPatrick WilliamsProject 4.0 Release (codename "kirkstone") from the prior release. 9*03907ee1SPatrick Williams 10*03907ee1SPatrick Williams.. _migration-4.0-inclusive-language: 11*03907ee1SPatrick Williams 12*03907ee1SPatrick WilliamsInclusive language improvements 13*03907ee1SPatrick Williams~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 14*03907ee1SPatrick Williams 15*03907ee1SPatrick WilliamsTo use more `inclusive language <https://inclusivenaming.org/>`__ 16*03907ee1SPatrick Williamsin the code and documentation, some variables have been renamed, and 17*03907ee1SPatrick Williamssome have been deleted where they are no longer needed. In many cases the 18*03907ee1SPatrick Williamsnew names are also easier to understand. BitBake will stop with an error when 19*03907ee1SPatrick Williamsrenamed or removed variables still exist in your recipes or configuration. 20*03907ee1SPatrick Williams 21*03907ee1SPatrick WilliamsPlease note that the change applies also to environmental variables, so 22*03907ee1SPatrick Williamsmake sure you use a fresh environment for your build. 23*03907ee1SPatrick Williams 24*03907ee1SPatrick WilliamsThe following variables have changed their names: 25*03907ee1SPatrick Williams 26*03907ee1SPatrick Williams- ``BB_ENV_WHITELIST`` became :term:`BB_ENV_PASSTHROUGH` 27*03907ee1SPatrick Williams- ``BB_ENV_EXTRAWHITE`` became :term:`BB_ENV_PASSTHROUGH_ADDITIONS` 28*03907ee1SPatrick Williams- ``BB_HASHBASE_WHITELIST`` became :term:`BB_BASEHASH_IGNORE_VARS` 29*03907ee1SPatrick Williams- ``BB_HASHCONFIG_WHITELIST`` became :term:`BB_HASHCONFIG_IGNORE_VARS` 30*03907ee1SPatrick Williams- ``BB_HASHTASK_WHITELIST`` became ``BB_TASKHASH_IGNORE_TASKS`` 31*03907ee1SPatrick Williams- ``BB_SETSCENE_ENFORCE_WHITELIST`` became ``BB_SETSCENE_ENFORCE_IGNORE_TASKS`` 32*03907ee1SPatrick Williams- ``CVE_CHECK_PN_WHITELIST`` became :term:`CVE_CHECK_SKIP_RECIPE` 33*03907ee1SPatrick Williams- ``CVE_CHECK_WHITELIST`` became :term:`CVE_CHECK_IGNORE` 34*03907ee1SPatrick Williams- ``ICECC_USER_CLASS_BL`` became :term:`ICECC_CLASS_DISABLE` 35*03907ee1SPatrick Williams- ``ICECC_SYSTEM_CLASS_BL`` became :term:`ICECC_CLASS_DISABLE` 36*03907ee1SPatrick Williams- ``ICECC_USER_PACKAGE_WL`` became :term:`ICECC_RECIPE_ENABLE` 37*03907ee1SPatrick Williams- ``ICECC_USER_PACKAGE_BL`` became :term:`ICECC_RECIPE_DISABLE` 38*03907ee1SPatrick Williams- ``ICECC_SYSTEM_PACKAGE_BL`` became :term:`ICECC_RECIPE_DISABLE` 39*03907ee1SPatrick Williams- ``LICENSE_FLAGS_WHITELIST`` became :term:`LICENSE_FLAGS_ACCEPTED` 40*03907ee1SPatrick Williams- ``MULTI_PROVIDER_WHITELIST`` became :term:`BB_MULTI_PROVIDER_ALLOWED` 41*03907ee1SPatrick Williams- ``PNBLACKLIST`` became :term:`SKIP_RECIPE` 42*03907ee1SPatrick Williams- ``SDK_LOCAL_CONF_BLACKLIST`` became :term:`ESDK_LOCALCONF_REMOVE` 43*03907ee1SPatrick Williams- ``SDK_LOCAL_CONF_WHITELIST`` became :term:`ESDK_LOCALCONF_ALLOW` 44*03907ee1SPatrick Williams- ``SDK_INHERIT_BLACKLIST`` became :term:`ESDK_CLASS_INHERIT_DISABLE` 45*03907ee1SPatrick Williams- ``SSTATE_DUPWHITELIST`` became ``SSTATE_ALLOW_OVERLAP_FILES`` 46*03907ee1SPatrick Williams- ``SYSROOT_DIRS_BLACKLIST`` became :term:`SYSROOT_DIRS_IGNORE` 47*03907ee1SPatrick Williams- ``UNKNOWN_CONFIGURE_WHITELIST`` became :term:`UNKNOWN_CONFIGURE_OPT_IGNORE` 48*03907ee1SPatrick Williams- ``WHITELIST_<license>`` became ``INCOMPATIBLE_LICENSE_EXCEPTIONS`` 49*03907ee1SPatrick Williams 50*03907ee1SPatrick WilliamsIn addition, ``BB_STAMP_WHITELIST``, ``BB_STAMP_POLICY``, ``INHERIT_BLACKLIST``, 51*03907ee1SPatrick Williams``TUNEABI``, ``TUNEABI_WHITELIST``, and ``TUNEABI_OVERRIDE`` have been removed. 52*03907ee1SPatrick Williams 53*03907ee1SPatrick WilliamsMany internal variable names have been also renamed accordingly. 54*03907ee1SPatrick Williams 55*03907ee1SPatrick WilliamsIn addition, in the ``cve-check`` output, the CVE issue status ``Whitelisted`` 56*03907ee1SPatrick Williamshas been renamed to ``Ignored``. 57*03907ee1SPatrick Williams 58*03907ee1SPatrick WilliamsThe :term:`BB_DISKMON_DIRS` variable value now uses the term ``HALT`` 59*03907ee1SPatrick Williamsinstead of ``ABORT``. 60*03907ee1SPatrick Williams 61*03907ee1SPatrick WilliamsA :oe_git:`convert-variable-renames.py 62*03907ee1SPatrick Williams</openembedded-core/tree/scripts/contrib/convert-variable-renames.py>` 63*03907ee1SPatrick Williamsscript is provided to convert your recipes and configuration, 64*03907ee1SPatrick Williamsand also warns you about the use of problematic words. The script performs 65*03907ee1SPatrick Williamschanges and you need to review them before committing. An example warning 66*03907ee1SPatrick Williamslooks like:: 67*03907ee1SPatrick Williams 68*03907ee1SPatrick Williams poky/scripts/lib/devtool/upgrade.py needs further work at line 275 since it contains abort 69*03907ee1SPatrick Williams 70*03907ee1SPatrick WilliamsFetching changes 71*03907ee1SPatrick Williams~~~~~~~~~~~~~~~~ 72*03907ee1SPatrick Williams 73*03907ee1SPatrick Williams- Because of the uncertainty in future default branch names in git repositories, 74*03907ee1SPatrick Williams it is now required to add a branch name to all URLs described 75*03907ee1SPatrick Williams by ``git://`` and ``gitsm://`` :term:`SRC_URI` entries. For example:: 76*03907ee1SPatrick Williams 77*03907ee1SPatrick Williams SRC_URI = "git://git.denx.de/u-boot.git;branch=master" 78*03907ee1SPatrick Williams 79*03907ee1SPatrick Williams A :oe_git:`convert-srcuri </openembedded-core/tree/scripts/contrib/convert-srcuri.py>` 80*03907ee1SPatrick Williams script to convert your recipes is available in :term:`OpenEmbedded-Core (OE-Core)` 81*03907ee1SPatrick Williams and in :term:`Poky`. 82*03907ee1SPatrick Williams 83*03907ee1SPatrick Williams- Because of `GitHub dropping support for the git: 84*03907ee1SPatrick Williams protocol <https://github.blog/2021-09-01-improving-git-protocol-security-github/>`__, 85*03907ee1SPatrick Williams recipes now need to use ``;protocol=https`` at the end of GitHub 86*03907ee1SPatrick Williams URLs. The same ``convert-srcuri`` script mentioned above can be used to convert 87*03907ee1SPatrick Williams your recipes. 88*03907ee1SPatrick Williams 89*03907ee1SPatrick Williams- Network access from tasks is now disabled by default on kernels which support 90*03907ee1SPatrick Williams this feature (on most recent distros such as CentOS 8 and Debian 11 onwards). 91*03907ee1SPatrick Williams This means that tasks accessing the network need to be marked as such with the ``network`` 92*03907ee1SPatrick Williams flag. For example:: 93*03907ee1SPatrick Williams 94*03907ee1SPatrick Williams do_mytask[network] = "1" 95*03907ee1SPatrick Williams 96*03907ee1SPatrick Williams This is allowed by default from ``do_fetch`` but not from any of our other standard 97*03907ee1SPatrick Williams tasks. Recipes shouldn't be accessing the network outside of ``do_fetch`` as it 98*03907ee1SPatrick Williams usually undermines fetcher source mirroring, image and licence manifests, software 99*03907ee1SPatrick Williams auditing and supply chain security. 100*03907ee1SPatrick Williams 101*03907ee1SPatrick WilliamsLicense changes 102*03907ee1SPatrick Williams~~~~~~~~~~~~~~~ 103*03907ee1SPatrick Williams 104*03907ee1SPatrick Williams- The ambiguous "BSD" license has been removed from the ``common-licenses`` directory. 105*03907ee1SPatrick Williams Each recipe that fetches or builds BSD-licensed code should specify the proper 106*03907ee1SPatrick Williams version of the BSD license in its :term:`LICENSE` value. 107*03907ee1SPatrick Williams 108*03907ee1SPatrick Williams- :term:`LICENSE` variable values should now use `SPDX identifiers <https://spdx.org/licenses/>`__. 109*03907ee1SPatrick Williams If they do not, by default a warning will be shown. A 110*03907ee1SPatrick Williams :oe_git:`convert-spdx-licenses.py </openembedded-core/tree/scripts/contrib/convert-spdx-licenses.py>` 111*03907ee1SPatrick Williams script can be used to update your recipes. 112*03907ee1SPatrick Williams 113*03907ee1SPatrick Williams- :term:`INCOMPATIBLE_LICENSE` should now use `SPDX identifiers <https://spdx.org/licenses/>`__. 114*03907ee1SPatrick Williams Additionally, wildcarding is now limited to specifically supported values - 115*03907ee1SPatrick Williams see the :term:`INCOMPATIBLE_LICENSE` documentation for further information. 116*03907ee1SPatrick Williams 117*03907ee1SPatrick Williams- The ``AVAILABLE_LICENSES`` variable has been removed. This variable was a performance 118*03907ee1SPatrick Williams liability and is highly dependent on which layers are added to the configuration, 119*03907ee1SPatrick Williams which can cause signature issues for users. In addition the ``available_licenses()`` 120*03907ee1SPatrick Williams function has been removed from the :ref:`license <ref-classes-license>` class as 121*03907ee1SPatrick Williams it is no longer needed. 122*03907ee1SPatrick Williams 123*03907ee1SPatrick WilliamsRemoved recipes 124*03907ee1SPatrick Williams~~~~~~~~~~~~~~~ 125*03907ee1SPatrick Williams 126*03907ee1SPatrick WilliamsThe following recipes have been removed in this release: 127*03907ee1SPatrick Williams 128*03907ee1SPatrick Williams- ``dbus-test``: merged into main dbus recipe 129*03907ee1SPatrick Williams- ``libid3tag``: moved to meta-oe - no longer needed by anything in OE-Core 130*03907ee1SPatrick Williams- ``libportal``: moved to meta-gnome - no longer needed by anything in OE-Core 131*03907ee1SPatrick Williams- ``linux-yocto``: removed version 5.14 recipes (5.15 and 5.10 still provided) 132*03907ee1SPatrick Williams- ``python3-nose``: has not changed since 2016 upstream, and no longer needed by anything in OE-Core 133*03907ee1SPatrick Williams- ``rustfmt``: not especially useful as a standalone recipe 134*03907ee1SPatrick Williams 135*03907ee1SPatrick WilliamsPython changes 136*03907ee1SPatrick Williams~~~~~~~~~~~~~~ 137*03907ee1SPatrick Williams 138*03907ee1SPatrick Williams- ``distutils`` has been deprecated upstream in Python 3.10 and thus the ``distutils*`` 139*03907ee1SPatrick Williams classes have been moved to ``meta-python``. Recipes that inherit the ``distutils*`` 140*03907ee1SPatrick Williams classes should be updated to inherit ``setuptools*`` equivalents instead. 141*03907ee1SPatrick Williams 142*03907ee1SPatrick Williams- The Python package build process is now based on `wheels <https://pythonwheels.com/>`__. 143*03907ee1SPatrick Williams Here are the new Python packaging classes that should be used: 144*03907ee1SPatrick Williams :ref:`python_flit_core <ref-classes-python_flit_core>`, 145*03907ee1SPatrick Williams :ref:`python_setuptools_build_meta <ref-classes-python_setuptools_build_meta>` 146*03907ee1SPatrick Williams and :ref:`python_poetry_core <ref-classes-python_poetry_core>`. 147*03907ee1SPatrick Williams 148*03907ee1SPatrick Williams- The :ref:`setuptools3 <ref-classes-setuptools3>` class ``do_install()`` task now 149*03907ee1SPatrick Williams installs the ``wheel`` binary archive. In current versions of ``setuptools`` the 150*03907ee1SPatrick Williams legacy ``setup.py install`` method is deprecated. If the ``setup.py`` cannot be used 151*03907ee1SPatrick Williams with wheels, for example it creates files outside of the Python module or standard 152*03907ee1SPatrick Williams entry points, then :ref:`setuptools3_legacy <ref-classes-setuptools3_legacy>` should 153*03907ee1SPatrick Williams be used instead. 154*03907ee1SPatrick Williams 155*03907ee1SPatrick WilliamsPrelink removed 156*03907ee1SPatrick Williams~~~~~~~~~~~~~~~ 157*03907ee1SPatrick Williams 158*03907ee1SPatrick WilliamsPrelink has been dropped by ``glibc`` upstream in 2.36. It already caused issues with 159*03907ee1SPatrick Williamsbinary corruption, has a number of open bugs and is of questionable benefit 160*03907ee1SPatrick Williamswithout disabling load address randomization and PIE executables. 161*03907ee1SPatrick Williams 162*03907ee1SPatrick WilliamsWe disabled prelinking by default in the honister (3.4) release, but left it able 163*03907ee1SPatrick Williamsto be enabled if desired. However, without glibc support it cannot be maintained 164*03907ee1SPatrick Williamsany further, so all of the prelinking functionality has been removed in this release. 165*03907ee1SPatrick WilliamsIf you were enabling the ``image-prelink`` class in :term:`INHERIT`, :term:`IMAGE_CLASSES`, 166*03907ee1SPatrick Williams:term:`USER_CLASSES` etc in your configuration, then you will need to remove the 167*03907ee1SPatrick Williamsreference(s). 168*03907ee1SPatrick Williams 169*03907ee1SPatrick WilliamsReproducible as standard 170*03907ee1SPatrick Williams~~~~~~~~~~~~~~~~~~~~~~~~ 171*03907ee1SPatrick Williams 172*03907ee1SPatrick WilliamsReproducibility is now considered as standard functionality, thus the 173*03907ee1SPatrick Williams``reproducible`` class has been removed and its previous contents merged into the 174*03907ee1SPatrick Williams:ref:`base <ref-classes-base>` class. If you have references in your configuration to 175*03907ee1SPatrick Williams``reproducible`` in :term:`INHERIT`, :term:`USER_CLASSES` etc. then they should be 176*03907ee1SPatrick Williamsremoved. 177*03907ee1SPatrick Williams 178*03907ee1SPatrick WilliamsAdditionally, the ``BUILD_REPRODUCIBLE_BINARIES`` variable is no longer used. 179*03907ee1SPatrick WilliamsSpecifically for the kernel, if you wish to enable build timestamping functionality 180*03907ee1SPatrick Williamsthat is normally disabled for reproducibility reasons, you can do so by setting 181*03907ee1SPatrick Williamsa new :term:`KERNEL_DEBUG_TIMESTAMPS` variable to "1". 182*03907ee1SPatrick Williams 183*03907ee1SPatrick WilliamsSupported host distribution changes 184*03907ee1SPatrick Williams~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 185*03907ee1SPatrick Williams 186*03907ee1SPatrick Williams- Support for `AlmaLinux <https://en.wikipedia.org/wiki/AlmaLinux>`__ 187*03907ee1SPatrick Williams hosts replacing `CentOS <https://en.wikipedia.org/wiki/CentOS>`__. 188*03907ee1SPatrick Williams The following distribution versions were dropped: CentOS 8, Ubuntu 16.04 and Fedora 30, 31 and 32. 189*03907ee1SPatrick Williams 190*03907ee1SPatrick Williams- ``gcc`` version 7.5 is now required at minimum on the build host. For older 191*03907ee1SPatrick Williams host distributions where this is not available, you can use the 192*03907ee1SPatrick Williams ``buildtools-extended-tarball`` (easily installable using 193*03907ee1SPatrick Williams ``scripts/install-buildtools``). 194*03907ee1SPatrick Williams 195*03907ee1SPatrick Williams:append/:prepend in combination with other operators 196*03907ee1SPatrick Williams~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 197*03907ee1SPatrick Williams 198*03907ee1SPatrick WilliamsThe ``append``, ``prepend`` and ``remove`` operators can now only be combined with 199*03907ee1SPatrick Williams``=`` and ``:=`` operators. To the exception of the ``append`` plus ``+=`` and 200*03907ee1SPatrick Williams``prepend`` plus ``=+`` combinations, all combinations could be factored up to the 201*03907ee1SPatrick Williams``append``, ``prepend`` or ``remove`` in the combination. This brought a lot of 202*03907ee1SPatrick Williamsconfusion on how the override style syntax operators work and should be used. 203*03907ee1SPatrick WilliamsTherefore, those combinations should be replaced by a single ``append``, 204*03907ee1SPatrick Williams``prepend`` or ``remove`` operator without any additional change. 205*03907ee1SPatrick WilliamsFor the ``append`` plus ``+=`` (and ``prepend`` plus ``=+``) combinations, 206*03907ee1SPatrick Williamsthe content should be prefixed (respectively suffixed) by a space to maintain 207*03907ee1SPatrick Williamsthe same behavior. You can learn more about override style syntax operators 208*03907ee1SPatrick Williams(``append``, ``prepend`` and ``remove``) in the BitBake documentation: 209*03907ee1SPatrick Williams:ref:`bitbake:bitbake-user-manual/bitbake-user-manual-metadata:appending and prepending (override style syntax)` 210*03907ee1SPatrick Williamsand :ref:`bitbake:bitbake-user-manual/bitbake-user-manual-metadata:removal (override style syntax)`. 211*03907ee1SPatrick Williams 212*03907ee1SPatrick WilliamsMiscellaneous changes 213*03907ee1SPatrick Williams~~~~~~~~~~~~~~~~~~~~~ 214*03907ee1SPatrick Williams 215*03907ee1SPatrick Williams- ``blacklist.bbclass`` is removed and the functionality moved to the 216*03907ee1SPatrick Williams :ref:`base <ref-classes-base>` class with a more descriptive 217*03907ee1SPatrick Williams ``varflag`` variable named :term:`SKIP_RECIPE` which will use the `bb.parse.SkipRecipe()` 218*03907ee1SPatrick Williams function. The usage remains the same, for example:: 219*03907ee1SPatrick Williams 220*03907ee1SPatrick Williams SKIP_RECIPE[my-recipe] = "Reason for skipping recipe" 221*03907ee1SPatrick Williams 222*03907ee1SPatrick Williams- :ref:`allarch <ref-classes-allarch>` packagegroups can no longer depend on packages 223*03907ee1SPatrick Williams which use :term:`PKG` renaming such as :ref:`ref-classes-debian`. Such packagegroups 224*03907ee1SPatrick Williams recipes should be changed to avoid inheriting :ref:`allarch <ref-classes-allarch>`. 225*03907ee1SPatrick Williams 226*03907ee1SPatrick Williams- The ``lnr`` script has been removed. ``lnr`` implemented the same behaviour as `ln --relative --symbolic`, 227*03907ee1SPatrick Williams since at the time of creation `--relative` was only available in coreutils 8.16 228*03907ee1SPatrick Williams onwards which was too new for the older supported distros. Current supported host 229*03907ee1SPatrick Williams distros have a new enough version of coreutils, so it is no longer needed. If you have 230*03907ee1SPatrick Williams any calls to ``lnr`` in your recipes or classes, they should be replaced with 231*03907ee1SPatrick Williams `ln --relative --symbolic` or `ln -rs` if you prefer the short version. 232*03907ee1SPatrick Williams 233*03907ee1SPatrick Williams- The ``package_qa_handle_error()`` function formerly in the :ref:`insane <ref-classes-insane>` 234*03907ee1SPatrick Williams class has been moved and renamed - if you have any references in your own custom 235*03907ee1SPatrick Williams classes they should be changed to ``oe.qa.handle_error()``. 236*03907ee1SPatrick Williams 237*03907ee1SPatrick Williams- When building ``perl``, Berkeley db support is no longer enabled by default, since 238*03907ee1SPatrick Williams Berkeley db is largely obsolete. If you wish to reenable it, you can append ``bdb`` 239*03907ee1SPatrick Williams to :term:`PACKAGECONFIG` in a ``perl`` bbappend or ``PACKAGECONFIG:pn-perl`` at 240*03907ee1SPatrick Williams the configuration level. 241*03907ee1SPatrick Williams 242*03907ee1SPatrick Williams- For the ``xserver-xorg`` recipe, the ``xshmfence``, ``xmlto`` and ``systemd`` options 243*03907ee1SPatrick Williams previously supported in :term:`PACKAGECONFIG` have been removed, as they are no 244*03907ee1SPatrick Williams longer supported since the move from building it with autotools to meson in this release. 245*03907ee1SPatrick Williams 246*03907ee1SPatrick Williams- For the ``libsdl2`` recipe, various X11 features are now disabled by default (primarily 247*03907ee1SPatrick Williams for reproducibility purposes in the native case) with options in :term:`EXTRA_OECMAKE` 248*03907ee1SPatrick Williams within the recipe. These can be changed within a bbappend if desired. See the 249*03907ee1SPatrick Williams ``libsdl2`` recipe for more details. 250*03907ee1SPatrick Williams 251*03907ee1SPatrick Williams- The ``cortexa72-crc`` and ``cortexa72-crc-crypto`` tunes have been removed since 252*03907ee1SPatrick Williams the crc extension is now enabled by default for cortexa72. Replace any references to 253*03907ee1SPatrick Williams these with ``cortexa72`` and ``cortexa72-crypto`` respectively. 254*03907ee1SPatrick Williams 255*03907ee1SPatrick Williams- The Python development shell (previously known as ``devpyshell``) feature has been 256*03907ee1SPatrick Williams renamed to ``pydevshell``. To start it you should now run:: 257*03907ee1SPatrick Williams 258*03907ee1SPatrick Williams bitbake <target> -c pydevshell 259*03907ee1SPatrick Williams 260*03907ee1SPatrick Williams- The ``packagegroups-core-full-cmdline-libs`` packagegroup is no longer produced, as 261*03907ee1SPatrick Williams libraries should normally be brought in via dependencies. If you have any references 262*03907ee1SPatrick Williams to this then remove them. 263*03907ee1SPatrick Williams 264*03907ee1SPatrick Williams- The :term:`TOPDIR` variable and the current working directory are no longer modified 265*03907ee1SPatrick Williams when parsing recipes. Any code depending on the previous behaviour will no longer 266*03907ee1SPatrick Williams work - change any such code to explicitly use appropriate path variables instead. 267*03907ee1SPatrick Williams 268