@@ -276,11 +276,11 @@ upgrading the recipe to a future version is as simple as renaming the
recipe to match the new version.
Here is a simple example from the
-``meta/recipes-devtools/strace/strace_5.5.bb`` recipe where the source
+``meta/recipes-devtools/strace/strace_6.15.bb`` recipe where the source
comes from a single tarball. Notice the use of the
:term:`PV` variable::
- SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \
+ SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/strace-${PV}.tar.xz \
Files mentioned in :term:`SRC_URI` whose names end in a typical archive
extension (e.g. ``.tar``, ``.tar.gz``, ``.tar.bz2``, ``.zip``, and so
@@ -304,27 +304,31 @@ fetched from a remote server other than a version control system,
BitBake attempts to verify the files against checksums defined in your
recipe to ensure they have not been tampered with or otherwise modified
since the recipe was written. Multiple checksums are supported:
-``SRC_URI[md5sum]``, ``SRC_URI[sha1sum]``, ``SRC_URI[sha256sum]``.
+``SRC_URI[md5sum]``, ``SRC_URI[sha1sum]``, ``SRC_URI[sha256sum]``,
``SRC_URI[sha384sum]`` and ``SRC_URI[sha512sum]``, but only
``SRC_URI[sha256sum]`` is commonly used.
.. note::
- ``SRC_URI[md5sum]`` used to also be commonly used, but it is deprecated
- and should be replaced by ``SRC_URI[sha256sum]`` when updating existing
+ ``SRC_URI[md5sum]`` used to be common, but is now deprecated
+ in favour of ``SRC_URI[sha256sum]`` when updating existing
recipes.
If your :term:`SRC_URI` variable points to more than a single URL (excluding
SCM URLs), you need to provide the ``sha256`` checksum for each URL. For these
cases, you provide a name for each URL as part of the :term:`SRC_URI` and then
reference that name in the subsequent checksum statements. Here is an example
-combining lines from the files ``git.inc`` and ``git_2.24.1.bb``::
+from the recipe file ``gnuplot_5.4.3.bb``, which has two ``SRC_URI`` values that
+require naming::
- SRC_URI = "${KERNELORG_MIRROR}/software/scm/git/git-${PV}.tar.gz;name=tarball \
- ${KERNELORG_MIRROR}/software/scm/git/git-manpages-${PV}.tar.gz;name=manpages"
+ SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${PV}/${BP}.tar.gz;name=archive \
+ http://www.mneuroth.de/privat/zaurus/qtplot-0.2.tar.gz;name=qtplot \
+ file://gnuplot.desktop \
+ file://gnuplot.png \
+ "
- SRC_URI[tarball.sha256sum] = "ad5334956301c86841eb1e5b1bb20884a6bad89a10a6762c958220c7cf64da02"
- SRC_URI[manpages.sha256sum] = "9a7ae3a093bea39770eb96ca3e5b40bff7af0b9f6123f089d7821d0e5b8e1230"
+ SRC_URI[archive.sha256sum] = "51f89bbab90f96d3543f95235368d188eb1e26eda296912256abcd3535bd4d84"
+ SRC_URI[qtplot.sha256sum] = "6df317183ff62cc82f3dcf88207a267cd6478cb5147f55d7530c94f1ad5f4132"
The proper value for the ``sha256`` checksum might be available together
with other signatures on the download page for the upstream source (e.g.
Major updates: - update strace recipe version - replace git example with gnuplot, which actually has two SRC_URI values that need naming Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> ---