Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] base.bbclass: Fix the recipe parsing race issue
@ 2025-08-14 17:23 Tony Rex
  2025-08-14 17:23 ` [PATCH 1/1] " Tony Rex
  2025-08-15  9:25 ` [OE-core] [PATCH 0/1] " Mathieu Dubois-Briand
  0 siblings, 2 replies; 25+ messages in thread
From: Tony Rex @ 2025-08-14 17:23 UTC (permalink / raw)
  To: openembedded-core; +Cc: Tony Rex

It seems that the race condition happens when doing do_fetch on really small repos
and it can be difficult to reproduce so below the other case with floating tag/branch
that is easier to verify.

To verify the floating tag/branch issue have s simple recipe hello_1.0.bb and set the SRC_URI to
SRC_URI = "git://<repository>;protocol=https;user=${USER};branch=master;tag=v1.0"

run command bitbake hello everything builds.
 
Apply the patch

run command bitbake hello
ERROR: hello-1.0-r1 do_fetch: Bitbake Fetcher Error: FetchError("Recipe uses a floating tag/branch 'v1.0' for repo '<repository>' without a fixed SRCREV yet doesn't call bb.fetch2.get_srcrev() (use SRCPV in PV for OE).", None)
ERROR: Logfile of failure stored in: hello/1.0/temp/log.do_fetch.3289932
ERROR: Task (hello/hello_1.0.bb:do_fetch) failed with exit code '1'

Tony Rex (1):
  base.bbclass: Fix the recipe parsing race issue

 meta/classes-global/base.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2025-09-04 18:13 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-14 17:23 [PATCH 0/1] base.bbclass: Fix the recipe parsing race issue Tony Rex
2025-08-14 17:23 ` [PATCH 1/1] " Tony Rex
2025-08-15  9:04   ` [OE-core] " Alexander Kanavin
2025-08-15 12:18     ` Tony Rex
2025-08-15  9:25 ` [OE-core] [PATCH 0/1] " Mathieu Dubois-Briand
2025-08-15 15:16   ` Tony Rex
2025-08-19  8:53     ` Alexander Kanavin
2025-08-19 21:10       ` Tony Rex
2025-08-20  7:16         ` Alexander Kanavin
2025-08-20  9:21           ` Tony Rex
2025-08-20 10:18         ` Gyorgy Sarvari
2025-08-20 11:53           ` Tony Rex
2025-08-20 15:44             ` Gyorgy Sarvari
     [not found]             ` <185D8414DCE1B6A2.6947@lists.openembedded.org>
2025-08-20 16:11               ` Gyorgy Sarvari
2025-08-21  7:10                 ` Tony Rex
2025-08-21  7:30                   ` Gyorgy Sarvari
2025-08-21 15:48                     ` Tony Rex
2025-08-22 11:26                       ` Tony Rex
2025-08-22 14:09                         ` Gyorgy Sarvari
2025-08-25 15:49                           ` Tony Rex
2025-08-25 17:07                             ` Tony Rex
2025-08-25 18:31                             ` Gyorgy Sarvari
2025-08-25 20:14                               ` Gyorgy Sarvari
2025-08-26  6:34                                 ` Tony Rex
2025-09-04 15:03                                   ` Tony Rex

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox