xref: /OK3568_Linux_fs/yocto/poky/documentation/migration-guides/migration-3.3.rst (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunRelease 3.3 (hardknott)
2*4882a593Smuzhiyun=======================
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunThis section provides migration information for moving to the Yocto
5*4882a593SmuzhiyunProject 3.3 Release (codename "hardknott") from the prior release.
6*4882a593Smuzhiyun
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun.. _migration-3.3-minimum-system-requirements:
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunMinimum system requirements
11*4882a593Smuzhiyun---------------------------
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunYou will now need at least Python 3.6 installed on your build host. Most recent
14*4882a593Smuzhiyundistributions provide this, but should you be building on a distribution that
15*4882a593Smuzhiyundoes not have it, you can use the ``buildtools-tarball`` (easily installable
16*4882a593Smuzhiyunusing ``scripts/install-buildtools``) - see
17*4882a593Smuzhiyun:ref:`ref-manual/system-requirements:required git, tar, python and gcc versions`
18*4882a593Smuzhiyunfor details.
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun
21*4882a593Smuzhiyun.. _migration-3.3-removed-recipes:
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunRemoved recipes
24*4882a593Smuzhiyun---------------
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunThe following recipes have been removed:
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun- ``go-dep``: obsolete with the advent of go modules
29*4882a593Smuzhiyun- ``gst-validate``: replaced by ``gst-devtools``
30*4882a593Smuzhiyun- ``linux-yocto``: removed 5.8 version recipes (5.4 / 5.10 still provided)
31*4882a593Smuzhiyun- ``vulkan-demos``: replaced by ``vulkan-samples``
32*4882a593Smuzhiyun
33*4882a593Smuzhiyun
34*4882a593Smuzhiyun.. _migration-3.3-common-license-only-versions:
35*4882a593Smuzhiyun
36*4882a593SmuzhiyunSingle version common license file naming
37*4882a593Smuzhiyun-----------------------------------------
38*4882a593Smuzhiyun
39*4882a593SmuzhiyunSome license files in ``meta/files/common-licenses`` have been renamed to match
40*4882a593Smuzhiyuncurrent SPDX naming conventions:
41*4882a593Smuzhiyun
42*4882a593Smuzhiyun- AGPL-3.0 -> AGPL-3.0-only
43*4882a593Smuzhiyun- GPL-1.0 -> GPL-1.0-only
44*4882a593Smuzhiyun- GPL-2.0 -> GPL-2.0-only
45*4882a593Smuzhiyun- GPL-3.0 -> GPL-3.0-only
46*4882a593Smuzhiyun- LGPL-2.0 -> LGPL-2.0-only
47*4882a593Smuzhiyun- LGPL-2.1 -> LGPL-2.1-only
48*4882a593Smuzhiyun- LGPL-3.0 -> LGPL-3.0-only
49*4882a593Smuzhiyun
50*4882a593SmuzhiyunAdditionally, corresponding "-or-later" suffixed files have been added e.g.
51*4882a593Smuzhiyun``GPL-2.0-or-later``.
52*4882a593Smuzhiyun
53*4882a593SmuzhiyunIt is not required that you change :term:`LICENSE` values as there are mappings
54*4882a593Smuzhiyunfrom the original names in place; however, in rare cases where you have a recipe
55*4882a593Smuzhiyunwhich sets :term:`LIC_FILES_CHKSUM` to point to file(s) in
56*4882a593Smuzhiyun``meta/files/common-licenses`` (which in any case is not recommended) you will
57*4882a593Smuzhiyunneed to update those.
58*4882a593Smuzhiyun
59*4882a593Smuzhiyun
60*4882a593Smuzhiyun.. _migration-3.3-python3targetconfig:
61*4882a593Smuzhiyun
62*4882a593SmuzhiyunNew ``python3targetconfig`` class
63*4882a593Smuzhiyun---------------------------------
64*4882a593Smuzhiyun
65*4882a593SmuzhiyunA new :ref:`python3targetconfig <ref-classes-python3targetconfig>` class has been
66*4882a593Smuzhiyuncreated for situations where you would previously have inherited the
67*4882a593Smuzhiyun:ref:`python3native <ref-classes-python3native>` class but need access to target configuration data (such as
68*4882a593Smuzhiyuncorrect installation directories). Recipes where this situation applies should
69*4882a593Smuzhiyunbe changed to inherit ``python3targetconfig`` instead of ``python3native``. This
70*4882a593Smuzhiyunalso adds a dependency on target ``python3``, so it should only be used where
71*4882a593Smuzhiyunappropriate in order to avoid unnecessarily lengthening builds.
72*4882a593Smuzhiyun
73*4882a593SmuzhiyunSome example recipes where this change has been made: ``gpgme``, ``libcap-ng``,
74*4882a593Smuzhiyun``python3-pycairo``.
75*4882a593Smuzhiyun
76*4882a593Smuzhiyun
77*4882a593Smuzhiyun.. _migration-3.3-distutils-path:
78*4882a593Smuzhiyun
79*4882a593Smuzhiyun``setup.py`` path for python modules
80*4882a593Smuzhiyun------------------------------------
81*4882a593Smuzhiyun
82*4882a593SmuzhiyunIn a Python module, sometimes ``setup.py`` can be buried deep in the
83*4882a593Smuzhiyunsource tree. Previously this was handled in recipes by setting :term:`S` to
84*4882a593Smuzhiyunpoint to the subdirectory within the source where ``setup.py`` is located.
85*4882a593SmuzhiyunHowever with the recent :ref:`pseudo <overview-manual/concepts:fakeroot and pseudo>`
86*4882a593Smuzhiyunchanges, some Python modules make changes to files beneath ``${S}``, for
87*4882a593Smuzhiyunexample::
88*4882a593Smuzhiyun
89*4882a593Smuzhiyun   S = "${WORKDIR}/git/python/pythonmodule"
90*4882a593Smuzhiyun
91*4882a593Smuzhiyunthen in ``setup.py`` it works with source code in a relative fashion, such
92*4882a593Smuzhiyunas ``../../src``. This causes pseudo to fail as it isn't able to track
93*4882a593Smuzhiyunthe paths properly. This release introduces a new ``DISTUTILS_SETUP_PATH``
94*4882a593Smuzhiyunvariable so that recipes can specify it explicitly, for example::
95*4882a593Smuzhiyun
96*4882a593Smuzhiyun   S = "${WORKDIR}/git"
97*4882a593Smuzhiyun   DISTUTILS_SETUP_PATH = "${S}/python/pythonmodule"
98*4882a593Smuzhiyun
99*4882a593SmuzhiyunRecipes that inherit from ``distutils3`` (or
100*4882a593Smuzhiyun:ref:`setuptools3 <ref-classes-setuptools3>` which itself inherits
101*4882a593Smuzhiyun``distutils3``) that also set :term:`S` to
102*4882a593Smuzhiyunpoint to a Python module within a subdirectory in the aforementioned
103*4882a593Smuzhiyunmanner should be changed to set ``DISTUTILS_SETUP_PATH`` instead.
104*4882a593Smuzhiyun
105*4882a593Smuzhiyun
106*4882a593Smuzhiyun.. _migration-3.3-bitbake:
107*4882a593Smuzhiyun
108*4882a593SmuzhiyunBitBake changes
109*4882a593Smuzhiyun---------------
110*4882a593Smuzhiyun
111*4882a593Smuzhiyun- BitBake is now configured to use a default ``umask`` of ``022`` for all tasks
112*4882a593Smuzhiyun  (specified via a new :term:`BB_DEFAULT_UMASK` variable). If needed, ``umask`` can
113*4882a593Smuzhiyun  still be set on a per-task basis via the ``umask`` varflag on the task
114*4882a593Smuzhiyun  function, but that is unlikely to be necessary in most cases.
115*4882a593Smuzhiyun
116*4882a593Smuzhiyun- If a version specified in :term:`PREFERRED_VERSION` is not available this
117*4882a593Smuzhiyun  will now trigger a warning instead of just a note, making such issues more
118*4882a593Smuzhiyun  visible.
119*4882a593Smuzhiyun
120*4882a593Smuzhiyun
121*4882a593Smuzhiyun.. _migration-3.3-packaging:
122*4882a593Smuzhiyun
123*4882a593SmuzhiyunPackaging changes
124*4882a593Smuzhiyun-----------------
125*4882a593Smuzhiyun
126*4882a593SmuzhiyunThe following packaging changes have been made; in all cases the main package
127*4882a593Smuzhiyunstill depends upon the split out packages so you should not need to do anything
128*4882a593Smuzhiyununless you want to take advantage of the improved granularity:
129*4882a593Smuzhiyun
130*4882a593Smuzhiyun- ``dbus``: ``-common`` and ``-tools`` split out
131*4882a593Smuzhiyun- ``iproute2``: split ``ip`` binary to its own package
132*4882a593Smuzhiyun- ``net-tools``: split ``mii-tool`` into its own package
133*4882a593Smuzhiyun- ``procps``: split ``ps`` and ``sysctl`` into their own packages
134*4882a593Smuzhiyun- ``rpm``: split build and extra functionality into separate packages
135*4882a593Smuzhiyun- ``sudo``: split ``sudo`` binary into ``sudo-sudo`` and libs into ``sudo-lib``
136*4882a593Smuzhiyun- ``systemtap``: examples, python scripts and runtime material split out
137*4882a593Smuzhiyun- ``util-linux``: ``libuuid`` has been split out to its own
138*4882a593Smuzhiyun  ``util-linux-libuuid`` recipe (and corresponding packages) to avoid circular
139*4882a593Smuzhiyun  dependencies if ``libgcrypt`` support is enabled in ``util-linux``.
140*4882a593Smuzhiyun  (``util-linux`` depends upon ``util-linux-libuuid``.)
141*4882a593Smuzhiyun
142*4882a593Smuzhiyun
143*4882a593Smuzhiyun.. _migration-3.3-misc:
144*4882a593Smuzhiyun
145*4882a593SmuzhiyunMiscellaneous changes
146*4882a593Smuzhiyun---------------------
147*4882a593Smuzhiyun
148*4882a593Smuzhiyun- The default poky :term:`DISTRO_VERSION` value now uses the core metadata's
149*4882a593Smuzhiyun  git hash (i.e. :term:`METADATA_REVISION`) rather than the date (i.e.
150*4882a593Smuzhiyun  :term:`DATE`) to reduce one small source of non-reproducibility. You can
151*4882a593Smuzhiyun  of course specify your own :term:`DISTRO_VERSION` value as desired
152*4882a593Smuzhiyun  (particularly if you create your own custom distro configuration).
153*4882a593Smuzhiyun- ``adwaita-icon-theme`` version 3.34.3 has been added back, and is selected
154*4882a593Smuzhiyun  as the default via :term:`PREFERRED_VERSION` in
155*4882a593Smuzhiyun  ``meta/conf/distro/include/default-versions.inc`` due to newer versions
156*4882a593Smuzhiyun  not working well with ``librsvg`` 2.40. ``librsvg`` is not practically
157*4882a593Smuzhiyun  upgradeable at the moment as it has been ported to Rust, and Rust is not
158*4882a593Smuzhiyun  (yet) in OE-Core, but this will change in a future release.
159*4882a593Smuzhiyun- ``ffmpeg`` is now configured to disable GPL-licensed portions by default
160*4882a593Smuzhiyun  to make it harder to accidentally violate the GPL. To explicitly enable GPL
161*4882a593Smuzhiyun  licensed portions, add ``gpl`` to :term:`PACKAGECONFIG` for ``ffmpeg``
162*4882a593Smuzhiyun  using a bbappend (or use ``PACKAGECONFIG_append_pn-ffmpeg = " gpl"`` in
163*4882a593Smuzhiyun  your configuration.)
164*4882a593Smuzhiyun- ``connman`` is now set to conflict with ``systemd-networkd`` as they
165*4882a593Smuzhiyun  overlap functionally and may interfere with each other at runtime.
166*4882a593Smuzhiyun- Canonical SPDX license names are now used in image license manifests in
167*4882a593Smuzhiyun  order to avoid aliases of the same license from showing up together (e.g.
168*4882a593Smuzhiyun  ``GPLv2`` and ``GPL-2.0``)
169