summaryrefslogtreecommitdiff
path: root/mdbp/sbuild.py
AgeCommit message (Collapse)Author
2021-07-08uninline helper function temporary_static_fileHelmut Grohne
2021-07-01sbuild: fix quoting of config stringsHelmut Grohne
Not escaping a $ would make perl interpolate it at config parsing time. Fixes: 8ea45852d692 ("sbuild: make environment passing work")
2021-06-24rename a number of fields to become similar to debusineHelmut Grohne
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
2021-06-15allow passing custom options to pbuilder and sbuildHelmut Grohne
2021-05-27prefer subprocess.call over subprocess.runHelmut Grohne
Avoid pylint complaining and we don't need the CompletedProcess object.
2021-05-27add new field .output.artifacts to schemaHelmut Grohne
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.
2021-05-19sbuild: don't just apt upgrade, dist-upgrade insteadHelmut Grohne
2021-05-19sbuild: always update and upgrade the chrootHelmut Grohne
2021-05-18enable building a source package by name and versionHelmut Grohne
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.
2021-05-12sbuild: make environment passing workHelmut Grohne
sbuild filters the environment and removes all but a set of whitelisted variables. Unfortunately, the filter is quite restrictive and filters e.g. "TARGET", which can be used to configure a binutils build. There is no good way to get around this environment filter from the command line. The one way that does work, is passing a SBUILD_CONFIG that contains the desired variables. Once we do have such a file, we can encode a number of other command line switches as well.
2021-05-09the stdout fd contains the build logHelmut Grohne
Using a pipe enables streaming of logs, which would not be possible with a regular file output.
2021-04-23sbuild: pass --nologHelmut Grohne
Neither pbuilder nor mmdebstrap produce a separate log file (beyond the output on the standard streams). Disabling the extra file improves consistency.
2021-04-23remove redundant values from schemaHelmut Grohne
The bd-uninstallable-explainer value null is equivalent to skipping the option and thus dropped. The network value "undefined" is equivalent to skipping the option and thus dropped. Reported-by: David Kalnischkies <donkult@debian.org>
2021-04-22forward exit codeHelmut Grohne
2021-04-18sbuild: add support for lintian.optionsHelmut Grohne
2021-04-18initial checkin of mdbpHelmut Grohne
Proof-of-concept status. Some things work.