Skip to content

RDKOSS-696: Fix for git version mismatch issue in ipk mode - #131

Open
Shalini1516 wants to merge 1 commit into
developfrom
feature/RDKOSS-610
Open

RDKOSS-696: Fix for git version mismatch issue in ipk mode#131
Shalini1516 wants to merge 1 commit into
developfrom
feature/RDKOSS-610

Conversation

@Shalini1516

Copy link
Copy Markdown
Contributor

RDKOSS-696: Fix for git version mismatch issue in ipk mode
Reason for change: PV values containing SRCPV are derived from SCM revisions and may not match any prebuilt IPK available in the feed. Allowing IPK consumption for SRCPV packages can cause version mismatches or inconsistent builds. Added an early return in check_deps_ipk_mode() to force ipkmode=False when SRCPV is detected, ensuring these recipes are always built from source.

Test Procedure: None
Risks: low

Reason for change:PV values containing SRCPV are derived from SCM revisions and may not match any prebuilt IPK available in the feed. Allowing IPK consumption for SRCPV packages can cause version mismatches or inconsistent builds. Added an early return in check_deps_ipk_mode() to force ipkmode=False when SRCPV is detected, ensuring these recipes are always built from source.

Test Procedure: None
Risks: low

Signed-off-by: ss127 <Shalini_S@comcast.com>
@Shalini1516
Shalini1516 requested a review from a team as a code owner February 18, 2026 08:29
Copilot AI review requested due to automatic review settings February 18, 2026 08:29

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

This pull request addresses a version mismatch issue in IPK (package) mode by forcing recipes with SRCPV (SCM revision-based versions) to always build from source rather than consuming prebuilt IPK packages. The fix adds an early return in the check_deps_ipk_mode() function to prevent IPK consumption when SRCPV is detected in the version string.

Changes:

  • Added SRCPV detection logic to force source mode and prevent IPK consumption for packages with SCM-derived versions

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

return (ipkmode, version_mismatch, same_arch)

feed_info_dir = d.getVar("FEED_INFO_DIR")

Copilot AI Feb 18, 2026

Copy link

Choose a reason for hiding this comment

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

Line contains trailing whitespace. Remove the trailing spaces from this blank line.

Suggested change

Copilot uses AI. Check for mistakes.

# --- Force source mode when version uses SRCPV ---

if version and ("SRCPV" in version):

Copilot AI Feb 18, 2026

Copy link

Choose a reason for hiding this comment

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

The check for SRCPV should use the same format as line 904 in this function. Line 904 checks for "${SRCPV}" (with dollar sign and curly braces), which is the BitBake variable expansion syntax. The current check for just "SRCPV" is inconsistent and could match unintended strings. Change the condition to: if version and ("${SRCPV}" in version)

Suggested change
if version and ("SRCPV" in version):
if version and ("${SRCPV}" in version):

Copilot uses AI. Check for mistakes.
Comment on lines +874 to +875
# --- Force source mode when version uses SRCPV ---

Copilot AI Feb 18, 2026

Copy link

Choose a reason for hiding this comment

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

The comment style with dashes is inconsistent with the rest of the file. Most comments in this file use simple hash marks without decorative formatting. Consider simplifying to: "# Force source mode when version uses SRCPV" without the extra blank line below.

Suggested change
# --- Force source mode when version uses SRCPV ---
# Force source mode when version uses SRCPV

Copilot uses AI. Check for mistakes.
Comment on lines 872 to +878
feed_info_dir = d.getVar("FEED_INFO_DIR")

# --- Force source mode when version uses SRCPV ---

if version and ("SRCPV" in version):
return (False, False, False)

Copilot AI Feb 18, 2026

Copy link

Choose a reason for hiding this comment

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

Minor efficiency issue: feed_info_dir is retrieved before checking for SRCPV, but it's not used if the SRCPV check returns early. Consider moving the feed_info_dir retrieval after the SRCPV check to avoid unnecessary variable retrieval.

Suggested change
feed_info_dir = d.getVar("FEED_INFO_DIR")
# --- Force source mode when version uses SRCPV ---
if version and ("SRCPV" in version):
return (False, False, False)
# --- Force source mode when version uses SRCPV ---
if version and ("SRCPV" in version):
return (False, False, False)
feed_info_dir = d.getVar("FEED_INFO_DIR")

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