* [PATCH 0/2] Move 'tag=' for a few SRC_URIs to SRCREV [not found] <011802> @ 2012-10-08 17:18 ` Evade Flow 2012-10-08 17:18 ` [PATCH 1/2] Move 'tag=' to SRCREV in btrfs-tools recipe Evade Flow ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: Evade Flow @ 2012-10-08 17:18 UTC (permalink / raw) To: yocto 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(-) -- 1.7.9.5 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] Move 'tag=' to SRCREV in btrfs-tools recipe 2012-10-08 17:18 ` [PATCH 0/2] Move 'tag=' for a few SRC_URIs to SRCREV Evade Flow @ 2012-10-08 17:18 ` Evade Flow 2012-10-08 17:18 ` [PATCH 2/2] Move 'tag=' to SRCREV in mtd-utils recipe Evade Flow 2012-10-18 20:10 ` [PATCH 0/2] Move 'tag=' for a few SRC_URIs to SRCREV Saul Wold 2 siblings, 0 replies; 4+ messages in thread From: Evade Flow @ 2012-10-08 17:18 UTC (permalink / raw) To: yocto Signed-off-by: Evade Flow <evadeflow@gmail.com> --- .../btrfs-tools/btrfs-tools_git.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb b/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb index c2ae298..e963a74 100644 --- a/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb +++ b/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb @@ -12,7 +12,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=fcb02dc552a041dee27e4b85c7396067" SECTION = "base" DEPENDS = "util-linux attr" -SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git;protocol=git;tag=fdb6c0402337d9607c7a39155088eaf033742752;branch=master" +SRCREV = "fdb6c0402337d9607c7a39155088eaf033742752" +SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git;protocol=git" S = "${WORKDIR}/git" -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] Move 'tag=' to SRCREV in mtd-utils recipe 2012-10-08 17:18 ` [PATCH 0/2] Move 'tag=' for a few SRC_URIs to SRCREV Evade Flow 2012-10-08 17:18 ` [PATCH 1/2] Move 'tag=' to SRCREV in btrfs-tools recipe Evade Flow @ 2012-10-08 17:18 ` Evade Flow 2012-10-18 20:10 ` [PATCH 0/2] Move 'tag=' for a few SRC_URIs to SRCREV Saul Wold 2 siblings, 0 replies; 4+ messages in thread From: Evade Flow @ 2012-10-08 17:18 UTC (permalink / raw) To: yocto Signed-off-by: Evade Flow <evadeflow@gmail.com> --- meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb b/meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb index 1a9d4d3..bdfb022 100644 --- a/meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb +++ b/meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb @@ -6,7 +6,8 @@ LICENSE = "GPLv2+" LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ file://include/common.h;beginline=1;endline=17;md5=ba05b07912a44ea2bf81ce409380049c" -SRC_URI = "git://git.infradead.org/mtd-utils.git;protocol=git;tag=ca39eb1d98e736109c64ff9c1aa2a6ecca222d8f \ +SRCREV = "ca39eb1d98e736109c64ff9c1aa2a6ecca222d8f" +SRC_URI = "git://git.infradead.org/mtd-utils.git;protocol=git \ file://add-exclusion-to-mkfs-jffs2-git-2.patch" S = "${WORKDIR}/git/" -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] Move 'tag=' for a few SRC_URIs to SRCREV 2012-10-08 17:18 ` [PATCH 0/2] Move 'tag=' for a few SRC_URIs to SRCREV Evade Flow 2012-10-08 17:18 ` [PATCH 1/2] Move 'tag=' to SRCREV in btrfs-tools recipe Evade Flow 2012-10-08 17:18 ` [PATCH 2/2] Move 'tag=' to SRCREV in mtd-utils recipe Evade Flow @ 2012-10-18 20:10 ` Saul Wold 2 siblings, 0 replies; 4+ messages in thread From: Saul Wold @ 2012-10-18 20:10 UTC (permalink / raw) To: Evade Flow; +Cc: yocto On 10/08/2012 10:18 AM, Evade Flow wrote: > 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 In the future, please review the Commit & Patch Message Guidelines at http://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines > > .../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(-) > Merged into OE-Core Thanks Sau! ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-10-18 20:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <011802>
2012-10-08 17:18 ` [PATCH 0/2] Move 'tag=' for a few SRC_URIs to SRCREV Evade Flow
2012-10-08 17:18 ` [PATCH 1/2] Move 'tag=' to SRCREV in btrfs-tools recipe Evade Flow
2012-10-08 17:18 ` [PATCH 2/2] Move 'tag=' to SRCREV in mtd-utils recipe Evade Flow
2012-10-18 20:10 ` [PATCH 0/2] Move 'tag=' for a few SRC_URIs to SRCREV Saul Wold
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.