Skip to content

ci: drop the obsolete deb-src edit and the privileged container - #141

Open
Bjordis Collaku (bjordiscollaku) wants to merge 2 commits into
ci/phase2-repo-and-suffixfrom
ci/phase4-debsrc-and-privileged
Open

Bjordis Collaku (bjordiscollaku) wants to merge 2 commits into
ci/phase2-repo-and-suffixfrom
ci/phase4-debsrc-and-privileged

Conversation

@bjordiscollaku

@bjordiscollaku Bjordis Collaku (bjordiscollaku) commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Closes #134, closes #135.

Stacked on #129. That PR should be reviewed first; the diff here is only the two commits on this branch.

deb-src. The edit was needed while build dependencies were resolved by source package name, which reads the archive Sources index. They have been resolved from the local tree since apt-get build-dep -y ./, which reads the generated debian/control. The edit is also silent when it does nothing, matching Types: deb in one DEB822 file by exact name, so a differently formatted or named base image leaves a no-op that surfaces later as an unrelated resolution failure.

Privileged container. Nothing in this path needs it. The kernel is compiled and packaged with fakeroot, and the sbuild unshare backend that does need id mapping is not used here.

Both were confirmed in pkg-builder:resolute against resolute-qcom-devel: with deb-src disabled and no --privileged, installing the Qualcomm repository, debian/rules clean and resolving the 134 build dependencies all succeed.

A full CI build has since been run from the top of this stack (run 37965472447, both flavours with debug packages): no --privileged, no deb-src edit, and all 13 packages compiled, packaged and uploaded.

The build enabled deb-src before resolving build dependencies. That was
required while it resolved them by source package name, which reads the
archive's Sources index. It has resolved them from the local tree since
"apt-get build-dep -y ./", which reads the generated debian/control and
needs no Sources index at all.

The edit is also silent when it does nothing: it matches "Types: deb" in
one DEB822 file by exact name, so a base image that formats its sources
differently, or names them differently, leaves it a no-op that surfaces
later as an unrelated resolution failure.

Verified by resolving build dependencies for resolute-qcom-devel in the
pkg-builder:resolute image with deb-src disabled: debian/rules clean
followed by "apt-get build-dep -y ./" installs its 134 packages and
succeeds.

Signed-off-by: Bjordis Collaku <bcollaku@qti.qualcomm.com>
The build container ran with --privileged, which disables namespace and
capability isolation for the whole container. Nothing in this path needs
it: the kernel is compiled and packaged with fakeroot, and the sbuild
unshare backend that does need id mapping is not used here.

Verified by running the build setup for resolute-qcom-devel in
pkg-builder:resolute without it. Installing the Qualcomm repository,
debian/rules clean, and resolving the 134 build dependencies all succeed
unprivileged.

Signed-off-by: Bjordis Collaku <bcollaku@qti.qualcomm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant