Debian Bug report logs - #865541
sbuild --apt-distupgrade should not remove build-essential

version graph

Package: sbuild; Maintainer for sbuild is sbuild maintainers <[email protected]>; Source for sbuild is src:sbuild (PTS, buildd, popcon).

Reported by: Raphaël Hertzog <[email protected]>

Date: Thu, 22 Jun 2017 14:54:01 UTC

Severity: wishlist

Found in version sbuild/0.73.0-4

Full log


Message #48 received at [email protected] (full text, mbox, reply):

Received: (at 865541) by bugs.debian.org; 27 Jun 2017 04:56:45 +0000
From [email protected] Tue Jun 27 04:56:45 2017
X-Spam-Checker-Version: SpamAssassin 3.4.0-bugs.debian.org_2005_01_02
	(2014-02-07) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-17.0 required=4.0 tests=BAYES_00,FROMDEVELOPER,
	HAS_BUG_NUMBER,PGPSIGNATURE,X_DEBBUGS_NO_ACK autolearn=ham autolearn_force=no
	version=3.4.0-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 9; hammy, 150; neutral, 91; spammy, 0.
	spammytokens: hammytokens:0.000-+--H*c:pgp-sha256, 0.000-+--distupgrade,
	0.000-+--dist-upgrade, 0.000-+--chroots, 0.000-+--H*u:alot
Return-path: <[email protected]>
Received: from fulda099.startdedicated.de ([62.75.219.30] helo=fulda116.server4you.de)
	by buxtehude.debian.org with esmtp (Exim 4.84_2)
	(envelope-from <[email protected]>)
	id 1dPiYD-0002ZO-1g
	for [email protected]; Tue, 27 Jun 2017 04:56:44 +0000
Received: from localhost (ip1f10fcd2.dynamic.kabel-deutschland.de [31.16.252.210])
	by mister-muffin.de (Postfix) with ESMTPSA id D31CC2099B;
	Tue, 27 Jun 2017 06:56:29 +0200 (CEST)
Content-Type: multipart/signed; protocol="application/pgp-signature";
 micalg="pgp-sha256"; boundary="===============0454767572328773218=="
MIME-Version: 1.0
Content-Disposition: inline
To: Raphael Hertzog <[email protected]>
From: Johannes Schauer <[email protected]>
X-Debbugs-No-Ack: kthxbye
In-Reply-To: <[email protected]>
Cc: [email protected]
References: <149814311698.5230.13865838241373431780.reportbug@x260-buxy.home.ouaza.com>
 <[email protected]>
 <149836538816.22149.8375536886257395541@localhost>
 <[email protected]>
 <149846849256.22149.9563589641207637710@localhost>
 <[email protected]>
 <149847638005.22149.12946609558949355840@localhost>
 <[email protected]>
 <149848379474.22149.12915643760336901860@localhost>
 <[email protected]>
Message-ID: <149853938923.4990.6739023653287105216@localhost>
User-Agent: alot/0.5.1
Subject: Re: [buildd-tools-devel] Bug#865541: sbuild --apt-distupgrade should not
 remove build-essential
Date: Tue, 27 Jun 2017 06:56:29 +0200
[Message part 1 (text/plain, inline)]
Hi,

Quoting Raphael Hertzog (2017-06-26 20:22:01)
> On Mon, 26 Jun 2017, Johannes Schauer wrote:
> > > Because when I wrote that script, I was probably not aware that
> > > --apt-distupgrade was the default.
> > 
> > so does the existence of that option help your use-case somehow?
> 
> I modified Kali's build script to pass it, yes. But my request remains.
> 
> > > I understand this. But you can react differently to the failure in the
> > > various places where you are calling "$resolver->distupgrade".
> > 
> > What do you mean exactly here?
> 
> I mean that you can turn it into a warning in Sbuild/Build.pm and an
> error into bin/sbuild-update.
> 
> > So how do you want to solve the issue now for kali? By just passing
> > --no-apt-distupgrade and upgrading the chroots manually from time to time like
> > the Debian and Ubuntu buildds do it?
> 
> That's what I will do, yes. But I believe that this should be avoidable
> and letting sbuild dist-upgrade the chroot should have been enough and should
> not have the current downsides.

If you agree, then I will see this bugreport as a feature request to implement
the following:

Let APT_DISTUPGRADE be a tristate option: 0, 1, 2

In addition to --apt-distupgrade and --no-apt-distupgrade add
--maybe-apt-distupgrade.

In case of --apt-distupgrade, fail if sbuild removes build-essential.

In case of --maybe-apt-distupgrade, allow "partial" distupgrades by putting
build-essential on hold before distupgrading.

Please signal your agreement to this plan by lowering the severity of this bug
to wishlist.

Thanks!

cheers, josch
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 08:13:16 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.