Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rust-1.83: vump epoch to build with latest libgit2 #39347

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ajayk
Copy link
Member

@ajayk ajayk commented Jan 11, 2025

No description provided.

Copy link
Contributor

octo-sts bot commented Jan 11, 2025

⚠️ EXPERIMENTAL

Please use 👍 or 👎 on this comment to indicate if you agree or disagree with the recommendation.

To provide more detailed feedback please comment on the recommendation prefixed with /ai-verify:

e.g. /ai-verify partially helpful but I also added bash to the build environment

Gen AI suggestions to solve the build error:

• Detected Error: "solving 'so:libgit2.so.1.8' constraint: libgit2-1.8.0-r0.apk disqualified because libgit2-1.9.0-r0.apk already provides cmd:git2"

• Error Category: Dependency

• Failure Point: Package resolution during build environment setup

• Root Cause Analysis: There's a version mismatch between the required libgit2 shared library version (1.8) needed by rust-1.82 and the available libgit2 package (1.9.0) in the repository.

• Suggested Fix:

  1. Add a specific version constraint for libgit2-dev in the environment section:
environment:
  contents:
    packages:
      - libgit2-dev~1.8

Instead of just libgit2-dev

• Explanation: This fix explicitly requests libgit2 version 1.8.x, which matches the shared library requirement of rust-1.82. The tilde (~) operator ensures we get the highest 1.8.x version available while preventing upgrades to 1.9.x.

• Additional Notes:

  • This is a common issue when system libraries get updated but older packages still require previous versions
  • The error occurs because rust-1.82 was built against libgit2 1.8.x and requires that specific ABI version
  • Alternative approach could be to rebuild rust-1.82 against libgit2 1.9, but that would require more extensive testing

• References:

@octo-sts octo-sts bot added the ai/skip-comment Stop AI from commenting on PR label Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ai/skip-comment Stop AI from commenting on PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant