[1/1] sbuild: explain dependency issues with apt

Message ID 20230525101026.605030-1-felix.moessbauer@siemens.com
State Accepted, archived
Headers show
Series [1/1] sbuild: explain dependency issues with apt | expand

Commit Message

MOESSBAUER, Felix May 25, 2023, 10:10 a.m. UTC
This patch switches the sbuild uninstallable explainer tool from dose3
to apt. Dose3 creates way too much output which often overflows the
calling shells buffer. Also, the explanation sometimes is different,
as we use apt as dependency resolver. To fix this, we simply switch to
apt as explainer.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
 meta/classes/dpkg.bbclass | 1 +
 1 file changed, 1 insertion(+)

Comments

Jan Kiszka May 25, 2023, 4:22 p.m. UTC | #1
On 25.05.23 12:10, 'Felix Moessbauer' via isar-users wrote:
> This patch switches the sbuild uninstallable explainer tool from dose3
> to apt. Dose3 creates way too much output which often overflows the
> calling shells buffer. Also, the explanation sometimes is different,
> as we use apt as dependency resolver. To fix this, we simply switch to
> apt as explainer.

Great stuff!

Jan

> 
> Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
> ---
>  meta/classes/dpkg.bbclass | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/meta/classes/dpkg.bbclass b/meta/classes/dpkg.bbclass
> index 5c8996d6..c596adbf 100644
> --- a/meta/classes/dpkg.bbclass
> +++ b/meta/classes/dpkg.bbclass
> @@ -104,6 +104,7 @@ dpkg_runbuild() {
>      sbuild -A -n -c ${SBUILD_CHROOT} --extra-repository="${ISAR_APT_REPO}" \
>          --host=${PACKAGE_ARCH} --build=${BUILD_HOST_ARCH} ${profiles} \
>          --no-run-lintian --no-run-piuparts --no-run-autopkgtest --resolve-alternatives \
> +        --bd-uninstallable-explainer=apt \
>          --no-apt-update \
>          --chroot-setup-commands="echo \"Package: *\nPin: release n=${DEBDISTRONAME}\nPin-Priority: 1000\" > /etc/apt/preferences.d/isar-apt" \
>          --chroot-setup-commands="echo \"APT::Get::allow-downgrades 1;\" > /etc/apt/apt.conf.d/50isar-apt" \
Uladzimir Bely May 31, 2023, 8:10 a.m. UTC | #2
On Thu, 2023-05-25 at 10:10 +0000, 'Felix Moessbauer' via isar-users
wrote:
> This patch switches the sbuild uninstallable explainer tool from
> dose3
> to apt. Dose3 creates way too much output which often overflows the
> calling shells buffer. Also, the explanation sometimes is different,
> as we use apt as dependency resolver. To fix this, we simply switch
> to
> apt as explainer.
> 
> Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
> ---
>  meta/classes/dpkg.bbclass | 1 +
>  1 file changed, 1 insertion(+)

Applied to next, thanks.

Patch

diff --git a/meta/classes/dpkg.bbclass b/meta/classes/dpkg.bbclass
index 5c8996d6..c596adbf 100644
--- a/meta/classes/dpkg.bbclass
+++ b/meta/classes/dpkg.bbclass
@@ -104,6 +104,7 @@  dpkg_runbuild() {
     sbuild -A -n -c ${SBUILD_CHROOT} --extra-repository="${ISAR_APT_REPO}" \
         --host=${PACKAGE_ARCH} --build=${BUILD_HOST_ARCH} ${profiles} \
         --no-run-lintian --no-run-piuparts --no-run-autopkgtest --resolve-alternatives \
+        --bd-uninstallable-explainer=apt \
         --no-apt-update \
         --chroot-setup-commands="echo \"Package: *\nPin: release n=${DEBDISTRONAME}\nPin-Priority: 1000\" > /etc/apt/preferences.d/isar-apt" \
         --chroot-setup-commands="echo \"APT::Get::allow-downgrades 1;\" > /etc/apt/apt.conf.d/50isar-apt" \