Skip to content

Update base-deps-resolver.bbclass - #134

Open
Shalini1516 wants to merge 1 commit into
Shalini1516-patch-1from
Shalini1516-patch-2
Open

Update base-deps-resolver.bbclass#134
Shalini1516 wants to merge 1 commit into
Shalini1516-patch-1from
Shalini1516-patch-2

Conversation

@Shalini1516

Copy link
Copy Markdown
Contributor

No description provided.

@Shalini1516
Shalini1516 requested a review from a team as a code owner March 11, 2026 07:45
Copilot AI review requested due to automatic review settings March 11, 2026 07:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates check_deps_ipk_mode() in the base dependency resolver to better handle recipes whose PV includes ${SRCPV}, by attempting to derive a concrete source revision when SRCREV is not directly usable.

Changes:

  • When ${SRCPV} appears in the computed version, treat SRCREV values like AUTOREV/AUTOINC/empty as signals to compute a real revision via bb.fetch2.get_srcrev(d).
  • Keep existing truncation behavior for long fixed SRCREV values and normalize AUTOINC to 0 in the resulting version string.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 899 to +903
srcrev = d.getVar("SRCREV") or ""
if len(srcrev) > 10:
if srcrev in ("AUTOREV", "AUTOINC", ""):
import bb.fetch2
srcrev = bb.fetch2.get_srcrev(d)
elif len(srcrev) > 10:

Copilot AI Mar 11, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

srcrev = d.getVar("SRCREV") is retrieved without expansion, so in common BitBake usage (e.g., SRCREV = "${AUTOREV}") the value will be the literal ${AUTOREV} and will not match the new ("AUTOREV", "AUTOINC", "") check. This makes the bb.fetch2.get_srcrev(d) fallback ineffective and can still replace ${SRCPV} with an unresolved token. Consider using d.getVar("SRCREV", True) (or d.expand(...)) before the comparison so AUTOREV/AUTOINC are reliably detected.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants