Patchwork update-rc.d: Switch from a tag to a sepcific revision

login
register
mail settings
Submitter Richard Purdie
Date July 11, 2011, 3:47 p.m.
Message ID <1310399257.20015.968.camel@rex>
Download mbox | patch
Permalink /patch/7311/
State New, archived
Headers show

Comments

Richard Purdie - July 11, 2011, 3:47 p.m.
Unfortunately the git fetcher cannot resolve a named tag into a revision
without network access. Since its desireable for OE-Core to function
in a networkless environment, we need to specify the revision in the
recipe which corresponds to the 0.7 tag.

[YOCTO #1140]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/recipes-core/update-rc.d/update-rc.d_0.7.bb |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
Joshua Lock - July 11, 2011, 4:59 p.m.
On Mon, 2011-07-11 at 16:47 +0100, Richard Purdie wrote:
> Unfortunately the git fetcher cannot resolve a named tag into a revision
> without network access. Since its desireable for OE-Core to function
> in a networkless environment, we need to specify the revision in the
> recipe which corresponds to the 0.7 tag.
> 
> [YOCTO #1140]
> 
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

Acked-by: Joshua Lock <josh@linux.intel.com>

> ---
>  meta/recipes-core/update-rc.d/update-rc.d_0.7.bb |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
> 
> diff --git a/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb b/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb
> index 5bd88cb..8bc3dbf 100644
> --- a/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb
> +++ b/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb
> @@ -7,7 +7,10 @@ LIC_FILES_CHKSUM = "file://update-rc.d;beginline=5;endline=15;md5=148a48321b10eb
>  
>  PR = "r4"
>  
> -SRC_URI = "git://github.com/philb/update-rc.d.git;tag=update-rc.d_${PV};protocol=git \
> +# Revision corresponding to tag update-rc.d_0.7
> +SRCREV = "eca680ddf28d024954895f59a241a622dd575c11"
> +
> +SRC_URI = "git://github.com/philb/update-rc.d.git;protocol=git \
>             file://add-verbose.patch;striplevel=1"
>  
>  S = "${WORKDIR}/git"

Patch

diff --git a/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb b/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb
index 5bd88cb..8bc3dbf 100644
--- a/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb
+++ b/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb
@@ -7,7 +7,10 @@  LIC_FILES_CHKSUM = "file://update-rc.d;beginline=5;endline=15;md5=148a48321b10eb
 
 PR = "r4"
 
-SRC_URI = "git://github.com/philb/update-rc.d.git;tag=update-rc.d_${PV};protocol=git \
+# Revision corresponding to tag update-rc.d_0.7
+SRCREV = "eca680ddf28d024954895f59a241a622dd575c11"
+
+SRC_URI = "git://github.com/philb/update-rc.d.git;protocol=git \
            file://add-verbose.patch;striplevel=1"
 
 S = "${WORKDIR}/git"