Age | Commit message (Collapse) | Author |
|
|
|
|
|
The pwd module started caching /etc/passwd and fails to notice the user
created using useradd.
|
|
While mmdebstrap would extract the package precisely to the build_path,
sbuild would create a subdirectory <source>-<upstream_version> inside
the build_path. Changing sbuild to do the mmdebstrap behaviour looks
next to impossible, so this commit changes mmdebstrap to behave like
sbuild.
pbuilder also allows changing the build_path in principle. The
documented BUILDDIR variable works quite similar to the sbuild option
--build-path. pbuilder also allows changing the sub directory using the
undocumented BUILDSUBDIR variable. That's another reason to do it like
sbuild.
|
|
debusine describes a PackageBuildTask in docs/devel/ontology.rst.
Changes performed herein:
* dscpath -> source_package_path
* dscuri -> source_package_url
* buildarch -> build_architecture
* hostarch -> host_architecture
* options -> build_options
* profiles -> build_profiles
* buildpath -> build_path
|
|
Using the field you can specify an ORed set of positive glob-style
patterns for artifacts to retain in the .output.directory. It defaults
to including all artifacts.
|
|
Bluntly copied from pbuilder as it does not seem to cause any problems
there.
|
|
If a package is specified by name, it is downloaded inside the chroot
using the embedded deb-src uris. sbuild implements this natively,
pbuilder does not implement this yet, but there is #988419 and
mmdebstrap can make it work.
|
|
Instead of writing a complex shell script in a limited sub-language of
shell, call out to ourselves and implement the build functionality in
Python.
|
|
|
|
Fixes: a5d4cfd4b996 ("mmdebstrap: don't keep downloaded .deb files")
|
|
Since we delete the chroot anyway, there is no need to keep the .debs
for the build.
|
|
By doing the unpack before the satisfying build dependencies, we can
point apt at the extracted source package and stop talking about the
.dsc file. It also means that we can clean those artifacts earlier.
|
|
|
|
When the package does not say "Rules-Requires-Root: no", we need a root
command and dpkg-buildpackage defaults to fakeroot. Unfortunately, we
cannot tell whether the packages requires fakeroot, because the stanza
is not copied to the .dsc. Unconditionally install fakeroot then.
|
|
Using a pipe enables streaming of logs, which would not be possible with
a regular file output.
|
|
|
|
|
|
|
|
|
|
Proof-of-concept status. Some things work.
|