From 1fd501718f354043ad4b898f5165bcfa3656b3db Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Fri, 8 Jul 2022 14:01:51 +0200 Subject: [PATCH 2/2] Use buster_backport for new debhelper --- debian/build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) mode change 100644 => 100755 debian/build.sh diff --git a/debian/build.sh b/debian/build.sh old mode 100644 new mode 100755 index a11f3a3..a1f6b6c --- a/debian/build.sh +++ b/debian/build.sh @@ -38,6 +38,9 @@ main() { local release for release in ${RELEASES[@]}; do local chroot="${release}-${host_arch}-sbuild" + if [ "${release}" = "buster" ]; then + local buster_backport=( --extra-repository "deb http://deb.debian.org/debian buster-backports main" --build-dep-resolver=aspcud ) + fi mkdir -p "${release}" pushd "${release}" @@ -62,7 +65,7 @@ main() { cp -r "${tmp}/sources" . # Run the build process - if ! sbuild --dist="${release}" --host="${arch}" --source "sources/${package}"; then + if ! sbuild --dist="${release}" --host="${arch}" --source "${buster_backport[@]}" "sources/${package}"; then echo "Could not build package for ${release} on ${arch}" >&2 rm -rf "${tmp}" return 1 -- 2.36.1