Bug 14498

Summary: Document SRCREV_* variable when multiple source controlled URLs are in SRC_URI
Product: [Documentation] Variables Glossary Reporter: Quentin Schulz <foss+yocto>
Component: variables-glossaryAssignee: Adam Blank <adam.blank.g>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: adam.blank.g, antonin.godard, randy.macleod, simone.p.weiss
Version: unspecified   
Target Milestone: 5.3   
Hardware: All   
OS: Multiple   
Whiteboard: NEWCOMER
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)

Description Quentin Schulz 2021-08-04 10:56:41 UTC
SRC_URI = " \                                                                      
           git://some-git-repo;name=foo \                                                                                                                                                                                                     
           git://some-other-git-repo;name=bar \                                 
           "                                                                    
                                                                                
SRCREV_foo = "abcdef1234567890"                                                 
SRCREV_bar = "1234567890abcdef"  

Note that SRCREV_FORMAT needs to be defined in that case.

This is used in e.g. openembedded-core/recipes-kernel/linux/linux-yocto_5.4.bb

SRCREV_machine_<override>= "yyy"
SRCREV_meta = "xxx"

SRCREV_FORMAT ?= "meta_machine" in openembedded-core/classes/kernel-yocto.bbclass

bitbake/lib/bb/fetch2/__init__.py seems to be the code handling that logic.

Documentation was expected in bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst apparently too, c.f. "We need to document ``AUTOREV`` and ``SRCREV_FORMAT`` here." so we could do that at the same time.
Comment 1 Michael Opdenacker 2021-08-04 13:34:12 UTC
Thanks for the suggestion and for the details!
Comment 2 Randy MacLeod 2025-05-01 14:07:11 UTC
Bulk move of all unassigned 5.2 medium importance bugs to 5.3.
Comment 3 Adam Blank 2025-10-17 10:24:16 UTC
Patch posted: https://lists.openembedded.org/g/bitbake-devel/topic/patch_doc/115804997

Changing the status to "IN PROGRESS REVIEW"
Comment 4 Antonin Godard 2025-11-27 08:37:18 UTC
Hello,

This was merged and reviewed: https://git.openembedded.org/bitbake/commit/?id=fbf0a8c5711f56bd64ae4c9d2c1d5ba884508c9f

Moving to Resolved Fixed.

Thanks for the patch Adam!