diff options
author | crupest <crupest@outlook.com> | 2023-11-01 20:58:53 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-11-13 13:47:29 +0800 |
commit | 606f374c7bccdbfe443542dc53ef55a54c487406 (patch) | |
tree | dc919ebaabf30a5839c56a2dfb48aa3a74fbe417 /docker | |
parent | 47a626b854f4125dd9e3fbb7f222398668a50267 (diff) | |
download | crupest-606f374c7bccdbfe443542dc53ef55a54c487406.tar.gz crupest-606f374c7bccdbfe443542dc53ef55a54c487406.tar.bz2 crupest-606f374c7bccdbfe443542dc53ef55a54c487406.zip |
(docker:debian-dev) add sbuildrc.
Diffstat (limited to 'docker')
-rw-r--r-- | docker/debian-dev/bootstrap/sbuildrc | 30 | ||||
-rwxr-xr-x | docker/debian-dev/bootstrap/setup-sbuild.bash | 3 |
2 files changed, 33 insertions, 0 deletions
diff --git a/docker/debian-dev/bootstrap/sbuildrc b/docker/debian-dev/bootstrap/sbuildrc new file mode 100644 index 0000000..cdea758 --- /dev/null +++ b/docker/debian-dev/bootstrap/sbuildrc @@ -0,0 +1,30 @@ +############################################################################## +# PACKAGE BUILD RELATED (additionally produce _source.changes) +############################################################################## +# -d +$distribution = 'bullseye'; +# -A +$build_arch_all = 1; +# -s +# $build_source = 1; +# --source-only-changes (applicable for dput. irrelevant for dgit push-source). +# $source_only_changes = 1; +# -v +# $verbose = 1; +# parallel build +# $ENV{'DEB_BUILD_OPTIONS'} = 'parallel=5'; +############################################################################## +# POST-BUILD RELATED (turn off functionality by setting variables to 0) +############################################################################## +# $run_lintian = 1; +# $lintian_opts = ['-i', '-I']; +# $run_piuparts = 1; +# $piuparts_opts = ['--schroot', '%r-%a-sbuild', '--no-eatmydata']; +# $run_autopkgtest = 1; +# $autopkgtest_root_args = ''; +# $autopkgtest_opts = [ '--', 'schroot', '%r-%a-sbuild' ]; + +############################################################################## +# PERL MAGIC +############################################################################## +1; diff --git a/docker/debian-dev/bootstrap/setup-sbuild.bash b/docker/debian-dev/bootstrap/setup-sbuild.bash index cbccdb7..b67fb38 100755 --- a/docker/debian-dev/bootstrap/setup-sbuild.bash +++ b/docker/debian-dev/bootstrap/setup-sbuild.bash @@ -11,5 +11,8 @@ if [[ -z "${SBUILD_ARCH}" ]]; then fi apt-get install -y sbuild schroot debootstrap + +cp /bootstrap/sbuildrc /root/.sbuildrc + sbuild-createchroot --arch=${SBUILD_ARCH} bullseye /srv/chroot/bullseye-${SBUILD_ARCH}-sbuild ${CRUPEST_DEB_MIRROR} |