summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrpjday@crashcourse.ca <rpjday@crashcourse.ca>2020-04-03 12:01:03 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-04-06 15:53:24 (GMT)
commit43ad3f54eabc5a7c5086a2a551224cb817c167b8 (patch)
treed56842624f6e4397034ea9d0c604bafa4c2b46d3
parent45792835fe180b92ddad04d22258b422d9426694 (diff)
downloadpoky-43ad3f54eabc5a7c5086a2a551224cb817c167b8.tar.gz
dev-manual: use "strace" for PV example, not cdrtools
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. (From yocto-docs rev: d865b0288a4162a8d4df9a2abde43875e3dc2ced) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--documentation/dev-manual/dev-manual-common-tasks.xml8
1 files changed, 4 insertions, 4 deletions
diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml
index aca750f..deeb358 100644
--- a/documentation/dev-manual/dev-manual-common-tasks.xml
+++ b/documentation/dev-manual/dev-manual-common-tasks.xml
@@ -1941,9 +1941,9 @@
1941 <para> 1941 <para>
1942 The <filename>SRC_URI</filename> variable in your recipe must 1942 The <filename>SRC_URI</filename> variable in your recipe must
1943 define each unique location for your source files. 1943 define each unique location for your source files.
1944 It is good practice to not hard-code pathnames in an URL used 1944 It is good practice to not hard-code version numbers in a URL used
1945 in <filename>SRC_URI</filename>. 1945 in <filename>SRC_URI</filename>.
1946 Rather than hard-code these paths, use 1946 Rather than hard-code these values, use
1947 <filename>${</filename><ulink url='&YOCTO_DOCS_REF_URL;#var-PV'><filename>PV</filename></ulink><filename>}</filename>, 1947 <filename>${</filename><ulink url='&YOCTO_DOCS_REF_URL;#var-PV'><filename>PV</filename></ulink><filename>}</filename>,
1948 which causes the fetch process to use the version specified in 1948 which causes the fetch process to use the version specified in
1949 the recipe filename. 1949 the recipe filename.
@@ -1954,13 +1954,13 @@
1954 1954
1955 <para> 1955 <para>
1956 Here is a simple example from the 1956 Here is a simple example from the
1957 <filename>meta/recipes-devtools/cdrtools/cdrtools-native_3.01a20.bb</filename> 1957 <filename>meta/recipes-devtools/strace/strace_5.5.bb</filename>
1958 recipe where the source comes from a single tarball. 1958 recipe where the source comes from a single tarball.
1959 Notice the use of the 1959 Notice the use of the
1960 <ulink url='&YOCTO_DOCS_REF_URL;#var-PV'><filename>PV</filename></ulink> 1960 <ulink url='&YOCTO_DOCS_REF_URL;#var-PV'><filename>PV</filename></ulink>
1961 variable: 1961 variable:
1962 <literallayout class='monospaced'> 1962 <literallayout class='monospaced'>
1963 SRC_URI = "ftp://ftp.berlios.de/pub/cdrecord/alpha/cdrtools-${PV}.tar.bz2" 1963 SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \
1964 </literallayout> 1964 </literallayout>
1965 </para> 1965 </para>
1966 1966