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