Feature/2 add support for native package builds #21
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.
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #2
Special notes for your reviewer:
In
Gardenlinux
, there are two types ofnative packages
: those directly sourced fromDebian
, such asbase-files
, and those specific toGardenlinux
, such asgardenlinux-selinux-module
.To accommodate these two types of native packages, two commits are proposed:
Enhancing the
apt_source()
function:The first commit aims to enhance the existing
apt_source()
function to support native packages sourced directly from Debian. This enhancement will enable the function to handle the retrieval and installation of native packages from the Debian repository.Adding the
native_source()
function:The second commit involves adding the
native_source()
function to the codebase. This function will be triggered when thepkg.yaml
file specifiessource: native
for a native package. The native_source() function will handle the necessary actions for handlingGardenlinux-specific
native packages. Due to thebuild_source
script already handles the source package name, so that we do not need to specific source package name butnative
is simply enough for our own native package support.By introducing these commits, the
build_source
mechanism will be improved. It will no longer require explicitly specifying the source package name for native packages. Instead, using the keywordnative
will be sufficient to identify and supportGardenlinux's own native packages
.Release note: