Skip to content

Move 'tag=' for a few SRC_URIs to SRCREV

Evade Flow yocto 1 version Applied

Status from this message: Merged into OE-Core

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2Move 'tag=' to SRCREV in btrfs-tools recipemeta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb+2 -10 replies
2/2Move 'tag=' to SRCREV in mtd-utils recipemeta/recipes-devtools/mtd/mtd-utils_1.5.0.bb+2 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Move 'tag=' for a few SRC_URIs to SRCREV

Sending in response to:

- http://lists.yoctoproject.org/pipermail/yocto/2012-September/011802.html

Building with BB_NO_NETWORK can fail if recipes specify 'tag=' in SRC_URI, since bitbake must contact the source repository to verify which hash the tag currently points to. Since tags can, in principle, change, current best practice is to omit 'tag=' from SRC_URIs and instead specify the required revision hash in SRCREV.

SHA hashes *cannot* change, so they should not need to be checked, in theory; however, bitbake currently has no mechanism for distinguishing between human-friendly tags like 'v2.1.2' and SHA-1 sums like 'fdb6c0402337d9607c7a39155088eaf033742752': both will result in a call to git ls-remote to verify the tag, which is problematic for BB_NO_NETWORK builds.

The second part of this patch was, I think, already submitted, but not yet applied to master[?]:

- http://lists.yoctoproject.org/pipermail/yocto/2012-September/011949.html

Evade Flow (2):
Move 'tag=' to SRCREV in btrfs-tools recipe
Move 'tag=' to SRCREV in mtd-utils recipe

 .../btrfs-tools/btrfs-tools_git.bb                 |    3 ++-
 meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb       |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
Signature · 1 line
1.7.9.5