Repository navigation
config: apply every packaging fragment, in locale-independent order - #76
Merged
Bjordis Collaku (bjordiscollaku) merged 1 commit intoAug 27, 2026
Conversation
Two changes to how config fragments are selected and applied. Apply all of debian/config-available/ to every build. The directory is the packaging fragment set, kept in sync with kernel-configs/ in qcom-deb-images, and every variant is expected to carry all of it. prepare-source.sh now copies the whole directory rather than the subset named in --kernel-config, so adding a fragment enables it for every variant with no matrix or workflow change. --kernel-config now carries only what is applied in addition to that set, which today means intree: fragments shipped by the kernel source. Bare names remain accepted so existing callers and the workflow input default keep working; they are reported as already applied rather than failing. Apply fragments in a deterministic order. debian/rules sorted debian/config/*.config with plain sort, which follows the caller's collation: under en_US.UTF-8 qcom_debug.config sorts before qcom-imsdk.config, under C it sorts after. Fragments are concatenated in order and later assignments win, so a locale difference could change the resulting kernel configuration. Both the rules glob and the prepare-source.sh entry list are now sorted with LC_ALL=C. Verified against a fixture kernel tree: all fragments applied with no --kernel-config, intree: entries applied on top, legacy bare names accepted as no-ops, unsorted input processed in sorted order, and a missing intree: fragment still failing the build. Signed-off-by: Bjordis Collaku <bcollaku@qti.qualcomm.com>
Christopher Obbard (obbardc)
approved these changes
Aug 27, 2026
Bjordis Collaku (bjordiscollaku)
merged commit Aug 27, 2026
5cd4aae
into
qcom/debian/latest
3 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Two changes to config fragment handling.
debian/config-available/is applied to every build, for all variants, with no per-variant subset.1. All fragments applied
prepare-source.shnow copies the whole ofdebian/config-available/intodebian/config/rather than only the names listed in--kernel-config. Adding a fragment to that directory now enables it for every variant with no matrix or workflow change, which removes a class of drift: the list previously had to be repeated in each matrix row and kept in sync by hand.--kernel-confignow carries only what is applied in addition to that set, which today meansintree:fragments shipped by the kernel source:Bare names are still accepted, so existing callers and the
kernel-configworkflow input default keep working. They are reported as already applied rather than treated as an error.2. Locale-independent ordering
debian/rulessorteddebian/config/*.configwith a plainsort, which follows the caller's collation:Fragments are concatenated onto
.configin order and later assignments win, so the same source could produce a different kernel configuration depending on the builder's locale. That is a reproducibility bug rather than a cosmetic one, and it affects the debug variant directly, sinceqcom_debug.configis exactly one of the names whose position moves.Both the
debian/rulesglob and theprepare-source.shentry list are now sorted withLC_ALL=C.Validation
Exercised against a fixture kernel tree:
--kernel-configat allconfig-available/appliedintree:qcom_debugonlyqcom_debug.configfrom the kernel treedocker,squashfs,intree:qcom_debug)usb-can,intree:qcom_debug,docker)intree:nopebash -nandshellcheck -S errorare clean on both modified scripts.Follow-up
The matrix rows still list the fragment names in
kernel_config. Those entries are now redundant and can be reduced to just theintree:entries in a companion change onmain; they are harmless in the meantime.Context
Follows the fragment sync in #71, which brought
debian/config-available/back in line with qcom-deb-images. That sync is what made the per variant list redundant: every variant is expected to carry the whole set, so listing a subset in each matrix row only creates somewhere for it to drift.Refs #65.