dev-manual: use "strace" for PV example, not cdrtools

Submitted by Robert P. J. Day on April 3, 2020, 12:01 p.m. | Patch ID: 171561


Message ID alpine.LFD.2.21.2004030757450.11595@localhost.localdomain
State New
Headers show

Commit Message

Robert P. J. Day April 3, 2020, 12:01 p.m.
Section 3.3.5, "Fetching Code", uses the cdrtools recipe as an example
for showing the use of PV, but that's a bad example since the current
cdrtools recipe file contains:

  SRC_URI = " \
  ${SOURCEFORGE_MIRROR}/project/cdrtools/cdrtools-${REALPV}.tar.bz2 \

  PV = "3.01a31+really3.01"
  REALPV = "3.01"

which is not exactly the point the dev manual is trying to make, so
replace with simpler strace recipe.

Signed-off-by: Robert P. J. Day <>


Patch hide | download patch | download mbox

diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml
index dfbc6eeb3..52eb54012 100644
--- a/documentation/dev-manual/dev-manual-common-tasks.xml
+++ b/documentation/dev-manual/dev-manual-common-tasks.xml
@@ -1900,9 +1900,9 @@ 
                 The <filename>SRC_URI</filename> variable in your recipe must
                 define each unique location for your source files.
-                It is good practice to not hard-code pathnames in an URL used
+                It is good practice to not hard-code version numbers in a URL used
                 in <filename>SRC_URI</filename>.
-                Rather than hard-code these paths, use
+                Rather than hard-code these values, use
                 <filename>${</filename><ulink url='&YOCTO_DOCS_REF_URL;#var-PV'><filename>PV</filename></ulink><filename>}</filename>,
                 which causes the fetch process to use the version specified in
                 the recipe filename.
@@ -1913,13 +1913,13 @@ 

                 Here is a simple example from the
-                <filename>meta/recipes-devtools/cdrtools/</filename>
+                <filename>meta/recipes-devtools/strace/</filename>
                 recipe where the source comes from a single tarball.
                 Notice the use of the
                 <ulink url='&YOCTO_DOCS_REF_URL;#var-PV'><filename>PV</filename></ulink>
                 <literallayout class='monospaced'>
-     SRC_URI = "${PV}.tar.bz2"
+     SRC_URI = "${PV}/strace-${PV}.tar.xz \