Fetch dependency of linux dbgsym package when downloading kernel packages #125
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.
The idea for the linux-pkg's linux-kernel-* packages, is that we will store in S3 all of the linux-kernel packages required to build the Delphix Appliance, without relying on the linux-package-mirror snapshot that is passed to appliance-build to contain them.
Some linux-kernel packages have dependencies on other linux-kernel packages. It seems that in some cases the dbgsym package has dependencies on another dbgsym package with a slightly different naming convention, and we were not downloading it.
Here's an example:
linux-image-5.4.0-48-generic-dbgsym
depends onlinux-image-unsigned-5.4.0-48-generic-dbgsym
.Note that we've already had some logic to deal with a similar issue that we had with the "tools" and "headers" packages, so this just extends the same logic to the dbgsym package.
Testing
build-kernel: http://selfservice.jenkins.delphix.com/job/devops-gate/job/master/job/linux-pkg/job/master/job/build-kernel/job/pre-push/3/console
List of debs produced (i.e. downloaded) by the
linux-kernel-generic
package: