DLPX-93311 24.04 LTS upgrade: kernel builds continue to fail due to rustc conflict #23
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
#21 failed to resolve a dependency conflict that was seen while building the kernel packages on 24.04. The latest build failures still show the same conflict:
I believe the problem here is that the version of the
rustc
package is not specified by ourdelphix-rust
virtual package based on this line:I believe the problem is:
delphix-rust
'sProvides: rustc
doesn't specify a versionProvides:
field, apt doesn't know ifdelphix-rust
satisfies the version requirement (hence thenone
)rustc
to satisfybindgen-0.65
's requirement ofrustc (>= 1.72.0+dfsg),
. The Ubuntu repos host version1.75
delphix-rust
.Solution
To solve this, I would like to try and specify a version of the
rustc
and set it to be equal to the version ofdelphix-rust
itself so that the dependency resolver can perform version comparisons and not installrustc
from other sources.Testing
https://ops-jenkins.eng-tools-prd.aws.delphixcloud.com/job/linux-pkg/job/os-upgrade/job/build-package/job/delphix-rust/job/pre-push/65/console
More testing can only be done after a buildserver with these changes is built & imported.